:root {
  color-scheme: dark light;
  --bg: #000000;
  --bg-alt: #0f0f0f;
  --bg-grad-start: #000000;
  --bg-grad-mid: #0a0a0a;
  --bg-grad-end: #000000;
  --grid-line: rgba(255, 255, 255, 0.03);
  --surface: rgba(25, 25, 25, 0.84);
  --surface-strong: #1a1a1a;
  --border: rgba(128, 128, 128, 0.14);
  --text: #ffffff;
  --muted: #b8b8b8;
  --accent: #9a9a9a;
  --accent-strong: #1a1a1a;
  --accent-soft: rgba(51, 51, 51, 0.14);
  --warning: #b3b3b3;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --header-bg: rgba(6, 16, 22, 0.7);
  --header-border: rgba(183, 208, 218, 0.08);
  --toggle-bg: rgba(255, 255, 255, 0.03);
  --toggle-border: var(--border);
  --toggle-color: var(--text);
  --toggle-bg-hover: rgba(255, 255, 255, 0.08);
  --focus-ring: rgba(255, 255, 255, 0.75);
  --card-1: linear-gradient(180deg, rgba(26, 26, 26, 0.92), rgba(15, 15, 15, 0.94));
  --card-2: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.96));
  --card-3: linear-gradient(160deg, rgba(26, 26, 26, 0.96), rgba(15, 15, 15, 0.96));
  --panel-highlight-bg: linear-gradient(160deg, rgba(51, 51, 51, 0.2), rgba(26, 26, 26, 0.96));
  --panel-accent-bg: linear-gradient(180deg, rgba(77, 77, 77, 0.1), rgba(26, 26, 26, 0.94));
  --input-bg: rgba(26, 26, 26, 0.9);
  --input-bg-focus: rgba(38, 38, 38, 0.95);
  --input-border: rgba(77, 77, 77, 0.5);
  --input-border-focus: rgba(128, 128, 128, 0.8);
  --input-focus-shadow: 0 0 0 4px rgba(128, 128, 128, 0.2);
  --mobile-nav-bg: rgba(8, 17, 22, 0.96);
  --secondary-border: rgba(183, 208, 218, 0.18);
  --secondary-bg: rgba(255, 255, 255, 0.02);
  --project-cta-bg: rgba(255, 255, 255, 0.04);
  --project-cta-bg-hover: rgba(255, 255, 255, 0.08);
  --project-cta-border: rgba(128, 128, 128, 0.38);
  --project-cta-border-hover: rgba(255, 255, 255, 0.5);
  --carousel-nav-bg: rgba(26, 26, 26, 0.8);
  --carousel-nav-bg-hover: rgba(51, 51, 51, 0.9);
  --carousel-nav-border-hover: rgba(128, 128, 128, 0.3);
  --whatsapp: #25d366;
  --whatsapp-soft: rgba(37, 211, 102, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-mid) 50%, var(--bg-grad-end) 100%);
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-text strong,
.eyebrow,
.section-label,
.project-tag,
.channel-card span,
.panel-card span,
.filter-button {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.brand-text small,
.section-label,
.eyebrow,
.service-card p,
.project-card p,
.content-card p,
.contact-copy,
.hero-stats span,
.panel-card p,
.panel-card li,
.site-footer p,
.channel-card small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--toggle-border);
  border-radius: 14px;
  background: var(--toggle-bg);
  color: var(--toggle-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  background: var(--toggle-bg-hover);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
}

.backdrop-one {
  width: 280px;
  height: 280px;
  right: -60px;
  top: 140px;
  background: rgba(128, 128, 128, 0.06);
}

.backdrop-two {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: 10%;
  background: rgba(128, 128, 128, 0.04);
}

.hero {
  padding-top: 4rem;
}

.hero-grid,
.section-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.section-grid h2,
.contact-grid h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.96;
  margin: 0;
}

.hero-copy p,
.contact-copy,
.content-card p,
.service-card p,
.project-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
}

