:root {
  --site-header-h: 61px;
  --site-footer-h: 66px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > header {
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}
body > main,
#main {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
body > footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

.nav-link {
  color: rgb(120, 124, 136);
  font: 700 14px/1.4em 'Open Sans', sans-serif;
  padding: 0 10px;
  transition: color 0.4s ease;
}
.nav-link:hover { color: rgb(50, 50, 50); }
.nav-link.is-active { color: #0eb5f0; }

.btn-reed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  height: 52px;
  padding: 0 24px;
  border: 2px solid #fff;
  border-radius: 30px;
  color: #fff;
  font: 700 17px/1.4em Lato, sans-serif;
  background: transparent;
  transition: border-color 0.4s ease, color 0.4s ease, background-color 0.4s ease;
}
.btn-reed:hover {
  border-color: #0eb5f0;
  color: #0eb5f0;
  background: #fff;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 58px;
  padding: 0 36px;
  border-radius: 999px;
  background: #1d1e21;
  color: #fff;
  font: 700 16px/1.4em 'Open Sans', sans-serif;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-submit:hover {
  background: #0eb5f0;
  transform: translateY(-1px);
}

.form-field {
  width: 100%;
  border: 2px solid #e8eaef;
  border-radius: 16px;
  background: #f7f8fa;
  color: #1d1e21;
  font: 400 16px/1.4em 'Open Sans', sans-serif;
  padding: 0 20px;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field:focus {
  border-color: #0eb5f0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 181, 240, 0.15);
}
.form-field::placeholder { color: #9aa0ab; }
input.form-field { height: 56px; }
textarea.form-field {
  height: 160px;
  resize: vertical;
  padding-top: 16px;
  padding-bottom: 16px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font: 700 13px/1.2em 'Open Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #787c88;
}

/* Seamless slideshow: full-bleed image, text floats on empty yellow */
.slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 767px) {
  .slide:not(.is-active) { display: none; }
  .slide.is-active {
    position: relative !important;
    inset: auto !important;
    display: block;
  }
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.slide-dot.is-active {
  background: #1d1e21;
  transform: scale(1.15);
}

.slide-panel {
  max-width: 440px;
}
@media (max-width: 767px) {
  .slide-panel {
    max-width: none;
    margin-top: -1px; /* kill hairline against image */
    padding: 2.5rem 1.5rem 3.5rem;
  }
  .slide-panel--it,
  .slide-panel--web { background: #ffcc01; }
  .slide-panel--data { background: #fcb100; }
}

.values-grid {
  display: grid;
  grid-template-columns: 170px 1fr 170px 1fr;
  grid-template-areas:
    "ill1 hq ill3 proven"
    "ill1 transparency ill2 results";
  gap: 28px 24px;
  align-items: start;
}
.v-ill1 { grid-area: ill1; }
.v-hq { grid-area: hq; }
.v-proven { grid-area: proven; }
.v-ill3 { grid-area: ill3; align-self: center; }
.v-ill2 { grid-area: ill2; }
.v-transparency { grid-area: transparency; padding-top: 40px; }
.v-results { grid-area: results; }

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ill1 hq"
      "ill3 proven"
      "ill2 results"
      "transparency transparency";
  }
  .v-transparency { padding-top: 0; }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ill1"
      "hq"
      "ill3"
      "proven"
      "ill2"
      "results"
      "transparency";
  }
}

.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
ul.dropdown-panel {
  min-width: 320px;
  padding: 12px 0;
}
.dropdown-panel .nav-link {
  display: block;
  padding: 14px 22px;
  line-height: 1.45;
  white-space: nowrap;
}
.dropdown-panel a:not(.nav-link),
.dropdown-panel button {
  padding: 12px 18px;
}

/* Inner content pages — true two-column layout (text | art) */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  flex: 1 0 auto;
  width: 100%;
  /* Fill viewport above footer so short pages don’t leave a hole under the footer */
  min-height: calc(100vh - var(--site-header-h) - var(--site-footer-h));
  min-height: calc(100dvh - var(--site-header-h) - var(--site-footer-h));
  background: #fff;
}
.page-hero--art-right {
  grid-template-areas: "copy visual";
}
.page-hero--art-left {
  grid-template-areas: "visual copy";
}
.page-hero__media {
  grid-area: visual;
  position: relative;
  min-height: 360px;
  background: #fff;
}
.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--art-right .page-hero__media img { object-position: right center; }
.page-hero--art-left .page-hero__media img { object-position: left center; }

.page-hero__content {
  grid-area: copy;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 48px 48px 64px 70px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.page-hero--art-left .page-hero__content {
  padding: 48px 70px 64px 48px;
}

.service-copy {
  max-width: 540px;
  width: 100%;
  background: transparent;
  padding: 0;
}

@media (max-width: 1024px) {
  .page-hero__content {
    padding: 100px 32px 64px;
  }
  .page-hero--art-left .page-hero__content {
    padding: 100px 32px 64px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    grid-template-columns: 1fr;
    /* keep filling short viewports on mobile too */
    min-height: calc(100dvh - var(--site-header-h) - var(--site-footer-h));
  }
  .page-hero--art-right,
  .page-hero--art-left {
    grid-template-areas:
      "visual"
      "copy";
  }
  .page-hero__media {
    min-height: 240px;
    height: 42vw;
    max-height: 320px;
  }
  .page-hero__content,
  .page-hero--art-left .page-hero__content {
    padding: 40px 20px 60px;
  }
  .service-copy {
    max-width: none;
  }
}

.prose-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}
.prose-page h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #1d1e21;
  margin-bottom: 1.5rem;
}
.prose-page h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #1d1e21;
  margin: 2rem 0 0.75rem;
}
.prose-page p,
.prose-page li {
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1d1e21;
}
.prose-page p + p { margin-top: 1rem; }
.prose-page ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.prose-page li + li { margin-top: 0.4rem; }

