:root {
  --fig-indigo: #14213D;
  --fig-navy: #1A365D;
  --fig-steel: #1F4E79;
  --fig-teal: #36ADA3;
  --fig-sun: #F4A261;
  --fig-ink: #0E1830;
  --fig-muted: #5b6280;
  --fig-line: rgba(31, 78, 121, 0.18);
  --fig-paper: #F5F7FA;
  --fig-white: #ffffff;
  --fig-shadow: 0 22px 50px rgba(20, 33, 61, 0.14);
  --fig-radius: 22px;
  --fig-ui: "Manrope", system-ui, sans-serif;
  --fig-display: "Fraunces", Georgia, serif;
  --fig-header: 4.65rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.m-body {
  font-family: var(--fig-ui);
  color: var(--fig-ink);
  background: var(--fig-paper);
  line-height: 1.55;
}

body.m-nav-lock {
  overflow: hidden;
}

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

a {
  color: var(--fig-steel);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fig-teal);
  outline-offset: 3px;
}

.m-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--fig-white);
  color: var(--fig-indigo);
  border-radius: 8px;
}

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

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

.m-wrap {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #f4f7fb;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 78, 121, 0.45);
}

.m-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(14, 24, 48, 0.28);
}

.m-header-inner {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--fig-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.m-brand .brand-mark-fig {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  overflow: visible;
}

.m-brand .fig-logo {
  width: 46px;
  height: 46px;
  position: relative;
  z-index: 1;
}

.m-brand .fig-glow {
  position: absolute;
  inset: -16%;
  border-radius: 18px;
  background: radial-gradient(circle at 40% 35%, rgba(54, 173, 163, 0.4), transparent 62%);
  opacity: 0.28;
  filter: blur(5px);
  pointer-events: none;
}

.m-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.m-brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fig-teal);
  font-weight: 700;
}

.m-brand-name {
  font-family: var(--fig-display);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.m-nav a {
  color: rgba(244, 247, 251, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.m-nav a:hover {
  color: #fff;
}

.m-nav .m-btn-login {
  margin-left: 0.4rem;
}

.m-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(54, 173, 163, 0.45);
  background: transparent;
  border-radius: 12px;
  position: relative;
}

.m-nav-toggle-bars,
.m-nav-toggle-bars::before,
.m-nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #f4f7fb;
  border-radius: 2px;
  position: absolute;
  left: 12px;
}

.m-nav-toggle-bars {
  top: 21px;
}

.m-nav-toggle-bars::before,
.m-nav-toggle-bars::after {
  content: "";
  left: 0;
}

.m-nav-toggle-bars::before {
  top: -6px;
}

.m-nav-toggle-bars::after {
  top: 6px;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.m-btn-primary,
.m-btn-login {
  background: var(--fig-teal);
  color: var(--fig-indigo);
  border-color: var(--fig-teal);
}

.m-btn-primary:hover,
.m-btn-login:hover {
  filter: brightness(1.05);
  color: var(--fig-indigo);
}

.m-btn-ghost {
  background: transparent;
  color: #f4f7fb;
  border-color: rgba(244, 247, 251, 0.35);
}

.m-btn-ghost:hover {
  background: rgba(244, 247, 251, 0.08);
  color: #fff;
}

.m-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--fig-header));
  display: flex;
  align-items: center;
  color: #f4f7fb;
  background: var(--fig-indigo);
  overflow: hidden;
}

.m-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(54, 173, 163, 0.28), transparent 55%),
    radial-gradient(700px 380px at 10% 90%, rgba(31, 78, 121, 0.55), transparent 50%),
    linear-gradient(165deg, #14213D 0%, #1A365D 55%, #0E1830 100%);
}

.m-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 247, 251, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 251, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
}

.m-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.m-hero-orb-a {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 18%;
  border: 1px solid rgba(54, 173, 163, 0.35);
  box-shadow: inset 0 0 80px rgba(54, 173, 163, 0.12);
}

.m-hero-orb-b {
  width: 90px;
  height: 90px;
  right: 28%;
  bottom: 22%;
  background: rgba(54, 173, 163, 0.12);
}

.m-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.5fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0 7rem;
}

.m-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--fig-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.m-eyebrow-on-dark,
.m-hero .m-eyebrow {
  color: var(--fig-sun);
}

.m-hero h1,
.m-section h2,
.m-cta h2,
.m-contact h2 {
  font-family: var(--fig-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.m-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 12ch;
}

.m-lead {
  font-size: 1.08rem;
  color: rgba(244, 247, 251, 0.78);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.m-section .m-lead,
.m-about-copy p,
.m-card p,
.m-service p {
  color: var(--fig-muted);
}

.m-hero-actions,
.m-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.m-hero-badge {
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(54, 173, 163, 0.35), transparent 45%),
    rgba(26, 54, 93, 0.65);
  border: 1px solid rgba(54, 173, 163, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.m-hero-badge-value {
  font-family: var(--fig-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--fig-sun);
}

.m-hero-badge-label {
  font-size: 0.88rem;
  color: rgba(244, 247, 251, 0.78);
}

.m-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  color: rgba(244, 247, 251, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.m-stats {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

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

.m-stat {
  background: var(--fig-white);
  border-radius: var(--fig-radius);
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: var(--fig-shadow);
  border: 1px solid var(--fig-line);
}

.m-stat-value {
  margin: 0;
  font-family: var(--fig-display);
  font-size: 1.8rem;
  color: var(--fig-indigo);
}

.m-stat-label {
  margin: 0.35rem 0 0;
  color: var(--fig-muted);
  font-size: 0.9rem;
}

.m-section {
  padding: 5.5rem 0 1rem;
}

.m-section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.m-section-head h2,
.m-about-copy h2,
.m-cta h2,
.m-contact h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  color: var(--fig-indigo);
}

.m-section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  max-width: none;
}

.m-section-aside {
  max-width: 22rem;
  margin: 0;
  color: var(--fig-muted);
  font-size: 0.92rem;
}

.m-card-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

.m-card,
.m-service,
.m-project,
.m-form {
  background: var(--fig-white);
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-radius);
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.05);
}

.m-card,
.m-service {
  padding: 1.5rem 1.35rem 1.4rem;
}

.m-card-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--fig-teal);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.m-card h3,
.m-service h3,
.m-project h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: var(--fig-indigo);
}

