/* ==========================================================================
   CODEX OWL — CORE DESIGN SYSTEM (CSS)
   UI Upgrade Pass: Premium Elevation, Soft Radii, Smooth Motion
   Green Accent: Brand Cadmium Green (#006241) on Light + Subtle Emerald Green (#00A86B) on Dark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Master Spec Cadmium Green (#006241) — Used on Light Sections (#FFFFFF) */
  --green: #006241;
  --green-hover: #004d33;
  
  /* Tasteful Emerald Green (#00A86B) — Used on Dark Sections (#111014) for Clean Legibility */
  --green-dark-text: #00A86B;
  --green-dark-hover: #008f5a;
  
  --green-glow: rgba(0, 98, 65, 0.25);
  --green-tint: rgba(0, 168, 107, 0.12);

  /* Light Section Tokens */
  --light-bg: #FFFFFF;
  --light-ink: #111014;
  --light-slate: #6B6B71;
  --light-hairline: #E5E2DA;
  --light-parchment: #F6F4F0;

  /* Dark Section Tokens */
  --dark-bg: #111014;
  --dark-white: #FFFFFF;
  --dark-lightgrey: #D8D7DC;
  --dark-card: #1A191F;
  --dark-hairline: #2A2930;

  /* Design Radius Scale */
  --radius-sm: 8px;     /* tags, small badges, ticker items */
  --radius-md: 16px;    /* cards: service, outcome, proof, timeline */
  --radius-lg: 24px;    /* large panels: ticker box, workflow box, hero anchor */
  --radius-full: 999px; /* all buttons, pills, nav CTA, status chips */

  /* Elevation Shadows */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.12);
  --shadow-dark-card: 0 2px 4px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.45);
  --shadow-dark-hover: 0 6px 20px rgba(0,0,0,0.6), 0 20px 48px rgba(0,0,0,0.65);

  /* Motion Curves */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Families — Universal Inter Design System */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--light-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Typography Hierarchy & Contracts */
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.font-body {
  font-family: var(--font-body);
  font-weight: 400;
}

.font-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* System Labels & Eyebrows (Strict #006241 on Light) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* TASTEFUL EMERALD GREEN (#00A86B) FOR TEXT & LABELS ON DARK SECTIONS */
.section-dark .eyebrow {
  color: var(--green-dark-text) !important;
}

.section-dark .option-group-title {
  color: var(--green-dark-text) !important;
}

.section-dark .author-info {
  color: var(--green-dark-text) !important;
}

.section-dark .card-outcome-tag {
  color: var(--green-dark-text) !important;
}

.section-dark .estimate-time {
  color: var(--green-dark-text) !important;
}

/* Alternating Section Rules (Golden Rule 1.1) */

/* LIGHT SECTIONS (WITH SUBTLE BLUEPRINT GRID OVERLAY) */
.section-light {
  background-color: var(--light-bg);
  background-image: 
    linear-gradient(to right, rgba(17, 16, 20, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 16, 20, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--light-ink);
  border-bottom: 1px solid var(--light-hairline);
  position: relative;
}

.section-light h1, .section-light h2, .section-light h3 {
  color: var(--light-ink);
}

.section-light p.secondary {
  color: var(--light-slate);
}

/* DARK SECTIONS (WITH SUBTLE DARK GRID OVERLAY) */
.section-dark {
  background-color: var(--dark-bg);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--dark-white);
  border-bottom: 1px solid var(--dark-hairline);
  position: relative;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--dark-white);
}

.section-dark p.secondary {
  color: var(--dark-lightgrey);
}

/* Container Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 3.5rem 1.25rem;
  }
}

/* Header & Navigation (Sticky Light) */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-hairline);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 2rem;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--light-ink);
  position: relative;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #111014;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--green);
  box-shadow: 0 0 8px rgba(0, 98, 65, 0.6);
  animation: pulse-dot 1.4s infinite ease-in-out;
  margin-left: 0.15rem;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--light-ink);
  text-decoration: none;
  transition: color 0.25s var(--ease-soft);
}

