/* ========================================
   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;
}

/* ============================================================
   2026-07 REDESIGN LAYER — "The World of Tomorrow, Built by Hand"
   Proposal for Jason's approval (Sacred Rule 11: he owns all UI).
   Restrained warm-retrofuture accents + the new sections
   (Now, Story, The Lab, collapsed How-I-Work, colophon).
   Reversible: additive, does not rewrite the existing system.
   ============================================================ */

:root {
  /* Warm accent layer (retrofuture + Craftsman) added on top of the teal system */
  --parchment: #f5f0e6;
  --parchment-deep: #efe7d6;
  --amber: #c8621f;
  --amber-light: #e07a34;
  --brass: #b08d57;
  --space-navy: #16233a;
}

/* Thin "arch of tomorrow" hairline used to separate the narrative sections */
.now,
.lab {
  border-top: 1px solid var(--border-light);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}
.section-head .section-title { margin-bottom: 0; }

.section-lede {
  color: var(--slate);
  max-width: 60ch;
  margin: -1.25rem 0 2.5rem;
}

.now-updated {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--amber);
  white-space: nowrap;
}

/* Now section */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.now-card {
  background: var(--parchment);
  border: 1px solid var(--parchment-deep);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
}
.now-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.now-card p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.now-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
}
.now-link:hover { color: var(--amber-light); }

/* Story section */
.story { background: var(--space-navy); }
.story .section-title { color: var(--parchment); }
.story-inner { max-width: 760px; }
.story-body p {
  color: #cdd6e4;
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.story-note {
  border-left: 3px solid var(--brass);
  padding-left: 1.25rem;
  color: #aeb9cc !important;
  font-style: italic;
}

/* The Lab */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.lab-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lab-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 35, 58, 0.1);
  border-color: var(--brass);
}
.lab-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--charcoal); }
.lab-card p { font-size: 0.95rem; margin-bottom: 0.9rem; }
.lab-cta { font-weight: 600; font-size: 0.9rem; color: var(--teal); }

/* How I Work (collapsed) */
.how-i-work-inner { max-width: 760px; }
.how-i-work-lede { font-size: 1.1rem; margin-bottom: 1.25rem; }
.how-i-work-list { list-style: none; display: grid; gap: 0.85rem; }
.how-i-work-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--slate);
}
.how-i-work-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
}
.how-i-work-list strong { color: var(--charcoal); }

/* Colophon strip */
.colophon {
  padding: 2rem 0;
  background: var(--parchment);
  border-top: 1px solid var(--parchment-deep);
}
.colophon-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate);
  text-align: center;
  margin: 0;
}

@media (max-width: 640px) {
  .section-head { margin-bottom: 1.75rem; }
  .story-body p { font-size: 1rem; }
}

/* ============================================================
   V2 — "The World of Tomorrow, Built by Hand" (bold retrofuture)
   Space-Age/Googie + Arts-and-Crafts. Applied site-wide.
   ============================================================ */

:root {
  --charcoal: #16233a;          /* space navy — headings */
  --charcoal-light: #26374f;
  --slate: #4a4740;             /* warm ink — body */
  --slate-light: #857f72;
  --teal: #0d7377;
  --teal-light: #12a0a5;
  --teal-subtle: rgba(13,115,119,0.08);
  --white: #fffdf7;             /* warm card white */
  --off-white: #f5f0e6;         /* parchment */
  --off-white-warm: #f1ead9;
  --border: #e5ddca;
  --border-light: #ece5d4;
  --amber: #c8621f;
  --amber-light: #e07a34;
  --brass: #b08d57;
  --space-navy: #16233a;
  --parchment: #f5f0e6;
  --parchment-deep: #efe7d5;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

body { background: var(--parchment); color: var(--slate); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--charcoal); }
h1, h2 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
}