.m-card p,
.m-service p,
.m-project p {
  margin: 0;
}

.m-about {
  padding-top: 4.5rem;
}

.m-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.m-about-panel {
  background: var(--fig-indigo);
  border-radius: 32px;
  padding: 2rem;
  min-height: 320px;
  display: grid;
  place-items: center;
  box-shadow: var(--fig-shadow);
}

.m-about-mark {
  width: min(100%, 280px);
}

.m-about-caption {
  margin: 1rem 0 0;
  color: var(--fig-teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.m-about-copy p {
  margin: 0 0 1rem;
}

.m-checklist {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.m-checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  font-weight: 600;
  color: var(--fig-navy);
}

.m-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--fig-teal);
}

.m-project {
  overflow: hidden;
  padding: 0 0 1.2rem;
}

.m-project-art {
  height: 150px;
  background:
    linear-gradient(135deg, rgba(54, 173, 163, 0.35), transparent 45%),
    linear-gradient(160deg, #14213D, #1F4E79);
}

.m-project-art-b {
  background:
    linear-gradient(200deg, rgba(54, 173, 163, 0.45), transparent 40%),
    linear-gradient(160deg, #1A365D, #14213D);
}

.m-project-art-c {
  background:
    linear-gradient(20deg, rgba(244, 247, 251, 0.12), transparent 40%),
    linear-gradient(160deg, #1F4E79, #0E1830);
}

.m-project-status,
.m-project h3,
.m-project p {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.m-project-status {
  margin: 1rem 0 0.25rem;
  color: var(--fig-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.m-cta {
  margin: 4.5rem 0 0;
  background: var(--fig-navy);
  color: #f4f7fb;
}

.m-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 3.2rem 0;
}

.m-cta h2 {
  color: #f4f7fb;
  margin: 0;
  max-width: 16ch;
}

.m-contact {
  padding-bottom: 5rem;
}

.m-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.m-contact .m-lead {
  color: var(--fig-muted);
}

.m-contact-meta {
  font-weight: 700;
  color: var(--fig-indigo);
}

.m-text-link {
  font-weight: 700;
  color: var(--fig-steel);
}

.m-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  padding: 1.4rem;
}

.m-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fig-navy);
}

.m-form label em {
  font-style: normal;
  font-weight: 500;
  color: var(--fig-muted);
}

.m-form input,
.m-form select,
.m-form textarea {
  width: 100%;
  border: 1px solid var(--fig-line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fbfcfe;
  color: var(--fig-ink);
}

.m-form-full,
.m-form .m-btn,
.m-form-ok,
.m-form-err {
  grid-column: 1 / -1;
}

.m-form-ok {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(54, 173, 163, 0.15);
  color: var(--fig-indigo);
}

.m-form-err {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(232, 92, 84, 0.12);
  color: #9b2c2c;
}

.m-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.m-footer {
  background: #0E1830;
  color: rgba(244, 247, 251, 0.78);
  padding: 3rem 0 1.5rem;
}

.m-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.8fr;
  gap: 2rem;
}

.m-footer-brand p {
  max-width: 28rem;
}

.m-brand-foot .m-brand-name {
  color: #f4f7fb;
}

.m-footer-heading {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fig-sun);
}

.m-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-footer-links a {
  color: rgba(244, 247, 251, 0.82);
  text-decoration: none;
}

.m-footer-links a:hover {
  color: #fff;
}

.m-footer-links li + li {
  margin-top: 0.45rem;
}

.m-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(31, 78, 121, 0.45);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .m-hero-inner,
  .m-about-grid,
  .m-contact-grid,
  .m-cta-inner,
  .m-footer-grid,
  .m-section-head-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .m-cta-inner {
    display: grid;
  }

  .m-stats-grid,
  .m-card-grid-3,
  .m-card-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .m-hero-badge {
    margin: 0;
  }

  .m-hero h1 {
    max-width: none;
  }
}

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

  .m-nav {
    position: fixed;
    inset: var(--fig-header) 0 0;
    background: #0E1830;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.4rem;
    transform: translateX(110%);
    transition: transform 0.22s ease;
  }

  .m-nav.is-open {
    transform: none;
  }

  .m-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(31, 78, 121, 0.35);
  }

  .m-nav .m-btn-login {
    margin: 0.8rem 0 0;
    width: 100%;
  }

  .m-brand-name {
    font-size: 0.88rem;
    white-space: normal;
  }

  .m-stats-grid,
  .m-card-grid-3,
  .m-card-grid-4,
  .m-form {
    grid-template-columns: 1fr;
  }

  .m-hero-inner {
    padding: 3rem 0 6rem;
  }

  .m-stats {
    margin-top: -2.2rem;
  }
}

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

  .m-nav {
    transition: none;
  }
}
