:root {
  --bg: #060d0a;
  --bg-alt: #0b1611;
  --surface: #101f18;
  --surface-soft: #14271f;
  --text: #ecf4ef;
  --text-soft: #b7c9bf;
  --primary: #39d98a;
  --primary-dark: #1fab67;
  --border: #224335;
  --shadow: rgba(0, 0, 0, 0.24);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #173728 0%, var(--bg) 40%);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--primary);
  color: #032213;
  border-radius: 0.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 10, 0.82);
}

.header-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.header-circuit .line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(57, 217, 138, 0) 0%,
    rgba(57, 217, 138, 0.18) 40%,
    rgba(94, 242, 170, 0.95) 50%,
    rgba(57, 217, 138, 0.18) 60%,
    rgba(57, 217, 138, 0) 100%
  );
  background-size: 220px 100%;
  box-shadow: 0 0 8px rgba(94, 242, 170, 0.35);
  animation: pulseLine 5s linear infinite;
}

.header-circuit .line::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(94, 242, 170, 0.95);
  box-shadow: 0 0 10px rgba(94, 242, 170, 0.85);
  animation: nodePulse 2.2s ease-in-out infinite;
}

.header-circuit .line-1 {
  width: 26%;
  top: 22%;
  left: 6%;
  animation-delay: 0s;
}

.header-circuit .line-2 {
  width: 20%;
  top: 68%;
  left: 16%;
  animation-delay: 0.9s;
}

.header-circuit .line-3 {
  width: 24%;
  top: 30%;
  right: 10%;
  animation-delay: 1.4s;
}

.header-circuit .line-4 {
  width: 18%;
  top: 72%;
  right: 20%;
  animation-delay: 0.4s;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
  font-family: "Montserrat", "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand-green {
  color: var(--primary);
}

.brand-white {
  color: #ffffff;
}

.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem 1rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.6rem 0;
}

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

.mobile-nav-toggle {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.desktop-cta {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 1.05rem;
  border-radius: 0.52rem;
  text-decoration: none;
  font-weight: 640;
  border: 1px solid transparent;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, #44e796, var(--primary-dark));
  color: #042112;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #5cf3a7, #20b56f);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
}

.button-large {
  margin-top: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.05rem;
}

.hero {
  padding: 5.4rem 0 4.2rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  right: -1.4rem;
  bottom: -1.5rem;
  width: min(75vw, 350px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.1rem;
}

.hero-copy,
.section-intro {
  max-width: 68ch;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-content .hero-copy {
  padding-right: 2.1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 20, 15, 0.62) 100%
  );
}

.mission-grid,
.project-grid,
.partner-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.panel,
.project-card {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--surface-soft) 100%
  );
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 26px -20px var(--shadow);
}

.panel p,
.project-card p,
.project-card li {
  color: var(--text-soft);
}

.mission-highlight {
  border-color: #2f664e;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-logo-wrap {
  flex: 1;
  min-width: 0;
  margin-bottom: 0.5rem;
}

.project-logo {
  width: auto;
  max-width: 100%;
  height: 2rem;
}

.project-logo-main {
  margin: auto;
}

.project-card--featured {
  margin: 1.5rem auto 0;
}

.upcoming-brand {
  position: relative;
  margin: 1.5rem auto 0;
  padding: 2.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  background: rgba(20, 39, 31, 0.4);
}

.upcoming-logo {
  width: min(320px, 70%);
  height: auto;
  opacity: 0.85;
}

.project-carousel {
  position: relative;
  margin: 0 0 1rem;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  box-shadow: 0 12px 28px -22px var(--shadow);
  scrollbar-width: none;
}

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

.carousel-slide {
  min-width: 100%;
  margin: 0;
  scroll-snap-align: start;
  background: #0b0f0d;
}

.carousel-slide img {
  width: 100%;
  height: auto;
}

.carousel-controls {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem;
}

.carousel-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0;
  background: rgba(6, 13, 10, 0.74);
  color: var(--text);
  font: inherit;
  font-family: "Montserrat", "Segoe UI", Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.project-screenshot {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  overflow: hidden;
  box-shadow: 0 12px 28px -22px var(--shadow);
}

.project-screenshot img {
  width: 100%;
  height: auto;
}

.status {
  display: inline-block;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-live {
  background: rgba(64, 233, 150, 0.16);
  color: #7cf0b7;
  border: 1px solid rgba(124, 240, 183, 0.45);
}

.status-upcoming {
  background: rgba(111, 188, 255, 0.15);
  color: #a3d8ff;
  border: 1px solid rgba(163, 216, 255, 0.45);
}

.upcoming-brand .status-upcoming {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-focus {
  margin: 0.1rem 0 0.75rem;
  font-weight: 600;
}

.project-card ul {
  margin: 0.8rem 0 1rem;
  padding-left: 1rem;
}

.text-note {
  color: var(--text-soft);
  font-style: italic;
}

.contact-section {
  padding-top: 4.5rem;
  padding-bottom: 4.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
  background: rgba(3, 8, 6, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0.3rem 0;
  color: var(--text-soft);
}

.footer-inner nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-inner nav a {
  text-decoration: none;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: var(--primary);
}

@keyframes pulseLine {
  0% {
    background-position: -220px 0;
    opacity: 0.2;
  }

  35% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 220px 0;
    opacity: 0.3;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: translateY(-50%) scale(0.85);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-circuit .line,
  .header-circuit .line::after {
    animation: none;
  }
}

@media (min-width: 760px) {
  .mobile-nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 1rem;
  }

  .desktop-cta {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    position: static;
  }

  .hero-content {
    z-index: auto;
  }

  .hero-visual {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

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

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

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

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