.button-secondary {
  border-color: var(--secondary-border);
  background: var(--secondary-bg);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.hero-stats li,
.content-card,
.service-card,
.project-card,
.panel-card,
.contact-form,
.channel-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats li {
  padding: 1rem 1.15rem;
  border-radius: 18px;
}

.hero-stats strong,
.panel-card strong,
.service-card h3,
.project-card h3,
.channel-card strong,
.footer-inner strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel-highlight {
  background: var(--panel-highlight-bg);
}

.accent-card {
  background: var(--panel-accent-bg);
}

.panel-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.section-grid h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 12ch;
}

.content-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.services-grid,
.projects-grid,
.contact-channels {
  display: grid;
  gap: 1rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.channel-card {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
}

.service-card {
  min-height: 220px;
  background: var(--card-1);
}

.service-card h3,
.project-card h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.projects-section {
  position: relative;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  background: var(--card-2);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(128, 128, 128, 0.28);
}

.project-card.is-hidden {
  display: none;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #666666;
  background: rgba(77, 77, 77, 0.14);
}

.project-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.faq-section .section-heading h2 {
  max-width: none;
}

.faq-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 1.4rem;
}

.faq-category h3 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.95rem 1rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item {
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 700;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::before {
  content: '';
  position: absolute;
  right: 0;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.faq-item[open] summary::before {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item[open] summary {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.faq-item[open] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.faq-item p {
  animation: slideDown 0.3s ease-out;
  margin: 0.75rem 0 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 600px;
    transform: translateY(0);
  }
}

.filter-button {
  border-radius: 999px;
  border: 1px solid rgba(183, 208, 218, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.8rem 1rem;
}

.filter-button.is-active {
  color: var(--text);
  border-color: rgba(128, 128, 128, 0.4);
  background: rgba(77, 77, 77, 0.12);
}

.contact-grid {
  align-items: stretch;
}

.contact-channels {
  margin-top: 1.5rem;
}

.channel-card {
  display: grid;
  gap: 0.35rem;
  background: var(--card-3);
}

.contact-form {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
}

label span {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 16px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-focus-shadow);
  background: var(--input-bg-focus);
}

textarea {
  resize: vertical;
}

select option {
  background: var(--surface-strong);
  color: var(--text);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#form-feedback {
  min-height: 1.2em;
  margin: 0;
  color: var(--warning);
}

.site-footer {
  border-top: 1px solid rgba(183, 208, 218, 0.08);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.footer-inner a {
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: all 0.25s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.social-link:hover svg {
  transform: scale(1.08);
}

.whatsapp-link:hover {
  color: var(--whatsapp);
  border-color: rgba(37, 211, 102, 0.42);
  background: var(--whatsapp-soft);
}

body[data-theme="light"] .social-link {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
}

body[data-theme="light"] .social-link:hover {
  background: #f8fafc;
  border-color: #111111;
  color: #111111;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 0.35rem;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.2rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.3rem 0.6rem 0.95rem;
  margin: 0 -0.6rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 calc(48% - 0.72rem);
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.72;
  transform: translateY(8px) scale(0.965);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

@media (max-width: 1280px) {
  .carousel-item {
    flex: 0 0 calc(58% - 0.87rem);
  }
}

.carousel-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(60% - 0.9rem);
  }
}

@media (max-width: 760px) {
  .carousel-item {
    flex: 0 0 100%;
  }
}

.project-link {
  display: block;
  height: 100%;
}

.project-link:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: var(--radius-xl);
}

.carousel-card {
  transition: transform 0.32s ease, border-color 0.28s ease, box-shadow 0.32s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel-item.is-active .carousel-card {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
  border-color: rgba(128, 128, 128, 0.28);
}

.carousel-item:not(.is-active) .carousel-card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.45rem -1.45rem 1rem -1.45rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content ul {
  margin-bottom: 1rem;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--project-cta-border);
  background: var(--project-cta-bg);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-cta:hover {
  transform: translateY(-2px);
  background: var(--project-cta-bg-hover);
  border-color: var(--project-cta-border-hover);
}

.project-cta:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--carousel-nav-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.carousel-nav:hover {
  background: var(--carousel-nav-bg-hover);
  border-color: var(--carousel-nav-border-hover);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-alt: #edf2f7;
  --bg-grad-start: #ffffff;
  --bg-grad-mid: #f3f6fb;
  --bg-grad-end: #ffffff;
  --grid-line: rgba(17, 24, 39, 0.06);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.16);
  --text: #111111;
  --muted: #4b5563;
  --accent: #1f2937;
  --accent-strong: #0f172a;
  --accent-soft: rgba(30, 64, 175, 0.12);
  --warning: #1d4ed8;
  --shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(15, 23, 42, 0.1);
  --toggle-bg: rgba(248, 250, 252, 0.88);
  --toggle-border: rgba(15, 23, 42, 0.2);
  --toggle-color: #111111;
  --toggle-bg-hover: #e2e8f0;
  --focus-ring: rgba(15, 23, 42, 0.7);
  --card-1: linear-gradient(180deg, #ffffff, #f5f8ff);
  --card-2: linear-gradient(180deg, #ffffff, #f4f7fc);
  --card-3: linear-gradient(160deg, #ffffff, #f5f8ff);
  --panel-highlight-bg: linear-gradient(160deg, #ffffff, #eef4ff);
  --panel-accent-bg: linear-gradient(180deg, #f8fbff, #edf3ff);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --input-border: rgba(15, 23, 42, 0.24);
  --input-border-focus: rgba(30, 64, 175, 0.55);
  --input-focus-shadow: 0 0 0 4px rgba(30, 64, 175, 0.14);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --secondary-border: rgba(15, 23, 42, 0.2);
  --secondary-bg: #ffffff;
  --project-cta-bg: #ffffff;
  --project-cta-bg-hover: #f8fafc;
  --project-cta-border: rgba(15, 23, 42, 0.28);
  --project-cta-border-hover: rgba(15, 23, 42, 0.55);
  --carousel-nav-bg: rgba(255, 255, 255, 0.9);
  --carousel-nav-bg-hover: #eef2f7;
  --carousel-nav-border-hover: rgba(15, 23, 42, 0.34);
}

body[data-theme="light"] .whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.16);
}

body[data-theme="light"] .theme-icon-sun {
  display: none;
}

body[data-theme="light"] .theme-icon-moon {
  display: block;
}

body[data-theme="light"] .button-primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] .project-tag {
  color: #1f2937;
  background: rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .dot.is-active {
  background: #111111;
  border-color: #111111;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.dot:hover {
  border-color: rgba(128, 128, 128, 0.6);
}

.dot.is-active {
  background: #666666;
  border-color: #666666;
}

@media (max-width: 760px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }
}


@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .contact-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .project-filters {
    justify-content: flex-start;
  }

  .section-heading h2,
  .section-grid h2,
  .contact-grid h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--mobile-nav-bg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }

  .site-nav[data-open="true"] {
    max-height: 280px;
  }

  .site-nav a {
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(183, 208, 218, 0.08);
  }

  .site-nav a:first-child {
    border-top: 0;
  }

  .hero-copy h1,
  .section-heading h2,
  .section-grid h2,
  .contact-grid h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-copy p,
  .contact-copy,
  .content-card p,
  .service-card p,
  .project-card p {
    font-size: 1rem;
  }

  .carousel {
    gap: 1rem;
  }

  .project-image {
    height: 180px;
    margin: -1.15rem -1.15rem 1rem -1.15rem;
  }

  .carousel-card {
    padding: 1.15rem;
  }

  .project-cta {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    width: min(100% - 1rem, var(--container));
  }

  .hero-actions,
  .project-filters,
  .form-actions {
    gap: 0.75rem;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .carousel-nav {
    top: auto;
    bottom: -3.25rem;
    transform: none;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  .carousel-dots {
    margin-top: 4rem;
  }
}