/* ========================================
   jknapp.com — Brand Design System
   Palette: charcoal headings, slate gray text,
   deep teal accents, muted indigo data flows
   Typography: Inter, clean sans-serif
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colors */
  --charcoal: #1a1f2e;
  --charcoal-light: #2a3040;
  --slate: #5a6378;
  --slate-light: #8892a4;
  --teal: #0d7377;
  --teal-light: #11999e;
  --teal-subtle: rgba(13, 115, 119, 0.08);
  --indigo: #4a5699;
  --indigo-light: #6b79c4;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --off-white-warm: #f9f9fb;
  --border: #e4e7ec;
  --border-light: #eef0f4;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1120px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

h1,
h2,
h3,
h4 {
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--teal-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-subtle);
  color: var(--teal);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========================================
   Navigation
   ======================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-links .nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.nav-links .nav-cta:hover {
  background: var(--teal-light);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.5rem 0;
}

.mobile-menu.open {
  display: flex;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: calc(64px + var(--section-pad)) 0 var(--section-pad);
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-summary {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
  max-width: 560px;
}

.hero-detail {
  font-size: 0.9375rem;
  color: var(--slate-light);
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--off-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Capabilities
   ======================================== */
.capabilities {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  color: var(--white);
}

.capabilities .section-title {
  color: var(--white);
}

.capabilities .section-title::after {
  background: var(--teal-light);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s var(--ease);
}

.capability-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.15);
  transform: translateY(-2px);
}

.capability-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 153, 158, 0.15);
  border-radius: 10px;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.capability-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.capability-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-light);
}

/* ========================================
   How I Work / Engagement Model
   ======================================== */
.how-i-work {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.engagement-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.engagement-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.08);
  transform: translateY(-2px);
}

.engagement-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-subtle);
  border-radius: 50%;
  color: var(--teal);
  margin: 0 auto 1.25rem;
}

.engagement-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.engagement-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ========================================
   Work / Case Studies
   ======================================== */
.work {
  padding: var(--section-pad) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  color: inherit;
}

.work-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--off-white);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.4s var(--ease);
}

.work-card:hover .work-card-image img {
  transform: scale(1.03);
}

.work-card-body {
  padding: 1.25rem 1.5rem;
}

.work-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.work-card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.work-card-body p {
  font-size: 0.875rem;
  color: var(--slate-light);
  line-height: 1.55;
}

/* ========================================
   Logos
   ======================================== */
.logos {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--off-white-warm);
}

.logos-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
}

.logo-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-light);
  opacity: 0.65;
  white-space: nowrap;
}

.logos-speaking {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate-light);
  margin-top: 1.5rem;
  line-height: 1.8;
  opacity: 0.75;
}

.logos-speaking strong {
  color: var(--slate);
  font-weight: 600;
}

/* ========================================
   Testimonials / Proof
   ======================================== */
.proof {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s var(--ease);
}

.testimonial:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.06);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal-light);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--slate-light);
}

.testimonial cite strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ========================================
   Insights
   ======================================== */
.insights {
  padding: var(--section-pad) 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.insight-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.insight-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  color: inherit;
}

.insight-card-type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.insight-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.insight-card-excerpt {
  font-size: 0.875rem;
  color: var(--slate-light);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card-meta {
  font-size: 0.75rem;
  color: var(--slate-light);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: auto;
}

.insights-footer {
  text-align: center;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--slate-light);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-alt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-light);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}

.contact-link:hover {
  color: var(--teal-light);
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-light);
}

.form-group input,
.form-group textarea {
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  font-size: 0.875rem;
  text-align: center;
  padding-top: 0.5rem;
}

.form-status.success {
  color: var(--teal-light);
}

.form-status.error {
  color: #e74c3c;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--charcoal);
  color: var(--slate-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--slate-light);
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: var(--teal-light);
}

/* ========================================
   Case Study Sub-pages (modal style)
   ======================================== */
.case-study-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 2rem;
}

.case-study-modal.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.case-study-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
}

.case-study-body {
  padding: 2.5rem;
}

.case-study-body .cs-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.case-study-body h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-study-body h3 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.case-study-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.case-study-metrics {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: 10px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--slate-light);
  display: block;
}

.case-study-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent);
  z-index: 1;
}

.case-study-close button {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-study-close button:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Case study image gallery */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cs-gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cs-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bartender embed */
.cs-bartender-embed {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.cs-bartender-desc {
  font-size: 0.875rem !important;
  color: var(--slate-light) !important;
  margin-bottom: 1rem !important;
}

.bartender-frame {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.bartender-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Image lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: lbIn 0.2s ease;
}

@keyframes lbIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .hero-summary,
  .hero-detail {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .capabilities-grid,
  .work-grid,
  .insights-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .case-study-modal {
    padding: 0.5rem;
  }

  .case-study-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .logos-strip {
    gap: 0.75rem 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .capabilities-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid,
  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Typing Cursor Animation
   ======================================== */
.typing-cursor {
  display: inline-block;
  color: var(--teal);
  font-weight: 300;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

#hero-role {
  display: inline;
  min-height: 1.2em;
}

/* ========================================
   Patented Badges
   ======================================== */
.patented-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.work-card-image {
  position: relative;
}

.patented-inline {
  color: var(--indigo);
  font-weight: 600;
}

/* ========================================
   Case Study Links
   ======================================== */
.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.8;
}

.store-badge img {
  height: 40px;
  width: auto;
}
/* ========================================
   Referenced In (inline on proof section)
   ======================================== */
.referenced-in-inline {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.referenced-in-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.citations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.citation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.citation-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  color: inherit;
}

.citation-source {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.citation-desc {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .citations-grid {
    flex-direction: column;
    align-items: center;
  }
  .citation-card {
    max-width: 100%;
  }
}

.insight-card-type-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-card-icon {
  height: 14px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}
