:root {
  --ink: #071b3d;
  --muted: #5b667a;
  --line: #dfe7f3;
  --soft: #f5f8fc;
  --accent: #0875f5;
  --accent-dark: #0559be;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 27, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 156px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: url("/assets/envision-it-banner.png") center center / min(1120px, 92vw) auto no-repeat;
  opacity: 0.26;
}

body > * {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: min(390px, 60vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: calc(72vh - 132px);
  display: grid;
  align-items: center;
  padding: clamp(76px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 86px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5.3vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: #324057;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: rgba(255, 255, 255, 0.82);
}

.intro p,
.request-copy p,
.service-flow p,
.approach-flow p {
  color: var(--muted);
}

.intro p {
  max-width: 740px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.services {
  background: rgba(245, 248, 252, 0.86);
}

.service-flow,
.approach-flow {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: start;
  min-height: 164px;
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid rgba(7, 27, 61, 0.14);
}

.service-panel:last-child {
  border-bottom: 1px solid rgba(7, 27, 61, 0.14);
}

.service-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.service-panel p {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 54px, 0);
  transition: opacity 980ms ease, transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translate3d(-72px, 42px, 0);
}

.reveal-right {
  transform: translate3d(260px, 18px, 0);
}

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

.request-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  background: rgba(249, 251, 254, 0.88);
  border-top: 1px solid var(--line);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
}

.contact-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
}

.contact-profile {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.contact-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(7, 27, 61, 0.16);
}

.contact-role {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details h3 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 27, 61, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 117, 245, 0.42);
  background: var(--white);
}

.contact-links span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.request-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.request-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: #26354c;
  font-size: 0.94rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7e8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 480;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(8, 117, 245, 0.16);
}

.submit {
  justify-self: start;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 680;
}

.form-status.success {
  color: #086c3c;
}

.form-status.error {
  color: #b42318;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 760;
}

@media (max-width: 900px) {
  .intro,
  .contact-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .request-copy {
    position: static;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 10px 18px;
  }

  .service-panel p {
    grid-column: auto;
  }

  .contact-profile {
    grid-template-columns: 1fr;
  }

  .contact-profile img {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: 0;
  }

  body::before {
    position: absolute;
    height: 100svh;
    opacity: 0.18;
  }

  .site-header {
    position: static;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    padding-top: 28px;
  }

  .brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .brand img {
    width: min(560px, 92vw);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .service-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-panel p {
    grid-column: auto;
  }

  .contact-profile img {
    max-width: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translate3d(100vw, 20px, 0);
    transition-duration: 1150ms;
  }

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

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

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal,
  .reveal-left,
  .reveal-right {
    transition-duration: 420ms;
  }
}