.nav-link:hover {
  color: var(--green);
}

/* Button System — Premium Pill Upgrades */
.btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
  background: transparent;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-outline-green {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-outline-green:hover {
  background-color: var(--green);
  color: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn-filled-green {
  background-color: var(--green);
  border: 1px solid var(--green);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px var(--green-glow);
}

.btn-filled-green:hover {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--green-glow);
}

.section-dark .btn-outline-green {
  border-color: var(--green-dark-text);
  color: var(--green-dark-text);
}

.section-dark .btn-outline-green:hover {
  background-color: var(--green-dark-text);
  color: var(--dark-bg);
  box-shadow: 0 4px 14px var(--green-glow);
}

.section-dark .btn-filled-green {
  background-color: var(--green);
  border-color: var(--green);
  color: #FFFFFF !important;
  font-weight: 700;
}

.section-dark .btn-filled-green:hover {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--light-slate);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-actions .btn {
  min-width: 215px;
  justify-content: center;
}

/* HERO ANIMATED PORTFOLIO SHOWCASE CARD */
.hero-showcase-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3.5rem;
}

.hero-portfolio-showcase {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--light-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-portfolio-showcase:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Browser Chrome Header Bar */
.browser-chrome-bar {
  background: var(--light-parchment);
  border-bottom: 1px solid var(--light-hairline);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.browser-dots .dot.red { background: #FF5F56; }
.browser-dots .dot.yellow { background: #FFBD2E; }
.browser-dots .dot.green { background: #27C93F; }

.browser-address-bar {
  flex: 1;
  background: var(--light-bg);
  border: 1px solid var(--light-hairline);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--light-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.browser-live-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Screenshot Frame */
.showcase-frame {
  position: relative;
  width: 100%;
  height: 275px;
  background: var(--light-parchment);
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}

.hero-portfolio-showcase:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 16, 20, 0.4) 0%, transparent 60%);
}

.showcase-hover-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 98, 65, 0.3);
  opacity: 0.9;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}

.hero-portfolio-showcase:hover .showcase-hover-badge {
  transform: translateX(3px);
  opacity: 1;
}

/* Meta Bar (Slim & Ultra-Compact) */
.showcase-meta-bar {
  padding: 0.45rem 1rem 0.55rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: var(--light-bg);
}

.showcase-service-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--light-ink);
  margin-top: 0.1rem;
  line-height: 1.1;
  font-weight: 700;
}

/* Card Animation Transition States */
.hero-portfolio-showcase.fading-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}

.hero-portfolio-showcase.fading-in {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

/* HERO LIVE SYSTEM STATUS PANEL (Refined Minimal Surface) */
.hero-anchor-box {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-hairline);
  background: var(--light-parchment);
  box-shadow: var(--shadow-card);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.system-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0;
  column-gap: 0;
  margin-bottom: 0.85rem;
  transition: opacity 0.4s cubic-bezier(0, 0, 0.2, 1), transform 0.4s cubic-bezier(0, 0, 0.2, 1);
}

.status-grid.fading-out {
  opacity: 0;
  transform: translateY(-4px);
}

.status-grid.fading-in {
  opacity: 0;
  transform: translateY(4px);
}

.status-item {
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.status-item.border-r {
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.status-item.border-b {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.status-num {
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--light-ink);
  line-height: 1;
  margin-bottom: 0.45rem;
  letter-spacing: -0.03em;
  transition: color 0.3s var(--ease-soft);
}

.status-num.highlight {
  color: var(--green);
}

.status-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--light-slate);
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Proof-Line / CTA Hover Swap Strip */
.status-proof-cta-strip {
  position: relative;
  height: 24px;
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.proof-line-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--light-slate);
  letter-spacing: 0.06em;
  opacity: 0.75;
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
  position: absolute;
  left: 0;
  white-space: nowrap;
}

