:root {
  --bg: #09111f;
  --bg-soft: #0f1a2f;
  --surface: rgba(15, 26, 47, 0.84);
  --surface-strong: rgba(10, 18, 34, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #96a6bf;
  --accent: #8bffc7;
  --accent-strong: #47d9a3;
  --accent-warm: #ffd47f;
  --danger: #ff8d85;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --nav-height: 88px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

html[data-theme-resolved="light"] {
  --bg: #f4f7fb;
  --bg-soft: #e9eff7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(17, 33, 56, 0.1);
  --text: #132033;
  --muted: #53637c;
  --accent: #148d69;
  --accent-strong: #0f7b5b;
  --accent-warm: #996807;
  --danger: #b34740;
  --shadow: 0 20px 56px rgba(10, 22, 39, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(71, 217, 163, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(90, 149, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #07101c 0%, #09111f 48%, #08101d 100%);
  line-height: 1.65;
}

html[data-theme-resolved="light"] body {
  background:
    radial-gradient(circle at top left, rgba(20, 141, 105, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(72, 121, 222, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fb 48%, #edf2f9 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(139, 255, 199, 0.78);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.2;
  z-index: -1;
}

.site-shell::before {
  top: -10rem;
  left: -8rem;
  background: rgba(71, 217, 163, 0.18);
}

.site-shell::after {
  right: -6rem;
  top: 18rem;
  background: rgba(89, 129, 255, 0.2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 28, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

html[data-theme-resolved="light"] .site-header {
  background: rgba(248, 251, 255, 0.8);
  border-bottom-color: rgba(17, 33, 56, 0.07);
}

.site-header__inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand--image {
  gap: 0.95rem;
}

.brand__asset {
  display: none;
}

html[data-theme-resolved="dark"] .brand__asset--dark {
  display: block;
}

html[data-theme-resolved="light"] .brand__asset--light {
  display: block;
}

.brand__mark {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(139, 255, 199, 0.3), rgba(139, 255, 199, 0.06)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 255, 199, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand__icon {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__banner {
  height: 2.65rem;
  width: auto;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 1.05rem;
}

.brand__tag {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand--footer .brand__banner {
  height: 1.85rem;
}

.nav-toggle {
  display: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-toggle__bars {
  width: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.theme-toggle {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.site-nav .theme-toggle {
  display: inline-grid;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav__cta {
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 255, 199, 0.28);
  color: var(--text);
  background: linear-gradient(180deg, rgba(139, 255, 199, 0.16), rgba(139, 255, 199, 0.05));
}

html[data-theme-resolved="light"] .site-nav__cta {
  background: linear-gradient(180deg, rgba(20, 141, 105, 0.12), rgba(20, 141, 105, 0.04));
}

main {
  padding-bottom: 4rem;
}

.page-hero,
.hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 3rem;
}

.hero__grid,
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.85rem;
  height: 1px;
  background: rgba(139, 255, 199, 0.7);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.lead {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  max-width: 42rem;
}

.hero-copy p:last-of-type,
.section-copy p:last-of-type,
.card p:last-of-type {
  margin-bottom: 0;
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button--primary {
  background: linear-gradient(180deg, rgba(139, 255, 199, 0.95), rgba(71, 217, 163, 0.92));
  color: #04131f;
}

.button--secondary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.button--ghost {
  border-color: rgba(139, 255, 199, 0.28);
  background: rgba(139, 255, 199, 0.07);
}

.panel,
.card,
.metric,
.filter-button,
.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  padding: 1.4rem;
  min-height: 100%;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(139, 255, 199, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

html[data-theme-resolved="light"] .hero-panel::before {
  background:
    linear-gradient(145deg, rgba(20, 141, 105, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}

.hero-panel__label,
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-panel__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}

.hero-panel__list,
.check-list,
.meta-list,
.footer-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel__list li,
.check-list li,
.meta-list li,
.contact-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.hero-panel__list li::before,
.check-list li::before,
.meta-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--accent);
}

.section {
  padding: clamp(2.8rem, 8vw, 6rem) 0;
}

.section--tight {
  padding-top: 1rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-copy {
  max-width: 42rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

[data-services-grid] {
  display: block;
}

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

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

.services-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.services-marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

.services-marquee:hover .services-marquee__track {
  animation-play-state: paused;
}

.services-marquee .card--service {
  width: clamp(20rem, 28vw, 28rem);
  flex: 0 0 auto;
}

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

.metric {
  padding: 1.4rem;
  min-height: 100%;
}

.metric__value {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.metric__label {
  font-weight: 700;
  color: var(--text);
}

.card {
  padding: 1.5rem;
}

.card--service,
.card--process,
.card--contact,
.card--project {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card__number {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(139, 255, 199, 0.12);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.icon-block {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(139, 255, 199, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.project-card__image,
.service-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(135deg, rgba(89, 129, 255, 0.2), rgba(71, 217, 163, 0.12)),
    rgba(255, 255, 255, 0.02);
}

.project-card__image img,
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-list strong {
  color: var(--text);
}

.card__eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.card__meta,
.tags,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  color: var(--muted);
}

.project-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.muted-link {
  color: var(--text);
  font-weight: 700;
}

.muted-link:hover {
  color: var(--accent);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1.2rem;
}

.note {
  padding: 1.4rem;
}

.quote {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

html[data-theme-resolved="light"] .quote {
  background: rgba(255, 255, 255, 0.72);
}

.quote::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  color: rgba(139, 255, 199, 0.2);
  font-size: 4rem;
  line-height: 1;
  font-family: serif;
}

.quote p,
.quote strong {
  position: relative;
}

.cta-band {
  padding: 2rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(139, 255, 199, 0.18);
  background:
    linear-gradient(135deg, rgba(139, 255, 199, 0.12), rgba(91, 129, 255, 0.08)),
    rgba(8, 16, 29, 0.84);
  box-shadow: var(--shadow);
}

html[data-theme-resolved="light"] .cta-band {
  background:
    linear-gradient(135deg, rgba(20, 141, 105, 0.08), rgba(72, 121, 222, 0.06)),
    rgba(255, 255, 255, 0.88);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.filters {
  margin-bottom: 1.4rem;
}

.filter-button {
  padding: 0.7rem 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.filter-button[aria-pressed="true"] {
  color: #04131f;
  background: var(--accent);
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card[hidden] {
  display: none;
}

.process-list {
  counter-reset: step;
}

.process-list .card--process::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1.5rem 0 3rem;
}

html[data-theme-resolved="light"] .site-footer {
  border-top-color: rgba(17, 33, 56, 0.08);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.4rem;
  padding-top: 1.2rem;
}

.site-footer h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.footer-list li,
.footer-copy p {
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.site-footer__bar p {
  margin: 0;
  font-size: 0.95rem;
}

.legal-copy h2,
.legal-copy h3 {
  max-width: none;
}

.legal-copy section + section {
  margin-top: 2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
  gap: 1.2rem;
}

.service-detail + .service-detail {
  margin-top: 1.2rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.85fr);
  gap: 1.2rem;
}

.contact-link {
  color: var(--text);
  font-weight: 800;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.page-nav a {
  color: var(--muted);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 680ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 140ms;
}

.reveal:nth-child(4) {
  animation-delay: 180ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .services-marquee {
    mask-image: none;
    overflow: visible;
  }

  .services-marquee__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    animation: none;
  }

  .services-marquee .card--service {
    width: auto;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .page-hero__grid,
  .split-panel,
  .service-detail,
  .contact-panel,
  .cta-band__grid {
    grid-template-columns: 1fr;
  }

  .grid--4,
  .grid--3,
  .stats,
  .project-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(8, 16, 29, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav .theme-toggle {
    display: inline-grid;
  }

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

  .brand__banner {
    display: none !important;
  }

  html[data-theme-resolved="dark"] .brand__icon.brand__asset--dark,
  html[data-theme-resolved="light"] .brand__icon.brand__asset--light {
    display: block;
  }

  .services-marquee {
    mask-image: none;
  }

  .services-marquee .card--service {
    width: min(22rem, calc(100vw - 3rem));
  }
}

@media (max-width: 700px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .stats,
  .project-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    padding-top: 1.9rem;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .button,
  .site-nav__cta {
    width: 100%;
  }

  .site-header__inner {
    min-height: 72px;
    gap: 0.85rem;
  }

  .brand__icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .hero__grid,
  .page-hero__grid {
    gap: 1rem;
  }

  .hero-panel,
  .card,
  .note,
  .quote,
  .metric {
    padding: 1.2rem;
  }

  .section {
    padding: 2.1rem 0;
  }

  .section--tight {
    padding-top: 0.4rem;
    padding-bottom: 1rem;
  }

  .section__head {
    margin-bottom: 1.2rem;
  }

  .stats {
    gap: 0.85rem;
  }

  .services-marquee__track {
    animation-duration: 28s;
  }
}

@media (min-width: 981px) {
  .brand__icon {
    display: none !important;
  }

  html[data-theme-resolved="dark"] .brand__banner.brand__asset--dark,
  html[data-theme-resolved="light"] .brand__banner.brand__asset--light {
    display: block;
  }
}
