*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --soft: #f4f4f5;
  --line: rgba(17, 17, 17, 0.08);
  --radius: 28px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-dark:hover { background: #2a2a2a; }
.btn-light:hover { background: #f4f4f5; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn-full { width: 100%; }
.btn-dark { background: #111; color: #fff; }
.btn-light { background: #fff; color: #111; border-color: #111; }

.logo { display: grid; place-items: center; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
}
.logo-mark.sm { width: 28px; height: 28px; font-size: 0.8rem; }

.topbar {
  position: sticky;
  top: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 8px 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.top-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3a3a3a;
}

.top-nav a:hover { color: #111; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #111;
}

.mobile-drawer {
  position: fixed;
  inset: 80px 16px auto;
  z-index: 70;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.mobile-drawer[hidden] { display: none; }

.hero {
  width: min(920px, calc(100% - 32px));
  margin: 36px auto 0;
  text-align: center;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.avatars { display: inline-flex; }
.avatars i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--i);
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid #fff;
}
.avatars i:first-child { margin-left: 0; }
.stars { color: #111; letter-spacing: 1px; font-size: 0.78rem; }

.hero h1 {
  font-size: clamp(2rem, 5.6vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-lead {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-checks {
  display: flex;
  justify-content: center;
  gap: 22px 28px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  list-style: none;
  color: #3f3f3f;
  font-size: 0.92rem;
}

.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.2 11.2 3.4 8.4l1.2-1.2 1.6 1.6 5.2-5.2 1.2 1.2z'/></svg>") center / 12px no-repeat;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.88rem;
}

.hero-stage {
  width: min(1100px, calc(100% - 16px));
  margin: 28px auto 0;
}

.stage-frame {
  overflow: hidden;
  border-radius: 36px 36px 0 0;
  background: #f3f4f6;
  min-height: 320px;
}

.hero-work {
  display: block;
  padding: 16px 16px 0;
  filter: drop-shadow(0 28px 70px rgba(17, 17, 17, 0.14));
}

.hero-work-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

.hero-work-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
}

.hero-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  border-top: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.05s ease, transform 8s linear;
}

.hero-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.logo-row {
  width: min(920px, calc(100% - 32px));
  margin: 72px auto 0;
  text-align: center;
}

.logo-row p {
  color: var(--muted);
  font-size: 1rem;
}

.logo-marquee {
  overflow: hidden;
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-names {
  display: flex;
  width: max-content;
  gap: 48px;
  color: #9a9a9a;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  animation: marquee 32s linear infinite;
}

.band,
.how,
.cases,
.offer,
.faq,
.filters-bar,
.work-grid-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 88px auto 0;
}

.band { text-align: center; }
.band-tight { margin-top: 48px; }

.pill-label {
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.soft-card {
  padding: 32px 24px;
  background: var(--soft);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.35s ease;
}

.soft-card:hover { transform: translateY(-6px); }

.band.reveal.is-in .soft-card {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-row .soft-card:nth-child(2) { animation-delay: 0.1s; }
.card-row .soft-card:nth-child(3) { animation-delay: 0.2s; }

.soft-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
}

.soft-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.soft-card p { color: var(--muted); font-size: 0.95rem; }

.how { text-align: center; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  list-style: none;
  text-align: left;
}

.how-grid li {
  padding: 28px;
  background: var(--soft);
  border-radius: var(--radius);
  transition: transform 0.35s ease;
}

.how-grid li:hover { transform: translateY(-4px); }

.how.reveal.is-in .how-grid li {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.how-grid li:nth-child(2) { animation-delay: 0.08s; }
.how-grid li:nth-child(3) { animation-delay: 0.16s; }
.how-grid li:nth-child(4) { animation-delay: 0.24s; }

.how-grid h3 { margin-bottom: 8px; letter-spacing: -0.03em; }
.how-grid p { color: var(--muted); margin-bottom: 16px; }
.how-grid ul { padding-left: 18px; color: #3f3f3f; font-size: 0.92rem; display: grid; gap: 8px; }

.cases { text-align: center; }

.cases-list { display: grid; gap: 28px; margin: 40px 0 24px; }

.case-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--soft);
  border-radius: 32px;
  text-align: left;
  transition: transform 0.35s ease;
}

.case-card:hover { transform: translateY(-8px); }

.case-card[hidden] { display: none !important; }

.case-visual {
  min-height: 220px;
  padding: 32px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.4), transparent 30%),
    linear-gradient(135deg, var(--case) 0%, #111 140%);
  color: #fff;
}

.case-visual.has-shot {
  padding: 0;
  min-height: 0;
}

.case-visual.has-shot img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s ease;
}

.case-card:hover .case-visual.has-shot img { transform: scale(1.1); }

.case-visual strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.case-visual span { display: block; margin-top: 8px; opacity: 0.8; }

.case-copy h3 {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.case-copy p { color: var(--muted); margin: 8px 0 16px; }

.filters-bar { margin-top: 48px; }
.filters-row { display: flex; gap: 12px; align-items: center; }
.search-wrap { flex: 1; }
.search-input,
.sort-select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

.sort-select { width: auto; }

.filters-inner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.chip.active,
.chip:hover { background: #111; color: #fff; border-color: #111; }

.filter-status,
.projects-count { margin-top: 12px; color: var(--faint); font-size: 0.88rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.project-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--soft);
  border-radius: 22px;
  transition: transform 0.3s ease;
}

.project-card:hover { transform: translateY(-3px); }

.card-shot {
  margin: -20px -20px 8px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

.card-shot img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .card-shot img { transform: scale(1.05); }

.project-card.hidden { display: none; }
.card-top { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.78rem; }
.project-name { font-weight: 700; letter-spacing: -0.03em; }
.project-domain,
.project-desc,
.project-proof { color: var(--muted); font-size: 0.88rem; }
.project-tags,
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  color: #52525b;
}
.card-link { font-size: 0.85rem; font-weight: 600; }
.status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
}

.work-soon { display: grid; gap: 12px; margin-top: 16px; }
.soon-card { padding: 20px; background: var(--soft); border-radius: 22px; }
.soon-label { color: var(--faint); font-size: 0.78rem; }

.offer { text-align: center; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}

.offer-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  background: var(--soft);
  border-radius: 28px;
}

.offer-card-featured { background: #111; color: #fff; }
.offer-card-featured p,
.offer-card-featured li { color: #d4d4d8; }
.offer-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111 !important;
  font-size: 0.72rem;
  font-weight: 700;
}

.offer-card ul { display: grid; gap: 8px; margin: 8px 0 12px; padding-left: 18px; color: var(--muted); }
.offer-card .btn { justify-self: start; margin-top: 8px; }

.faq { text-align: center; }
.faq-list {
  width: min(720px, 100%);
  margin: 32px auto 0;
  text-align: left;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin-top: 10px; color: var(--muted); }

.faq-cta { margin-top: 36px; }
.faq-cta h3 { margin-bottom: 16px; letter-spacing: -0.03em; }

.close {
  width: min(800px, calc(100% - 32px));
  margin: 96px auto;
  text-align: center;
}

.close h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.close p { color: var(--muted); margin: 14px 0 24px; }

.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; max-width: 720px; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-copy { margin-top: 20px; color: var(--faint); font-size: 0.82rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.4); }
.modal-panel {
  position: relative;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 28px;
  background: #fff;
  border-radius: 24px;
}
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 1.4rem; }
.modal-panel h2 { font-size: 1.7rem; letter-spacing: -0.04em; }
.modal-lead { color: var(--muted); margin: 8px 0 20px; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Project pages */
.project-page { width: min(920px, calc(100% - 32px)); margin: 40px auto 80px; }
.breadcrumb { display: flex; gap: 8px; color: var(--faint); font-size: 0.88rem; margin-bottom: 28px; }
.project-hero { display: grid; gap: 16px; margin-bottom: 36px; }
.project-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.05em; }
.project-tagline { color: var(--muted); font-size: 1.1rem; }
.project-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.project-shot {
  overflow: hidden;
  margin: 8px 0 4px;
  border-radius: 22px;
}
.project-shot img { width: 100%; height: auto; display: block; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-block { padding: 24px; background: var(--soft); border-radius: 22px; margin-bottom: 16px; }
.project-block h2 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-list { display: grid; gap: 8px; padding-left: 18px; color: var(--muted); }
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related-card { padding: 10px 14px; background: #fff; border-radius: 999px; }
.project-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  background: #111;
  color: #fff;
  border-radius: 24px;
}
.project-cta-bar p { color: #d4d4d8; }
.site-footer-compact { border: 0; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .topbar .btn-sm { display: none; }
  .menu-btn { display: grid; }
  .card-row,
  .offer-grid,
  .work-grid,
  .project-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-checks { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { margin-top: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stage-frame { border-radius: 24px 24px 0 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .reveal-hero:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal-hero:nth-child(2) { animation-delay: 0.14s; }
.hero .reveal-hero:nth-child(3) { animation-delay: 0.22s; }
.hero .reveal-hero:nth-child(4) { animation-delay: 0.3s; }
.hero .reveal-hero:nth-child(5) { animation-delay: 0.38s; }
.hero .reveal-hero:nth-child(6) { animation-delay: 0.46s; }
.hero-stage.reveal-hero { animation-delay: 0.5s; animation-name: fade-up-scale; }

.avatars i { animation: pop 0.5s ease both; }
.avatars i:nth-child(1) { animation-delay: 0.2s; }
.avatars i:nth-child(2) { animation-delay: 0.28s; }
.avatars i:nth-child(3) { animation-delay: 0.36s; }
.avatars i:nth-child(4) { animation-delay: 0.44s; }

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

@keyframes fade-up-scale {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-hero { opacity: 1; transform: none; }
  .logo-names { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .band.reveal.is-in .soft-card,
  .how.reveal.is-in .how-grid li { animation: none; }
}
