/* css/components.css — Buttons, Cards, Tags, Forms, Badges, Timeline, Terminal */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-green);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: #24b893;
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn--secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn--terra {
  background: var(--accent-terra);
  color: var(--bg-primary);
}
.btn--terra:hover {
  background: #a8674a;
  box-shadow: var(--shadow-glow-terra);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--accent-green);
  padding: var(--space-sm) 0;
  border-radius: 0;
}
.btn--ghost:hover { color: var(--text-primary); }
.btn--ghost::after {
  content: ' \2192';
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}
.btn--ghost:hover::after { transform: translateX(4px); }

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green-glow);
  color: var(--accent-green);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.card__footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Card — case study variant */
.card--case { overflow: hidden; padding: 0; }
.card--case .card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.card--case .card__body { padding: var(--space-xl); }

/* Card — service variant with top accent line */
.card--service { position: relative; overflow: hidden; }
.card--service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

/* ============ STAT BLOCK ============ */
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  line-height: 1;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ============ TAGS ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 32px;
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}
.tag--green { border-color: var(--accent-green-dim); color: var(--accent-green); }
.tag--terra { border-color: var(--accent-terra-dim); color: var(--accent-terra); }

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a95' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-lg) center;
  padding-right: var(--space-2xl);
}

.form-error {
  font-size: var(--text-xs);
  color: #e74c3c;
  margin-top: var(--space-xs);
  display: none;
}
.form-group--error .form-input,
.form-group--error .form-textarea,
.form-group--error .form-select { border-color: #e74c3c; }
.form-group--error .form-error { display: block; }

.form-success {
  padding: var(--space-lg);
  background: rgba(45, 212, 168, 0.1);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  text-align: center;
  display: none;
}
.form-success--visible { display: block; }

/* ============ CHECKBOX ============ */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.form-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-top: 2px;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  position: relative;
}
.form-checkbox input:checked + .form-checkbox__mark {
  background: var(--accent-green);
  border-color: var(--accent-green);
}
.form-checkbox input:checked + .form-checkbox__mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-checkbox input:focus-visible + .form-checkbox__mark {
  box-shadow: 0 0 0 2px var(--accent-green-glow);
}
.form-checkbox__text a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-checkbox__text a:hover { text-decoration: none; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: clamp(12px, 2vw, 20px);
  width: min(720px, calc(100vw - (2 * var(--gutter))));
  z-index: 9999;
  background: rgba(14, 14, 18, 0.94);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, calc(100% + 24px));
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.cookie-banner--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: none;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 640px) {
  .cookie-banner {
    width: calc(100vw - 20px);
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: var(--space-md);
    gap: var(--space-sm);
    align-items: stretch;
    justify-content: flex-start;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
    transform: translateY(calc(100% + 24px));
  }

  .cookie-banner--visible {
    transform: translateY(0);
  }

  .cookie-banner__text {
    max-width: none;
    font-size: var(--text-xs);
    text-align: left;
    line-height: 1.4;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
    flex-wrap: nowrap;
  }

  .cookie-banner .btn {
    flex: 1 1 0;
    min-height: 44px;
    padding-inline: var(--space-md);
    font-size: var(--text-xs);
    justify-content: center;
  }
}

@media (pointer: coarse) {
  .btn--ghost {
    min-height: 44px;
    padding-block: var(--space-sm);
  }

  .tag {
    min-height: 44px;
    padding-inline: var(--space-md);
  }
}

@media (max-width: 768px) {
  .btn--ghost {
    min-height: 44px;
    padding-block: var(--space-sm);
  }
  .btn--lg {
    white-space: normal;
    text-align: center;
  }
  .card {
    text-align: left !important;
  }
  .card .card__icon {
    margin-inline: 0 !important;
  }
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2dd4a8, #c27856);
  box-shadow: 0 0 8px rgba(45, 212, 168, 0.5);
  z-index: 10001;
  pointer-events: none;
  transition: none;
}

