:root {
  --brand: #ff3a46;
  --brand-dark: #e02732;
  --brand-soft: rgba(255, 58, 70, 0.1);
  --navy: #1b2030;
  --ink: #262626;
  --text: #57667e;
  --muted: #8892a4;
  --line: #ece8f4;
  --bg: #faf9ff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(27, 32, 48, 0.08);
  --radius: 18px;
  --header: 84px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul { list-style: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.8px; }
h3 { font-size: 22px; }
p { margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--muted); }
.quote {
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 18px;
  font-style: italic;
  color: var(--ink);
  margin: 22px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); width: 30%; text-align: center; }
.btn-white:hover { transform: translateY(-2px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(27, 32, 48, 0.06); }
.header-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-end; }
.nav a {
  padding: 10px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #64657a;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--brand); }
.nav .has-sub { position: relative; }
.nav .has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}
.nav .has-sub:hover .submenu,
.nav .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 12px; border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.submenu a:hover { background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.menu-toggle span:before,
.menu-toggle span:after { content: ""; position: absolute; left: 0; }
.menu-toggle span:before { top: -7px; }
.menu-toggle span:after { top: 7px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background: radial-gradient(circle at 85% 20%, rgba(255, 58, 70, 0.08), transparent 28%),
              radial-gradient(circle at 8% 80%, rgba(45, 91, 255, 0.08), transparent 24%),
              #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin: 10px 0 18px; }
.hero .line { width: 72px; height: 3px; background: var(--brand); margin: 22px 0; }
.hero-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.orb-a { width: 280px; height: 280px; right: 40px; top: 10px; background: linear-gradient(135deg, #ff3a46, #ff8a90); opacity: 0.9; animation: float 7s ease-in-out infinite; }
.orb-b { width: 170px; height: 170px; left: 30px; bottom: 40px; background: linear-gradient(135deg, #2d5bff, #7aa0ff); animation: float 8s ease-in-out infinite reverse; }
.orb-c { width: 90px; height: 90px; right: 20px; bottom: 80px; background: #1b2030; animation: float 6s ease-in-out infinite; }
.hero-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 90%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card strong { display: block; color: var(--navy); font-size: 28px; margin-bottom: 6px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.page-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #fff, var(--bg));
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 8px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card, .job-card, .service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.25s ease;
}
.service-card:hover, .job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14px; }
.more { color: var(--brand); font-weight: 700; font-size: 13px; }

.stats {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats:before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.18;
}
.stats-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; }
.stats h2 { color: #fff; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.counter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 12px;
  text-align: center;
}
.counter b { display: block; color: #fff; font-size: 42px; line-height: 1; }
.counter span { color: #c9ced8; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; }

.work-grid, .folio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  background: #eee;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.work-item:hover img { transform: scale(1.06); }
.work-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(16, 18, 28, 0.78));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.folio-grid .work-item.hide { display: none; }

.testimonials { background: #fff; }
.testimonial-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial p { font-size: 20px; color: var(--ink); font-weight: 500; }
.testimonial h5 { margin-top: 18px; color: var(--brand); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ddd;
  cursor: pointer;
}
.dots button.active { background: var(--brand); width: 26px; border-radius: 999px; }

.cta {
  background: linear-gradient(135deg, var(--brand), #ff6a72);
  color: #fff;
}
.cta h2, .cta p { color: #fff; }
.cta p { max-width: 720px; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-box .btn { flex-shrink: 0; }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.prose { max-width: 820px; }
.prose h3 { margin: 28px 0 10px; }
.checklist { display: grid; gap: 10px; margin: 18px 0 28px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--brand);
}

.jobs { display: grid; gap: 16px; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.job-meta { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.6px; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.info-card, .form-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.info-card h3 { margin: 18px 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--navy); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfbff;
  color: var(--navy);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-ok, .form-err { display: none; font-weight: 700; margin-top: 12px; }
.form-ok { color: #178a4a; }
.form-err { color: #c62828; }
.form-ok.show, .form-err.show { display: block; }
.btn:disabled { opacity: 0.65; cursor: wait; }

.site-footer { background: #141824; color: #c5cad6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h5 { color: #fff; margin-bottom: 16px; }
.site-footer a:hover { color: var(--brand); }
.site-footer li { margin-bottom: 8px; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 40;
}
.to-top.show { display: grid; place-items: center; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(900px, 92vw); max-height: 84vh; border-radius: 12px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 980px) {
  .hero-grid, .split, .stats-grid, .contact-grid, .footer-grid, .mission-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .btn { width: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .work-grid, .folio-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { min-height: 280px; }
  .orb-a { width: 180px; height: 180px; }
  .orb-b { width: 110px; height: 110px; }
  .nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .cards, .work-grid, .folio-grid, .counters, .form-grid, .job-card { grid-template-columns: 1fr; }
  .job-card { align-items: flex-start; flex-direction: column; }
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 26px; letter-spacing: -0.4px; word-break: break-word; }
  .cta p { font-size: 15px; }
}