.cta-line-link {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), color 0.2s var(--ease-soft);
  position: absolute;
  left: 0;
  white-space: nowrap;
  cursor: pointer;
}

.cta-line-link:hover {
  text-decoration: underline;
  transform: translateY(0) translateX(2px);
}

/* Hovering panel swaps proof text for CTA link */
.hero-anchor-box:hover .proof-line-text {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.hero-anchor-box:hover .cta-line-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Progress Dots Indicator for 4 Status Views */
.status-progress-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dot-step {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--light-slate);
  opacity: 0.25;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
}

.dot-step:hover {
  opacity: 0.6;
}

.dot-step.active {
  width: 18px;
  background-color: var(--green);
  opacity: 1;
}

.system-status-caption {
  font-family: var(--font-body);
  font-size: 0.625rem;
  color: var(--light-slate);
  opacity: 0.55;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-align: left;
}

@keyframes pulse-line-anim {
  0% { stroke-dashoffset: 400; }
  50%, 100% { stroke-dashoffset: 0; }
}

/* Terminal Log Ticker Panel */
.ticker-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-hairline);
  background: linear-gradient(160deg, #1E1D24, #15141A);
  box-shadow: var(--shadow-dark-card);
  color: var(--dark-white);
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.ticker-header {
  color: var(--light-slate);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--dark-hairline);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.ticker-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticker-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.ticker-time {
  color: var(--dark-lightgrey);
  opacity: 0.7;
}

.tag-completed {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--green-tint);
  color: var(--green-dark-text) !important;
  border: 1px solid rgba(0, 168, 107, 0.4);
  font-weight: 600;
  margin-left: auto;
}

/* Tech Stack & Capability Strip (Dark Cards Grid) */
.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.capability-item {
  flex: 1 1 170px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-hairline);
  background-color: var(--dark-card);
  box-shadow: var(--shadow-dark-card);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--dark-white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease-soft);
}

.capability-item:hover {
  transform: translateY(-3px);
  border-color: var(--green-dark-text);
  box-shadow: var(--shadow-dark-hover);
}

.tech-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-hairline);
  color: var(--dark-lightgrey);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Services 6-Card Grid (Light) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card-service {
  border-radius: var(--radius-md);
  border: 1px solid var(--light-hairline);
  padding: 2.5rem;
  background-color: var(--light-bg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease-soft);
  cursor: pointer;
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green);
}

.card-folio {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.card-desc {
  color: var(--light-slate);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.care-teaser {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-hairline);
  background: var(--light-parchment);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Interactive Project Estimator Calculator */
.estimator-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-hairline);
  background: linear-gradient(160deg, #1E1D24, #15141A);
  box-shadow: var(--shadow-dark-card);
  padding: 3rem 2.5rem;
  margin-top: 2.5rem;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
}

.option-group-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-dark-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-select-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pill-option {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--dark-hairline);
  background-color: var(--dark-bg);
  color: var(--dark-lightgrey);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}

.pill-option.active, .pill-option:hover {
  border-color: var(--green-dark-text);
  color: var(--dark-white);
  background-color: var(--green-tint);
}

.feature-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-lightgrey);
  cursor: pointer;
}

.check-label input {
  accent-color: var(--green-dark-text);
  width: 16px;
  height: 16px;
}

.estimate-result-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--green-dark-text);
  background: rgba(0, 168, 107, 0.08);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.estimate-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--dark-white);
  margin: 0.5rem 0;
}

.estimate-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-dark-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Automation Showcase (Dark Typographic Chain Panel) */
.workflow-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-hairline);
  background: linear-gradient(160deg, #1E1D24, #15141A);
  box-shadow: var(--shadow-dark-card);
  padding: 3.5rem 2rem;
  margin-top: 3rem;
}