/* ============ BEFORE-AFTER BLOCK ============ */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.before-after-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.before-after-card__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.before-after-card__before {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.before-after-card__arrow {
  display: block;
  margin: var(--space-md) auto;
  width: 40px;
  height: 40px;
}
.before-after-card__arrow svg {
  width: 100%;
  height: 100%;
}
.before-after-card__arrow path {
  stroke: var(--accent-green);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.8s var(--ease-out);
}
.before-after-card.visible .before-after-card__arrow path {
  stroke-dashoffset: 0;
}

.before-after-card__after {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.before-after-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============ MANIFESTO QUOTE ============ */
.manifesto {
  position: relative;
  padding-left: var(--space-xl);
  border-left: 3px solid var(--accent-terra);
  max-width: 700px;
  margin-inline: auto;
}

.manifesto__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.manifesto__author {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============ CASE FILTER BUTTONS ============ */
.case-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.case-filters__btn {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}
.case-filters__btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.case-filters__btn--active {
  background: var(--accent-green);
  color: var(--bg-primary);
  border-color: var(--accent-green);
}

/* Case card filter transition */
.card[data-category] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card--filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* ============ FAQ ACCORDION ============ */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--duration-fast) var(--ease-out);
}
.faq-item__header:hover { color: var(--accent-green); }

.faq-item__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-green);
  flex-shrink: 0;
  width: 2.5em;
}

.faq-item__icon {
  margin-left: auto;
  font-size: var(--text-lg);
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}
.faq-item--open .faq-item__body { max-height: 300px; }

.faq-item__answer {
  padding: 0 0 var(--space-lg) calc(2.5em + var(--space-md));
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ============ ANTI-CASE ============ */
.anti-case {
  background: var(--bg-elevated);
  border: 1px solid #3a2820;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.anti-case::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, var(--accent-terra));
}
.anti-case__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.anti-case__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: #e74c3c;
  margin-bottom: var(--space-md);
}
.anti-case__section {
  margin-bottom: var(--space-md);
}
.anti-case__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-terra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}
.anti-case__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ============ ROI CALCULATOR ============ */
.roi-calc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  margin-inline: auto;
}

.roi-calc__field {
  margin-bottom: var(--space-lg);
}
.roi-calc__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.roi-calc__input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-mono);
}
.roi-calc__input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.roi-calc__slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.roi-calc__slider {
  flex: 1;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
}
.roi-calc__slider::-webkit-slider-thumb {
  appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-green-glow);
}
.roi-calc__slider::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  border: none;
}
.roi-calc__multiplier {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--accent-green);
  font-weight: var(--weight-bold);
  min-width: 3em;
  text-align: right;
}

.roi-calc__result {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(45, 212, 168, 0.08);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-md);
  text-align: center;
}
.roi-calc__result-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.roi-calc__result-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
}
.roi-calc__result-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--accent-green-glow);
  color: var(--accent-green);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-green), var(--accent-terra), var(--border));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 4px);
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--bg-primary);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-green);
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ============ TERMINAL ============ */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  overflow: hidden;
}

.terminal__header {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal__dot--red { background: #e74c3c; }
.terminal__dot--yellow { background: #f39c12; }
.terminal__dot--green { background: var(--accent-green); }

.terminal__line {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xs);
}
.terminal__line::before {
  content: '$ ';
  color: var(--accent-green);
}

.terminal__output {
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.terminal__cursor {
  display: inline-block;
  width: 8px; height: 1.2em;
  background: var(--accent-green);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

/* ============ SECTION HEADER ============ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__desc {
  color: var(--text-secondary);
  max-width: 55ch;
}

/* ============ CLIENT LOGOS ============ */
.clients-strip {
  display: flex;
  align-items: center;
  gap: var(--space-lg) var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity var(--duration-normal), filter var(--duration-normal);
}
.clients-strip:hover { opacity: 0.8; filter: grayscale(0.5); }

.clients-strip__item {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============ GEOGRAPHY MAP ============ */
.geo-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.geo-map__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  filter: invert(1) brightness(0.5) grayscale(1);
}
.geo-map__dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.geo-map__dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.3;
  animation: geo-pulse 2s ease-out infinite;
}
.geo-map__dot--terra { background: var(--accent-terra); }
.geo-map__dot--terra::before { background: var(--accent-terra); }
.geo-map__dot--lg { width: 10px; height: 10px; }

.geo-map__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.geo-map__dot:hover + .geo-map__label,
.geo-map__dot:focus + .geo-map__label {
  opacity: 1;
  transform: translateY(0);
}

@keyframes geo-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(3); opacity: 0; }
}

.geo-map__legend {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  z-index: 3;
}
.geo-map__legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .geo-map { aspect-ratio: 3 / 2; }
  .geo-map__dot { width: 6px; height: 6px; }
  .geo-map__legend { font-size: 9px; }
}

/* ============ 3D TILT ON CASE CARDS ============ */
.card--tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }
  .card--service:hover::before { opacity: 1; }
  .before-after-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
  }
  .card--tilt:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-green-dim);
  }
}