/* Nav */
#nav { background: rgba(245,240,230,0.82); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--border-light); }
#nav.scrolled { background: rgba(245,240,230,0.95); box-shadow: 0 2px 20px rgba(22,35,58,0.06); }
.nav-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.06em; color: var(--charcoal); }
.nav-logo .starburst { color: var(--amber); }
.nav-links a { font-weight: 500; color: var(--slate); }
.nav-links a:hover { color: var(--amber); }
.nav-cta { background: var(--amber); color: #fff !important; padding: 0.5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--amber-light); }

/* Buttons */
.btn { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.01em; border-radius: 999px; }
.btn-primary { background: var(--amber); color: #fff; border: none; }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 1.5px solid var(--brass); }
.btn-secondary:hover { background: var(--brass); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: 3rem; background: linear-gradient(180deg, #faf6ec 0%, var(--parchment) 100%); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 78% 30%, rgba(200,98,31,0.16), transparent 60%),
  radial-gradient(50% 50% at 12% 80%, rgba(13,115,119,0.12), transparent 60%); }
.hero-grid { position: relative; z-index: 1; align-items: center; }
.hero-kicker { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; color: var(--amber); }
.hero-label { color: var(--slate); min-height: 2.6em; }
#hero-role { font-weight: 600; color: var(--teal); }
.typing-cursor { color: var(--amber); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; margin: 0.4rem 0 1.25rem; }
.hero-summary { font-size: 1.12rem; max-width: 34ch; }
.hero-detail { color: var(--slate-light); border-left: 2px solid var(--brass); padding-left: 1rem; }
.hero-frame { position: relative; border-radius: 14px; padding: 10px; background:
  linear-gradient(135deg, var(--brass), #d8b98a 40%, var(--brass)); box-shadow: 0 24px 60px rgba(22,35,58,0.22); }
.hero-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,0.5); border-radius: 8px; z-index: 2; pointer-events: none; }
.hero-frame img { border-radius: 8px; display: block; }
.hero-epigraph { position: relative; z-index: 1; text-align: center; font-family: var(--font-heading); letter-spacing: 0.04em; color: var(--charcoal); margin-top: 2.5rem; font-size: 1.05rem; }
.hero-epigraph span { display: block; font-family: var(--font); letter-spacing: 0; color: var(--slate-light); font-size: 0.85rem; margin-top: 0.3rem; }

/* Arch dividers */
.arch-divider { color: var(--brass); line-height: 0; }
.arch-divider svg { width: 100%; height: 42px; display: block; opacity: 0.7; }
.arch-divider.flip { transform: scaleY(-1); }

/* Now */
.now { background: var(--parchment); border: 0; }
.now-updated { color: var(--amber); }
.now-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--amber); box-shadow: 0 2px 14px rgba(22,35,58,0.04); }
.now-card h3 { font-size: 1.08rem; }

/* Story */
.story { background: var(--space-navy); position: relative; }
.story::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(40% 40% at 85% 15%, rgba(200,98,31,0.16), transparent 60%); }
.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story .section-title { color: #f4ecdb; }
.story-body p { color: #cdd6e4; font-size: 1.1rem; line-height: 1.75; margin-bottom: 1.25rem; }
.story-note { border-left: 3px solid var(--amber); padding-left: 1.1rem; color: #e6b98f !important; font-style: italic; }
.story-photos { display: grid; gap: 1.25rem; }
.photo-card { background: #fff; padding: 8px 8px 0; border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,0.35); transform: rotate(-1deg); }
.photo-card:nth-child(2) { transform: rotate(1.2deg); }
.photo-card img { border-radius: 4px; width: 100%; display: block; }
.photo-card figcaption { font-size: 0.8rem; color: #55606f; padding: 0.6rem 0.4rem 0.7rem; line-height: 1.4; }
.multitudes { position: relative; z-index: 1; margin-top: 3rem; }
.multitudes-label { text-align: center; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem; color: var(--brass); margin-bottom: 1.25rem; }
.multitudes-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.photo-tile img { width: 100%; height: 190px; object-fit: cover; display: block; }
.photo-tile figcaption { font-size: 0.75rem; color: #aeb9cc; padding: 0.55rem 0.7rem; text-align: center; }

/* Work / pavilions */
.pavilion-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2.5rem; }
.pavilion-chip { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--white); color: var(--slate); cursor: pointer; transition: all 0.2s var(--ease); }
.pavilion-chip:hover { border-color: var(--brass); color: var(--charcoal); }
.pavilion-chip.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.pavilion { margin-bottom: 3.25rem; }
.pavilion-head { margin-bottom: 1.25rem; }
.pavilion-title { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.05rem; color: var(--charcoal); display: inline-block; padding-bottom: 0.35rem; border-bottom: 2px solid var(--amber); }
.pavilion-blurb { color: var(--slate-light); margin-top: 0.6rem; max-width: 62ch; }
.work-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(22,35,58,0.12); border-color: var(--brass); }
.work-card-body h4 { font-family: var(--font-heading); font-size: 1.06rem; font-weight: 600; color: var(--charcoal); margin: 0.15rem 0 0.5rem; line-height: 1.25; }
.work-card-label { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--amber); }

/* Lab */
.lab { background: var(--parchment); border: 0; }
.lab-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal); }
.lab-card:hover { border-color: var(--teal); box-shadow: 0 14px 30px rgba(13,115,119,0.12); }
.lab-card h3 { font-family: var(--font-heading); }
.lab-cta { color: var(--teal); font-weight: 600; }