.workflow-chain {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.925rem;
  color: var(--dark-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-hairline);
  background-color: var(--dark-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.25s var(--ease-soft);
}

.workflow-step:hover {
  transform: translateX(4px);
  border-color: var(--green-dark-text);
}

.workflow-arrow {
  color: var(--green-dark-text);
  font-weight: 700;
}

/* Portfolio Filter Gallery (Light Section) */
.portfolio-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-bg);
  color: var(--light-slate);
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
}

.filter-tab.active, .filter-tab:hover {
  border-color: var(--green);
  color: var(--light-bg);
  background-color: var(--green);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-bg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease-soft);
}

.portfolio-card.has-link {
  cursor: pointer;
}

.portfolio-card:hover, .portfolio-card.has-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green);
}

.portfolio-type-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portfolio-card-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--light-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.portfolio-live-link {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s var(--ease-soft);
}

.portfolio-card.has-link:hover .portfolio-live-link {
  transform: translateX(3px);
  text-decoration: underline;
}

.portfolio-coming-soon {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--light-slate);
  opacity: 0.65;
  font-weight: 500;
}

.stage-honest-badge {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--light-parchment);
  color: var(--light-slate);
  border: 1px solid var(--light-hairline);
  display: inline-block;
}

/* Process Timeline (Floating Rounded Cards) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.timeline-step {
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-hairline);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.25rem;
  transition: all 0.25s var(--ease-soft);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Testimonials / Social Proof (Dark) */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-hairline);
  background-color: var(--dark-card);
  box-shadow: var(--shadow-dark-card);
  padding: 2.25rem;
  position: relative;
}

.quote-text {
  font-style: italic;
  color: var(--dark-white);
  margin-bottom: 1.5rem;
  font-size: 0.975rem;
  line-height: 1.6;
}

.author-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-dark-text);
  font-weight: 600;
}

/* FAQ Accordion Section (Light) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 850px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-soft);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 700;
  transition: transform 0.25s var(--ease-soft);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  transition: max-height 0.3s var(--ease-soft), padding 0.3s var(--ease-soft);
  color: var(--light-slate);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 2rem 1.5rem 2rem;
}

/* Newsletter Lead Magnet Opt-in (Dark) */
.newsletter-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-hairline);
  background: linear-gradient(160deg, #1E1D24, #15141A);
  box-shadow: var(--shadow-dark-card);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0 auto;
  flex-wrap: wrap;
}

.form-input {
  flex: 1 1 240px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--dark-hairline);
  background: var(--dark-bg);
  color: var(--dark-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease-soft);
}

.form-input:focus {
  border-color: var(--green-dark-text);
}

/* Smart Project Inquiry Form & Booking Tabs at #contact (Light) */
.contact-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-bg);
  box-shadow: var(--shadow-card-hover);
  padding: 3.5rem 3rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .contact-panel {
    padding: 2rem 1.25rem;
  }
}

.contact-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--light-hairline);
  padding-bottom: 1rem;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-parchment);
  color: var(--light-slate);
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}

.tab-btn.active {
  background-color: var(--green);
  color: var(--light-bg);
  border-color: var(--green);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--light-ink);
  font-weight: 600;
}

.form-control {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-hairline);
  background-color: var(--light-parchment);
  color: var(--light-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease-soft);
}

.form-control:focus {
  border-color: var(--green);
  background-color: var(--light-bg);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-success-message {
  display: none;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(0, 98, 65, 0.1);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* Service Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 16, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-hairline);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 680px;
  width: 100%;
  padding: 3rem 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-soft);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  background: none;
  border: none;
  color: var(--light-slate);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--green);
}

/* Floating AI Assistant Chat Widget */
.chat-widget-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--dark-bg);
  color: var(--dark-white);
  border: 1px solid var(--green-dark-text);
  box-shadow: 0 8px 30px rgba(0, 168, 107, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.25s var(--ease-soft);
}

.chat-widget-btn:hover {
  transform: scale(1.04);
}