.service-copy h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: #1d1e21;
  margin-bottom: 1.25rem;
}
.service-copy p {
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1d1e21;
}
.service-copy p + p { margin-top: 1rem; }
.service-copy ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.service-copy li {
  position: relative;
  padding-left: 1.1rem;
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1d1e21;
}
.service-copy li + li { margin-top: 0.55rem; }
.service-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: #1d1e21;
}

/* ----- Mobile burger ----- */
.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #1d1e21;
  cursor: pointer;
  z-index: 120;
  position: relative;
}
@media (max-width: 767px) {
  .burger-btn { display: inline-flex; }
}
.burger-btn__lines {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}
.burger-btn__lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.burger-btn__lines span:nth-child(1) { top: 0; }
.burger-btn__lines span:nth-child(2) { top: 7px; }
.burger-btn__lines span:nth-child(3) { top: 14px; }
.burger-btn.is-open .burger-btn__lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.burger-btn.is-open .burger-btn__lines span:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-open .burger-btn__lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  visibility: hidden;
}
.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.is-open[hidden] {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 30, 33, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(14, 181, 240, 0.18), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 204, 1, 0.14), transparent 50%),
    #fff;
  transform: translateY(-8px) scale(0.985);
  opacity: 0;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.is-open .mobile-nav__sheet {
  opacity: 1;
  transform: none;
}

.mobile-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(29, 30, 33, 0.06);
}
.mobile-nav__logo img {
  display: block;
  height: 40px;
  width: 168px;
  object-fit: contain;
}
.mobile-nav__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #1d1e21;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.mobile-nav__close:hover {
  background: rgba(14, 181, 240, 0.12);
  color: #0eb5f0;
}

.mobile-nav__nav {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 28px 48px;
  overflow: auto;
}
.mobile-nav__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.mobile-nav__link {
  display: block;
  padding: 16px 0;
  font: 700 clamp(1.35rem, 5vw, 1.85rem)/1.25 Montserrat, sans-serif;
  color: #1d1e21;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 30, 33, 0.08);
  transform: translateY(14px);
  opacity: 0;
  transition:
    color 0.25s ease,
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: none;
}
.mobile-nav.is-open .mobile-nav__nav li:nth-child(1) .mobile-nav__link { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__nav li:nth-child(2) .mobile-nav__link { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav__nav li:nth-child(3) .mobile-nav__link { transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav__nav li:nth-child(4) .mobile-nav__link { transition-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav__nav li:nth-child(5) .mobile-nav__link { transition-delay: 0.24s; }
.mobile-nav.is-open .mobile-nav__nav li:nth-child(6) .mobile-nav__link { transition-delay: 0.28s; }

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: #0eb5f0;
  outline: none;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

/* ----- Scroll motion ----- */
.site-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(29, 30, 33, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.parallax-media {
  will-change: transform;
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    filter: blur(2px);
    transition:
      opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
  }

  .reveal-fade {
    transform: none;
    filter: blur(4px);
  }

  .reveal-up {
    transform: translate3d(0, 40px, 0);
  }

  .reveal-left {
    transform: translate3d(-40px, 16px, 0);
  }

  .reveal-right {
    transform: translate3d(40px, 16px, 0);
  }

  .reveal-scale {
    transform: translate3d(0, 24px, 0) scale(0.96);
  }

  .reveal.is-inview {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Soft accent line for section titles when they enter */
  main h2.reveal.is-inview {
    animation: title-glow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes title-glow {
  0% {
    letter-spacing: -0.02em;
  }
  100% {
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .parallax-media {
    transform: none !important;
  }
}
