.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--black);
  box-shadow: 0 0 24px var(--blue-dim), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--blue-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 20px var(--blue-dim);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: 1rem;
}

.card-angular {
  position: relative;
  padding: 28px 24px;
  background: var(--black-card);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - var(--clip-angle)) 0, 100% var(--clip-angle), 100% 100%, var(--clip-angle) 100%, 0 calc(100% - var(--clip-angle)));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-angular:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 30px var(--blue-dim);
}

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.card-angular h3 {
  margin-bottom: 10px;
}

.card-angular p {
  color: var(--white-muted);
  font-size: 0.95rem;
}

.differentials {
  margin-top: 20px;
}

.differentials h3 {
  margin-bottom: 16px;
}

.differentials li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  color: var(--white-muted);
}

.differentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--blue);
}

.service-card {
  position: relative;
  padding: 28px 24px;
  background: var(--black-card);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - var(--clip-angle)) 0, 100% var(--clip-angle), 100% 100%, var(--clip-angle) 100%, 0 calc(100% - var(--clip-angle)));
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--blue);
  transition: height 0.35s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 40px var(--blue-dim);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--blue);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.service-card p {
  color: var(--white-muted);
  font-size: 0.92rem;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: text-shadow 0.2s ease;
}

.text-btn:hover {
  text-shadow: 0 0 16px var(--blue-glow);
}

.testimonial-region {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.testimonial-wrap {
  display: grid;
  gap: 16px;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--black-card);
  color: var(--white);
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 20px var(--blue-dim);
}

.testimonial-track {
  position: relative;
  min-height: 0;
}

.testimonial {
  padding: 20px 18px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--clip-angle)) 0, 100% var(--clip-angle), 100% 100%, var(--clip-angle) 100%, 0 calc(100% - var(--clip-angle)));
  display: none;
}

.testimonial.is-active {
  display: block;
  border-left-color: var(--blue);
  box-shadow: 0 0 40px var(--blue-dim);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.8;
  color: var(--blue);
  opacity: 0.5;
  margin-bottom: 8px;
}

.testimonial-body {
  display: grid;
  gap: 10px;
}

.testimonial blockquote {
  margin: 0;
  font-size: 0.92rem;
  color: var(--white-muted);
  line-height: 1.65;
  white-space: pre-line;
}

.testimonial blockquote.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.testimonial blockquote.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  transition: text-shadow 0.2s ease;
}

.testimonial-toggle:hover {
  text-shadow: 0 0 16px var(--blue-glow);
}

.testimonial footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--white);
}

.testimonial span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: 4px;
}

.testimonial-stars {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-top: 0;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-dot.is-active {
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--black-card);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--blue-dim);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--white-muted);
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1400;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, 600px);
  margin: 80px auto;
  background: var(--black-card);
  border: 1px solid var(--border-strong);
  padding: 32px 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 0 60px var(--blue-dim);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--black-elevated);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.modal-content h3 {
  margin-bottom: 14px;
  padding-right: 32px;
  color: var(--blue);
}

.modal-content p {
  color: var(--white-muted);
  line-height: 1.7;
}

.stats-strip {
  padding: 40px 0;
  background: var(--black-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

.stat-card {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 4px;
  padding: 8px;
}

.stat-value {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--blue);
  line-height: 1;
  text-shadow: 0 0 30px var(--blue-dim);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--blue);
}

.stat-label {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.process-timeline {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step {
  position: relative;
  padding: 24px 22px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - var(--clip-angle)) 0, 100% var(--clip-angle), 100% 100%, var(--clip-angle) 100%, 0 calc(100% - var(--clip-angle)));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.process-step:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 30px var(--blue-dim);
  transform: translateY(-4px);
}

.process-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  color: var(--white-muted);
  font-size: 0.92rem;
}

.portfolio-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--border);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--clip-angle)) 0, 100% var(--clip-angle), 100% 100%, var(--clip-angle) 100%, 0 calc(100% - var(--clip-angle)));
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 40px var(--blue-dim);
  transform: translateY(-4px);
}

.portfolio-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 22px 20px;
}

.portfolio-info h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.portfolio-info p {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
}

@media (min-width: 980px) {
  .testimonial-wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "prev track next";
    align-items: stretch;
    gap: 12px;
  }

  .testimonial-track {
    grid-area: track;
  }

  .testimonial-nav {
    display: contents;
  }

  #prevTestimonial {
    grid-area: prev;
    align-self: center;
  }

  #nextTestimonial {
    grid-area: next;
    align-self: center;
  }

  .testimonial-dots {
    display: none;
  }

  .testimonial {
    padding: 28px 24px;
    position: relative;
    display: none;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    border-left-color: transparent;
    box-shadow: none;
  }

  .testimonial.is-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    border-left-color: var(--blue);
    box-shadow: 0 0 40px var(--blue-dim);
  }

  .testimonial-quote-mark {
    font-size: 3.5rem;
  }

  .testimonial blockquote {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .testimonial blockquote.is-clamped {
    -webkit-line-clamp: 4;
  }
}