.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 950;
  width: 380px;
  max-width: 90vw;
  height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-hairline);
  background: linear-gradient(160deg, #1E1D24, #15141A);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.3s var(--ease-soft);
}

.chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  padding: 1.25rem 1.5rem;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--dark-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  max-width: 85%;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--dark-card);
  color: var(--dark-white);
  border: 1px solid var(--dark-hairline);
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--green);
  color: #FFFFFF;
  align-self: flex-end;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--dark-hairline);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--dark-hairline);
  background: var(--dark-bg);
  color: var(--dark-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

/* Footer (Dark) */
.footer-bar {
  border-top: 1px solid var(--dark-hairline);
  padding: 2.25rem 2rem;
  background-color: var(--dark-bg);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--dark-lightgrey);
}

.availability-tag {
  color: var(--green-dark-text) !important;
  background: var(--green-tint);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 168, 107, 0.4);
  font-weight: 600;
}

/* ==========================================================================
   PART 1 — PROFESSIONAL ANIMATION SYSTEM (GPU-Accelerated)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Staggered Children Animations */
.stagger-parent > .reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-parent.is-revealed > .reveal-child:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-parent.is-revealed > .reveal-child:nth-child(2) { transition-delay: 70ms; opacity: 1; transform: translateY(0); }
.stagger-parent.is-revealed > .reveal-child:nth-child(3) { transition-delay: 140ms; opacity: 1; transform: translateY(0); }
.stagger-parent.is-revealed > .reveal-child:nth-child(4) { transition-delay: 210ms; opacity: 1; transform: translateY(0); }
.stagger-parent.is-revealed > .reveal-child:nth-child(5) { transition-delay: 280ms; opacity: 1; transform: translateY(0); }
.stagger-parent.is-revealed > .reveal-child:nth-child(6) { transition-delay: 350ms; opacity: 1; transform: translateY(0); }

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .stagger-parent > .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PART 2 — FULL MOBILE REBUILD & HAMBURGER OVERLAY NAVIGATION
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10001;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--light-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}

.section-dark .hamburger-bar {
  background-color: var(--dark-white);
}

/* Fullscreen Slide-In Mobile Navigation Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--light-bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-hairline);
  padding-bottom: 1.25rem;
}

.mobile-menu-close {
  background: transparent;
  border: 1px solid var(--light-hairline);
  color: var(--light-ink);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: auto 0;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--light-ink);
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s var(--ease-soft);
}

.mobile-nav-link:hover,
.mobile-nav-link.cta-link {
  color: var(--green);
}

.mobile-menu-footer {
  border-top: 1px solid var(--light-hairline);
  padding-top: 1.25rem;
}

/* ==========================================================================
   MULTI-BREAKPOINT RESPONSIVE AUDIT (--bp-mobile: 480px, --bp-tablet: 768px, --bp-laptop: 1024px)
   ========================================================================== */

/* Tablet & Mobile (<= 768px) */
@media (max-width: 768px) {
  .nav-links,
  .header-nav .btn-outline-green {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .hero-grid {
    display: block;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3.25rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0.95rem 1rem;
    font-size: 0.875rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-light,
  .section-dark {
    padding: 4rem 0;
  }

  /* Grid Collapse on Mobile */
  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .estimator-card {
    grid-template-columns: 1fr !important;
  }

  /* Ensure touch targets are min 44px high */
  .btn,
  .form-control,
  .contact-tabs .tab-btn {
    min-height: 44px;
  }

  /* Ticker overflow containment */
  .ticker-box {
    overflow-x: hidden;
  }
}

/* Bulletproof Single-Line Availability Tag Pill */
.availability-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.3vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green) !important;
  background-color: var(--green-tint);
  border: 1px solid rgba(0, 98, 65, 0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  vertical-align: middle;
  line-height: 1.3;
  box-sizing: border-box;
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .availability-tag {
    font-size: 0.6rem;
    padding: 0.3rem 0.65rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
