:root {
  --color-electric-violet: #8039fa;
  --color-curious-blue: #18a6d4;
  --color-downy-cyan: #69c9c3;
  --color-malibu: #68e1fb;
  --color-melrose: #c2a6ff;
  --color-ink: #080b18;
  --color-midnight: #0b1024;
  --color-deep-navy: #101735;
  --color-panel: #11182d;
  --color-panel-soft: #151d34;
  --color-border-subtle: rgba(249, 250, 251, 0.12);
  --color-border-muted: rgba(249, 250, 251, 0.2);
  --color-text-primary: #f9fafb;
  --color-text-secondary: rgba(249, 250, 251, 0.76);
  --color-text-muted: rgba(249, 250, 251, 0.58);
  --gradient-button: linear-gradient(90deg, #8039fa 0%, #18a6d4 62%, #69c9c3 100%);
  --gradient-accent: linear-gradient(90deg, #9a5cfd 0%, #4c85f5 50%, #03b7b2 100%);
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-display: "Comfortaa", "Outfit", system-ui, sans-serif;
  --font-label: "Outfit", "Antic", system-ui, sans-serif;
  --container: 1180px;
  --container-wide: 1440px;
  --radius-card: 8px;
  --radius-panel: 18px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.26);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 45, 135, 0.32), transparent 34rem),
    linear-gradient(180deg, #050914 0%, var(--color-midnight) 42%, #060a15 100%);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

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

a:hover {
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-malibu);
  outline-offset: 4px;
}

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

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  inset: 1rem auto auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-card);
  background: white;
  color: #07101f;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 24px 0;
  transition: background 240ms var(--ease-soft), border-color 240ms var(--ease-soft), padding 240ms var(--ease-soft);
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(8, 11, 24, 0.82);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container-wide), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-mask {
  display: inline-block;
  width: clamp(124px, 13vw, 172px);
  aspect-ratio: 1920 / 349;
  background: var(--gradient-button);
  -webkit-mask: url("/assets/logos/weave-wordmark.png") center / contain no-repeat;
  mask: url("/assets/logos/weave-wordmark.png") center / contain no-repeat;
}

.brand .logo-mask {
  width: clamp(124px, 13vw, 172px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: rgba(249, 250, 251, 0.82);
  font-family: var(--font-label);
  font-size: 0.86rem;
  font-weight: 500;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.84rem 1.45rem;
  border: 1px solid transparent;
  font-family: var(--font-label);
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms var(--ease-soft), border-color 180ms var(--ease-soft), background 180ms var(--ease-soft);
}

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

.button--primary {
  background: var(--gradient-button);
  box-shadow: 0 14px 32px rgba(24, 166, 212, 0.18);
  color: white;
}

.button--secondary {
  color: var(--color-text-primary);
  border-color: rgba(249, 250, 251, 0.3);
  background: rgba(8, 11, 24, 0.24);
}

.button--nav {
  min-height: 40px;
  padding: 0.72rem 1.1rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border-muted);
  border-radius: 999px;
  background: rgba(8, 11, 24, 0.68);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 140px 20px 250px;
}

.hero__image,
.hero__overlay,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  opacity: 0.92;
}

.hero__overlay {
  background:
    radial-gradient(circle at 50% 26%, rgba(4, 8, 18, 0.18), rgba(4, 8, 18, 0.72) 42%, rgba(4, 8, 18, 0.95) 82%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.16), #07101f 94%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(840px, 100%);
  text-align: center;
  margin-top: 28px;
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--color-melrose);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.7vw, 4.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  background: var(--gradient-accent);
  background-clip: text;
  color: transparent;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  width: min(660px, 100%);
  margin: 1.4rem auto 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 2rem;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section--overlap {
  margin-top: -210px;
  z-index: 4;
}

.section--ruled {
  border-block: 1px solid var(--color-border-subtle);
}

.section--compact {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading--center {
  text-align: center;
}

.section-heading p:not(.section-label) {
  width: min(640px, 100%);
  margin: 0 auto;
  color: var(--color-text-secondary);
}

.section-heading h2,
.technology-panel h2,
.cta-band h2,
.content-card h2,
.contact-aside h2,
.two-column h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

.experience-card,
.content-card,
.contact-form,
.contact-aside {
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(17, 24, 45, 0.82), rgba(8, 13, 29, 0.92));
  box-shadow: var(--shadow-soft);
}

.experience-card {
  overflow: hidden;
  min-height: 360px;
  transition: transform 220ms var(--ease-soft), border-color 220ms var(--ease-soft);
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 225, 251, 0.42);
}