/* How I Work */
.how-i-work-list li::before { border-color: var(--amber); }

/* Logos + testimonials + writing tuned to palette */
.logos { background: var(--space-navy); }
.logos-label, .logos-speaking { color: #aeb9cc; }
.logo-text { color: #dfe6f0; }
.logos-speaking strong { color: #fff; }
.proof { background: var(--parchment); }
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: 10px; position: relative; }
.testimonial::before { content: "\201C"; font-family: Georgia, serif; position: absolute; top: 0.1rem; left: 0.8rem; font-size: 3rem; color: var(--brass); opacity: 0.35; }
.testimonial cite { color: var(--slate-light); font-style: normal; }
.testimonial cite strong { color: var(--charcoal); }
.insights { background: var(--parchment); }
.insight-card { background: var(--white); border: 1px solid var(--border); }
.insight-card:hover { border-color: var(--brass); }
.insight-card-title { font-family: var(--font-heading); }

/* Colophon */
.colophon { background: var(--parchment-deep); border-top: 1px solid var(--border); }
.colophon-line { color: var(--slate-light); }
.footer { background: var(--space-navy); color: #cdd6e4; }
.footer a { color: #cdd6e4; }
.footer a:hover { color: var(--amber-light); }

/* Responsive */
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: 1.75rem; }
  .story-body p { font-size: 1rem; }
  .story-photos { grid-template-columns: 1fr; }
  .multitudes-strip { grid-template-columns: 1fr; }
  .photo-tile img { height: 220px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .work-card, .lab-card, .btn-primary { transition: none; }
}


/* ============================================================
   R3 a11y — darken small amber labels on parchment to clear WCAG AA
   (#c8621f ~4.0:1 on parchment fails AA for small text; #a84f16 ~5.4:1 passes)
   ============================================================ */
.hero-kicker,
.now-updated,
.work-card-label,
.now-link { color: #a84f16; }
.now-link:hover { color: var(--amber); }

/* Hero epigraph "why" — the reason Jason lives by the Whitman line (his verbatim
   reasoning: a curious mind updates on new data instead of clinging to consistency) */
.hero-epigraph-why {
  max-width: 48ch;
  margin: 0.85rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate-light);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Pizazz pass — retrofuture motion + hover polish (respects reduced-motion)
   Scroll-reveal itself uses .reveal/.visible above; JS tags elements + staggers.
   ============================================================ */

/* The atomic-age light source behind the hero drifts and breathes slowly. */
@keyframes heroGlowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);          opacity: 1; }
  50%      { transform: translate3d(-1.5%, 1.5%, 0) scale(1.06); opacity: 0.82; }
}
.hero-glow { animation: heroGlowDrift 14s ease-in-out infinite; will-change: transform, opacity; }

/* The nav starburst takes a quarter-turn on hover — a small atomic-age wink. */
.nav-logo .starburst { transition: transform 0.5s var(--ease), color 0.2s var(--ease); }
.nav-logo:hover .starburst { transform: rotate(90deg); }

/* Cards lift on hover. */
.now-card, .lab-card, .insight-card {
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.now-card:hover, .lab-card:hover, .insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(22, 35, 58, 0.13);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .nav-logo:hover .starburst { transform: none; }
  .now-card:hover, .lab-card:hover, .insight-card:hover { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   "I work where the disciplines meet" — interactive system diagram
   Navy space-age console; amber/teal/brass glow. Respects reduced-motion.
   ============================================================ */
.system { background: var(--space-navy); position: relative; overflow: hidden; }
.system::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background: radial-gradient(46% 46% at 50% 46%, rgba(200,98,31,0.15), transparent 62%);
}
.system .container { position: relative; z-index: 1; }
.system .section-head { text-align: center; }
.system .section-title { color: #f4ecdb; display: inline-block; }
.system .section-lede { color: #cdd6e4; max-width: 730px; margin: 0.5rem auto 2.5rem; text-align: center; font-size: 1.08rem; line-height: 1.72; }

.system-stage { max-width: 540px; margin: 0 auto; }
.system-diagram { position: relative; width: 100%; aspect-ratio: 1 / 1; }

.sys-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--amber); }
.sys-ring { fill: none; stroke: var(--brass); stroke-width: 0.35; opacity: 0.4; stroke-dasharray: 1.4 2.4;
  transform-origin: 50% 50%; animation: sysRingSpin 64s linear infinite; }
.sys-line { stroke: var(--teal); stroke-width: 0.5; opacity: 0.5; stroke-dasharray: 2 2.4;
  animation: sysDash 3.2s linear infinite;
  transition: stroke 0.25s var(--ease), opacity 0.25s var(--ease), stroke-width 0.25s var(--ease); }
.sys-line.active { stroke: var(--amber); opacity: 1; stroke-width: 0.95; }
.sys-core { color: var(--amber); }
.sys-core-disc { fill: rgba(200,98,31,0.16); stroke: var(--amber); stroke-width: 0.5; }
.sys-core-star { transform-origin: 0 0; animation: sysCoreSpin 46s linear infinite;
  filter: drop-shadow(0 0 1.1px rgba(200,98,31,0.75)); }
.sys-core-dot { fill: var(--amber); }

.sys-node { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0;
  cursor: pointer; display: flex; flex-direction: column-reverse; align-items: center; gap: 0.4rem; width: 8.5rem; }
.sys-node.below { flex-direction: column; }
.sys-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--space-navy);
  border: 2px solid var(--brass); box-shadow: 0 0 0 4px rgba(176,141,87,0.12); transition: all 0.22s var(--ease); }
.sys-label { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  color: #e7d9c2; text-align: center; line-height: 1.15; transition: color 0.2s var(--ease); }
.sys-node:hover .sys-dot, .sys-node:focus-visible .sys-dot, .sys-node.active .sys-dot {
  background: var(--amber); border-color: var(--amber); transform: scale(1.35);
  box-shadow: 0 0 14px rgba(200,98,31,0.7), 0 0 0 5px rgba(200,98,31,0.15); }
.sys-node:hover .sys-label, .sys-node.active .sys-label { color: #fff; }
.sys-node:focus-visible { outline: none; }

.system-caption { text-align: center; color: #cdd6e4; font-size: 1.03rem; line-height: 1.6;
  max-width: 620px; margin: 2.25rem auto 0; min-height: 3.4em; transition: color 0.2s var(--ease); }

@keyframes sysRingSpin { to { transform: rotate(360deg); } }
@keyframes sysCoreSpin { to { transform: rotate(360deg); } }
@keyframes sysDash { to { stroke-dashoffset: -8.8; } }

@media (max-width: 600px) {
  .system-stage { max-width: 400px; }
  .sys-node { width: 6.4rem; }
  .sys-label { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sys-ring, .sys-core-star, .sys-line { animation: none; }
}
