:root {
  --bg: #d6e8ef;
  --bg-soft: #eef6f9;
  --ink: #123643;
  --ink-deep: #062b39;
  --accent: #29b7c6;
  --accent-dark: #16798b;
  --slate: #33363c;
  --line: rgba(9, 59, 78, 0.24);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(10, 42, 57, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(41, 183, 198, 0.22), transparent 24%),
    linear-gradient(180deg, #f8fcfd 0%, var(--bg) 56%, #c8e0e8 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-ornament {
  position: fixed;
  inset: 0 auto 0 0;
  width: 132px;
  pointer-events: none;
  z-index: 0;
}

.page-ornament__band {
  position: absolute;
  left: 0;
  top: 34%;
  width: 116px;
  height: 84px;
  background: var(--slate);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 100% 65%, 100% 65%, 100% 100%, 0 100%, 16% 50%);
}

.page-ornament__line {
  position: absolute;
  bottom: -5%;
  width: 2px;
  height: 86%;
  background: linear-gradient(180deg, transparent, var(--line), var(--ink));
  border-radius: 999px;
  transform-origin: bottom center;
}

.page-ornament__line--one {
  left: 30px;
  transform: rotate(-4deg);
}

.page-ornament__line--two {
  left: 48px;
  transform: rotate(-11deg);
}

.page-ornament__line--three {
  left: 68px;
  transform: rotate(-18deg);
}

.hero,
.section,
.nav {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 18px 48px 24px 148px;
  min-height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--accent);
}

.brand__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong,
.m4-logo span,
h1,
h2,
h3,
.eyebrow,
.statement {
  font-family: "Barlow Condensed", sans-serif;
}

.brand__text strong {
  font-size: 2.45rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.brand__text small {
  font-size: 0.64rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav__links {
  display: flex;
  gap: 18px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.m4-logo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 128px;
  padding: 10px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(18, 54, 67, 0.12);
  box-shadow: 0 16px 34px rgba(10, 42, 57, 0.14);
  color: var(--slate);
}

.m4-logo img {
  width: 82px;
  height: 82px;
  display: block;
}

.m4-logo span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  gap: 30px;
  padding-top: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  color: var(--ink-deep);
}

h1 {
  font-size: clamp(2.15rem, 3.2vw, 3.3rem);
  max-width: 30ch;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  max-width: 24ch;
}

h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.hero__lead,
.card p,
.wide-card p,
.feature-list p,
.contact-card p,
li {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero__lead {
  max-width: 54ch;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 16px;
}

.hero__metrics article {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 54, 67, 0.1);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 20px rgba(10, 42, 57, 0.04);
}

.hero__metrics strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  color: var(--ink-deep);
}

.hero__metrics span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--ink-deep), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(12, 64, 85, 0.18);
}

.button--secondary {
  border: 1px solid rgba(18, 54, 67, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.hero__visual {
  position: relative;
  min-height: 280px;
  height: 100%;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
}

.hero__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 183, 198, 0.24), rgba(41, 183, 198, 0));
  filter: blur(18px);
}

.hero__image-card {
  position: relative;
  width: min(100%, 520px);
  height: 100%;
  min-height: 500px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 28px rgba(10, 42, 57, 0.1);
  overflow: hidden;
}

.hero__image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 43, 57, 0.02), rgba(6, 43, 57, 0.14));
}

.hero__image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  padding: 42px 48px 42px 148px;
}

.section__heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section__heading--center {
  justify-items: center;
  text-align: center;
}

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

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

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

.card,
.wide-card,
.contact-card,
.feature-list article,
.statement {
  border: 1px solid rgba(18, 54, 67, 0.08);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.card,
.feature-list article,
.contact-card {
  border-radius: 24px;
  padding: 28px;
}

.card--accent {
  background: linear-gradient(155deg, rgba(18, 54, 67, 0.96), rgba(23, 124, 140, 0.92));
  color: var(--white);
}

.card--accent h3 {
  color: var(--white);
}

.card--accent ul {
  padding-left: 20px;
  margin: 0;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.services span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(18, 54, 67, 0.08);
  color: var(--ink-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.section--philosophy {
  padding-top: 24px;
}

.statement {
  margin: 0;
  padding: 36px;
  border-radius: 32px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-card {
  min-height: 100%;
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}

.service-card div {
  padding: 26px;
}

.wide-card {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 28px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(18, 54, 67, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.timeline__item span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-deep), var(--accent-dark));
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.timeline__item p {
  margin: 10px 0 0;
  line-height: 1.75;
}

.section--dark {
  border-radius: 36px 0 0 36px;
  margin: 24px 0 0 100px;
  padding: 54px 48px;
  background: linear-gradient(135deg, rgba(6, 43, 57, 0.96), rgba(15, 110, 126, 0.9));
  color: rgba(255, 255, 255, 0.9);
}

.section--dark h2,
.section--dark .eyebrow {
  color: var(--white);
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-list article {
  display: grid;
  gap: 14px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.feature-list span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
  color: var(--accent);
}

.section--contact {
  padding-bottom: 78px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-card--info {
  justify-items: start;
  max-width: none;
  margin: 0;
  text-align: left;
}

.contact-card--info h3,
.contact-form h3 {
  margin-bottom: 8px;
}

.contact-card a {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-link__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  flex: 0 0 34px;
}

.contact-link__icon svg {
  width: 18px;
  height: 18px;
}

.contact-card p {
  margin: 0;
  font-weight: 600;
}

.contact-form {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(18, 54, 67, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

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

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(18, 54, 67, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.95);
}

.form-grid textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .section {
    padding-left: 114px;
  }

  .hero__content,
  .grid--2,
  .grid--3,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .section--dark {
    margin-left: 64px;
  }
}

@media (max-width: 720px) {
  .page-ornament {
    width: 78px;
  }

  .page-ornament__band {
    width: 68px;
    height: 64px;
  }

  .hero,
  .section {
    padding: 22px 18px 34px 70px;
  }

  .hero {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
  }

  .brand__icon {
    width: 46px;
    height: 46px;
  }

  .brand__text strong {
    font-size: 2.05rem;
  }

  .nav__links {
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .m4-logo {
    min-width: 108px;
    padding: 8px 10px 10px;
  }

  .m4-logo img {
    width: 68px;
    height: 68px;
  }

  .hero__content {
    padding-top: 16px;
  }

  .hero__visual {
    min-height: 210px;
  }

  .hero__metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 190px;
  }

  .hero__image-card {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 4 / 5.2;
  }

  .statement,
  .card,
  .wide-card,
  .feature-list article,
  .contact-card {
    padding: 22px;
  }

  .section--dark {
    margin-left: 28px;
    border-radius: 28px 0 0 28px;
    padding: 34px 18px 34px 24px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .contact-form__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }
}