.experience-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.78;
}

.experience-card__body {
  padding: 24px;
}

.experience-card i,
.icon-step i,
.process-step i,
.technology-panel i,
.content-card i {
  width: 36px;
  height: 36px;
  color: var(--color-melrose);
  stroke-width: 1.5;
}

.experience-card h2,
.icon-step h2,
.process-step h2,
.content-card h3 {
  margin: 1rem 0 0.55rem;
  font-family: var(--font-label);
  font-size: 1.28rem;
  line-height: 1.2;
}

.experience-card p,
.icon-step p,
.process-step p,
.technology-panel p,
.content-card p,
.two-column p,
.contact-aside p {
  color: var(--color-text-secondary);
}

.feeling-row,
.process-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.feeling-row::before,
.process-row::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  border-top: 1px dashed rgba(194, 166, 255, 0.34);
}

.icon-step,
.process-step {
  position: relative;
  text-align: center;
}

.process-step__number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: rgba(128, 57, 250, 0.22);
  color: white;
  font-family: var(--font-label);
  font-weight: 700;
}

.technology-panel {
  display: grid;
  grid-template-columns: 160px minmax(230px, 1fr) 1.45fr;
  gap: 34px;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(110deg, rgba(128, 57, 250, 0.16), transparent 32%),
    rgba(17, 24, 45, 0.76);
}

.technology-panel__mark img {
  width: 130px;
  opacity: 0.9;
}

.technology-panel__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border-left: 1px solid var(--color-border-subtle);
  padding-left: 28px;
}

.technology-panel__features h3 {
  margin: 0.6rem 0 0.35rem;
  font-family: var(--font-label);
  font-size: 1rem;
}

.technology-panel__features p {
  margin: 0;
  font-size: 0.94rem;
}

.cta-band {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 62% 50%, rgba(24, 166, 212, 0.22), transparent 18rem),
    linear-gradient(90deg, rgba(128, 57, 250, 0.28), rgba(17, 24, 45, 0.9));
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 18% 22% auto;
  width: 45%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-malibu), transparent);
  box-shadow: 0 0 18px rgba(104, 225, 251, 0.55);
}

.cta-band > * {
  position: relative;
}

.cta-band p {
  max-width: 520px;
  margin: 0.7rem 0 0;
  color: var(--color-text-secondary);
}

.page-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px 0 84px;
  background:
    radial-gradient(circle at 70% 20%, rgba(38, 45, 135, 0.45), transparent 28rem),
    linear-gradient(180deg, #081021, #0b1024);
}

.page-hero > img {
  opacity: 0.28;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 20, 0.46), #0b1024 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero__inner h1,
.page-hero__inner p {
  margin-left: 0;
}

.page-hero__inner .button {
  margin-top: 1.8rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.two-column article {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-left: 1px solid var(--color-border-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
}

.contact-form,
.contact-aside {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-family: var(--font-label);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-card);
  background: rgba(3, 7, 16, 0.56);
  color: white;
  font: inherit;
  padding: 0.9rem 1rem;
}

.field--hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.5rem;
  color: var(--color-melrose);
}

.site-footer {
  padding: 58px 0;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-inner {
  width: min(var(--container-wide), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 32px;
}

.footer-brand .logo-mask {
  width: 148px;
}

.footer-brand p,
.footer-column a,
.footer-meta {
  color: var(--color-text-muted);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.footer-column h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-label);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    display: none;
    padding: 1rem;
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-card);
    background: rgba(8, 11, 24, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .card-grid--four,
  .content-grid,
  .technology-panel,
  .contact-layout,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technology-panel__features {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--color-border-subtle);
    padding: 24px 0 0;
  }

  .feeling-row,
  .process-row {
    grid-template-columns: 1fr;
  }

  .feeling-row::before,
  .process-row::before {
    display: none;
  }

  .icon-step,
  .process-step {
    text-align: left;
    padding-left: 60px;
  }

  .icon-step i,
  .process-step i {
    position: absolute;
    left: 0;
    top: 0;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: 760px;
    padding-block: 126px 190px;
  }

  .button-row,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button,
  .cta-band .button,
  .contact-form .button {
    width: 100%;
  }

  .card-grid--four,
  .content-grid,
  .technology-panel,
  .technology-panel__features,
  .contact-layout,
  .footer-inner,
  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column article {
    border-left: 0;
    border-top: 1px solid var(--color-border-muted);
  }

  .page-hero {
    min-height: 470px;
    padding-top: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
