:root {
  --bg: #f5f3ef;
  --bg-soft: #f9f7f4;
  --card: #ffffff;
  --card-alt: #f0ece8;
  --ink: #17181d;
  --muted: #5d6472;
  --line: rgba(23, 24, 29, 0.08);
  --primary: #1d4ed8;
  --primary-dark: #1739a7;
  --accent: #f2b57a;
  --shadow: 0 18px 45px rgba(23, 24, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.site-header {
  animation: rise-in 0.7s ease both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 243, 239, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink), var(--primary));
  color: white;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: white;
  transform: rotate(35deg);
}

.brand-mark i:first-child { left: 12px; }
.brand-mark i:last-child { right: 12px; opacity: 0.55; }

.brand-wordmark em {
  color: var(--primary);
  font-style: normal;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--ink), var(--primary));
  color: white;
  box-shadow: 0 12px 25px rgba(29, 78, 216, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

.hero {
  padding: 56px 0 30px;
}

.hero-banner-cw {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 181, 122, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(245, 243, 239, 0.2));
}

.hero-banner-cw::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: 34%;
  height: 70%;
  border: 1px solid rgba(29, 78, 216, 0.16);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.subtitle {
  max-width: 620px;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.hero-metrics strong {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup-window {
  animation: drift 8s ease-in-out 1s infinite;
}

.mockup-window {
  width: min(100%, 520px);
  border-radius: 28px;
  background: linear-gradient(180deg, #f9f7f5, #ece7e1);
  padding: 18px;
  border: 1px solid rgba(23, 24, 29, 0.06);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding-left: 4px;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  background: rgba(23, 24, 29, 0.25);
}

.mockup-content {
  background: white;
  border-radius: 22px;
  padding: 26px 20px 18px;
  border: 1px solid rgba(23, 24, 29, 0.05);
}

.mockup-top,
.mockup-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-card {
  min-height: 92px;
  border-radius: 18px;
}

.mini-card.accent {
  background: linear-gradient(135deg, rgba(242, 181, 122, 0.35), rgba(242, 181, 122, 0.18));
}

.mini-card.light {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0.04));
}

.mockup-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 16px;
  padding: 24px 0 18px;
}

.mockup-text p {
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  font-weight: 700;
}

.mockup-text h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  margin: 0;
}

.mockup-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 100px;
  padding-bottom: 10px;
}

.mockup-chart span {
  display: block;
  width: 16%;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--primary), rgba(29, 78, 216, 0.28));
}

.mockup-chart span:nth-child(1) { height: 32%; }
.mockup-chart span:nth-child(2) { height: 52%; }
.mockup-chart span:nth-child(3) { height: 72%; }
.mockup-chart span:nth-child(4) { height: 100%; }

.stat-box {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.logo-strip {
  padding: 28px 0 0;
}

.logo-strip .container {
  text-align: center;
}

.logo-strip p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-bottom: 20px;
  color: var(--muted);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  color: rgba(23, 24, 29, 0.42);
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 8px 18px rgba(23, 24, 29, 0.02);
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 16px;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
}

.project-card {
  display: block;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.project-card .project-visual {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.project-card:hover .project-visual {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.project-card-large {
  grid-row: span 2;
}

.project-visual {
  min-height: 260px;
  background-color: var(--card-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-one {
  min-height: 440px;
  background-image: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(242, 181, 122, 0.22)),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=80');
}

.visual-two {
  background-image: linear-gradient(135deg, rgba(23, 24, 29, 0.18), rgba(255, 255, 255, 0.12)),
    url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=900&q=80');
}

.visual-three {
  background-image: linear-gradient(135deg, rgba(242, 181, 122, 0.22), rgba(29, 78, 216, 0.18)),
    url('https://images.unsplash.com/photo-1556157382-97eda2d62296?auto=format&fit=crop&w=900&q=80');
}

.project-info {
  padding: 24px 22px 26px;
}

.project-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.alt-section {
  background: rgba(255, 255, 255, 0.2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px;
}

.step-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.testimonial-box {
  background: linear-gradient(135deg, #1a2338, #0d1320);
  color: white;
  border-radius: 28px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.testimonial-box .quote {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.18rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

.service-promise .eyebrow {
  color: var(--accent);
}

.service-promise h3 {
  color: white;
}

.service-promise .button-primary {
  background: white;
  color: var(--ink);
  box-shadow: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f6d7b0);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.person strong,
.person span {
  display: block;
}

.person span {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.site-footer {
  padding: 32px 0 18px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-contact,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.email-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-wrap,
  .project-grid,
  .services-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-large {
    grid-column: span 2;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .hero-grid,
  .about-wrap,
  .project-grid,
  .services-grid,
  .steps-grid,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .project-card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .nav-wrap,
  .split-heading,
  .footer-wrap,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-button {
    width: 100%;
  }

  .hero {
    padding: 34px 0 20px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-metrics {
    gap: 18px;
  }

  .hero-metrics li {
    min-width: 100px;
  }

  .mockup-window {
    padding: 12px;
    border-radius: 22px;
  }

  .mockup-content {
    padding: 18px 14px 14px;
  }

  .mockup-hero {
    grid-template-columns: 1fr;
    padding: 20px 0 14px;
  }

  .mockup-chart {
    height: 70px;
  }

  .logo-row {
    gap: 14px;
    font-size: 0.76rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .footer-wrap {
    padding: 28px 0 22px;
  }

  .footer-wrap h2 {
    font-size: 2rem;
  }
}