/* ============ CONFERENCE GALLERY ============ */
.conf-gallery {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
}
.conf-gallery::-webkit-scrollbar { display: none; }
.conf-gallery {
  mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
}

.conf-gallery__item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.conf-gallery__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  opacity: 0.4;
}
.conf-gallery__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-xs);
}
.conf-gallery__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============ TESTIMONIALS (EXPANDED) ============ */
.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
}
.testimonial::before {
  content: '\00AB';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 4rem;
  color: var(--accent-green);
  opacity: 0.1;
  line-height: 1;
  font-family: serif;
}
.testimonial__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.testimonial__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}
.testimonial__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.testimonial__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

/* ============ AUDIT CTA BANNER (cross-page) ============ */
.audit-cta-banner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-primary);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  max-width: 640px;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.audit-cta-banner:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px var(--accent-green-glow);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.audit-cta-banner__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green-glow);
  color: var(--accent-green);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.audit-cta-banner__icon svg { width: 24px; height: 24px; }
.audit-cta-banner__text { flex: 1; min-width: 0; }
.audit-cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}
.audit-cta-banner__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.audit-cta-banner__arrow {
  color: var(--accent-green);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.audit-cta-banner:hover .audit-cta-banner__arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .audit-cta-banner {
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .audit-cta-banner__icon { width: 40px; height: 40px; }
  .audit-cta-banner__icon svg { width: 20px; height: 20px; }
  .audit-cta-banner__title { font-size: var(--text-sm); }
}

/* ═══════════════════════════════════════════
   GLOBAL MICRO-EFFECTS (all pages)
   CSS-only, GPU-friendly, respects reduced-motion
   ═══════════════════════════════════════════ */

/* 1. Card — border shimmer on hover */
.card {
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: -1px; left: -100%;
  width: 50%;
  height: calc(100% + 2px);
  background: linear-gradient(90deg, transparent, rgba(45,212,168,0.08), transparent);
  transition: none;
  pointer-events: none;
}
.card:hover::after {
  animation: card-shimmer 0.8s var(--ease-out);
}
@keyframes card-shimmer {
  to { left: 200%; }
}

/* 2. Buttons — active press */
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 80ms;
}

/* 3. Stat values — color flash on reveal */
html.js .reveal.visible .stat__value,
html.js .reveal.visible .before-after-card__after {
  animation: stat-flash 0.6s var(--ease-out) 0.3s both;
}
@keyframes stat-flash {
  0% { opacity: 0; filter: blur(4px); }
  40% { filter: blur(0); text-shadow: 0 0 20px currentColor; }
  100% { opacity: 1; text-shadow: none; }
}

/* 4. Footer social links — rotate on hover */
.footer__social-link:hover svg {
  transition: transform 0.3s var(--ease-out);
  transform: rotate(8deg) scale(1.1);
}

/* 5. Tags — subtle lift on hover */
.tag {
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.tag:hover {
  transform: translateY(-2px);
}

/* 6. Page header title — gradient text shimmer on load */
.page-header__title {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--accent-green) 45%,
    var(--text-primary) 55%,
    var(--text-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 3s var(--ease-in-out) 0.5s both;
}
@keyframes title-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 7. Section label (// prefix) — typewriter dot */
.section-header__label {
  position: relative;
}
.section-header__label::after {
  content: '_';
  color: var(--accent-green);
  animation: cursor-blink 1s step-end 3;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* 8. Scroll progress bar — glow pulse */
.scroll-progress {
  filter: drop-shadow(0 0 6px rgba(45,212,168,0.4));
}

/* 9. Form input — focus ring expand */
.form-input:focus,
.form-textarea:focus {
  animation: focus-ring 0.3s var(--ease-out);
}
@keyframes focus-ring {
  0% { box-shadow: 0 0 0 0 var(--accent-green-glow); }
  100% { box-shadow: 0 0 0 3px var(--accent-green-glow); }
}

/* 10. Contact item icon — pulse on hover */
.contact-item:hover .contact-item__icon {
  animation: icon-pulse 0.4s var(--ease-out);
}
@keyframes icon-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Reduced motion — disable all */
@media (prefers-reduced-motion: reduce) {
  .card::after,
  .section-header__label::after { display: none; }
  .page-header__title {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    animation: none;
  }
  .stat__value, .before-after-card__after,
  .contact-item__icon, .form-input, .form-textarea {
    animation: none !important;
  }
  .footer__social-link:hover svg { transform: none; }
  .tag:hover { transform: none; }
}
