:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --lavender: #b7aee8;
  --mint: #8ed4c4;
  --lilac: #9b86e4;
  --yellow: #f4c542;
  --charcoal: #3a3a3a;
  --soft: #f6f6f6;
  --line: rgba(17, 17, 17, 0.08);
  --radius: 28px;
  --gap: 16px;
  --max: 1180px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

[id] { scroll-margin-top: 88px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 220px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: #fff;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 26px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.72);
}

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

.nav-cta {
  color: #fff !important;
  background: #111;
  border-radius: 999px;
  padding: 10px 16px;
}

.nav-cta:hover { background: var(--charcoal); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 48px;
}

.bento {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.card-about {
  background: var(--lavender);
  color: #fff;
  min-height: 100%;
  padding: 0 22px 28px;
  display: flex;
  flex-direction: column;
}

.about-notch {
  align-self: flex-start;
  margin-left: -22px;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 22px 0;
  padding: 16px 18px 14px 22px;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.about-photo-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 0 12px;
}

.about-monogram {
  width: min(180px, 62%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.about-copy p { font-size: 1.15rem; font-weight: 600; }
.about-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.about-role {
  margin-top: 12px;
  max-width: 22ch;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.bento-right {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  grid-template-areas:
    "title title"
    "sanvalx stat"
    "reach mail";
  gap: var(--gap);
  min-width: 0;
}

.bento-title {
  grid-area: title;
  align-self: end;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 14ch;
}

.card-sanvalx {
  grid-area: sanvalx;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 220px;
  padding: 22px;
  background: var(--charcoal);
  color: #fff;
}
.card-sanvalx strong {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.card-sanvalx:hover { background: #111; }

.card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.card-arrow::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 1.6px solid #fff;
  border-right: 1.6px solid #fff;
  transform: rotate(-45deg) translate(-1px, 1px);
}

.card-stat {
  grid-area: stat;
  background: var(--mint);
  color: #14332c;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}
.card-stat strong {
  font-size: 3rem;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.card-stat span { margin-top: 8px; font-weight: 700; }

.card-reach {
  grid-area: reach;
  background: var(--yellow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
}
.card-reach strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.card-reach span { margin-top: 8px; font-weight: 600; }

.card-mail {
  grid-area: mail;
  background: var(--lilac);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 150px;
}
.card-mail strong {
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d62b8;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.78); }
.card-reach .eyebrow,
.card-stat .eyebrow { color: inherit; }

.block { margin-top: 56px; }
.block-head { max-width: 680px; margin-bottom: 22px; }
.block-head h2 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid,
.case-grid,
.steps {
  display: grid;
  gap: var(--gap);
}
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.service-card,
.case,
.steps li {
  border-radius: var(--radius);
  padding: 22px;
  min-height: 220px;
}
.service-card h3,
.steps h3,
.case h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 10px;
}
.service-card p,
.steps p,
.case-note { color: inherit; }
.service-brand p,
.service-ux p,
.service-growth p,
.service-track p,
.steps p { font-weight: 500; }

.num {
  display: block;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.95rem;
}

.service-brand { background: var(--lavender); color: #fff; }
.service-ux { background: var(--lilac); color: #fff; }
.service-growth { background: var(--mint); color: #14332c; }
.service-track { background: var(--charcoal); color: #fff; }

.service-card ul,
.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card li,
.contact-list a {
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.2);
}
.service-growth li { background: rgba(17, 17, 17, 0.08); }

.case {
  background: var(--soft);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.case-kicker {
  color: #6d62b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sir { display: grid; gap: 14px; margin-top: 8px; }
.sir div { display: grid; gap: 4px; }
.sir dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sir dd { margin: 0; color: var(--muted); }
.case-note {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}
.case-note a { text-decoration: underline; text-underline-offset: 3px; }

.steps li { background: #fff; border: 1px solid var(--line); min-height: 0; }
.steps li:nth-child(1) { background: var(--lavender); color: #fff; }
.steps li:nth-child(2) { background: var(--yellow); }
.steps li:nth-child(3) { background: var(--charcoal); color: #fff; }
.steps li:nth-child(4) { background: var(--mint); color: #14332c; }
.steps p { margin-top: 8px; }

.contact {
  background: var(--lavender);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: 8px;
}
.contact-lead {
  max-width: 46ch;
  margin-top: 12px;
  font-weight: 600;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.contact-list { margin-top: 22px; }
.contact-list a {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.card-about .btn-cta { align-self: flex-start; box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18); }
.contact .btn { margin-top: 0; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 28px 0 8px;
}

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

@media (max-width: 980px) {
  .bento,
  .service-grid,
  .case-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  .bento-right {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "sanvalx stat"
      "reach mail";
  }
  .card-about { min-height: 0; }
}

@media (max-width: 760px) {
  .topbar { display: block; padding: 12px 16px 0; }
  .topbar-row { width: 100%; padding-bottom: 12px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-bottom: 8px;
  }
  .topbar.is-open .nav { display: flex; }
  .nav a {
    padding: 14px 2px;
    border-top: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }
  .page { padding: 12px 16px 36px; }
  .bento,
  .bento-right,
  .service-grid,
  .case-grid,
  .steps { grid-template-columns: 1fr; }
  .bento-right {
    grid-template-areas:
      "title"
      "sanvalx"
      "stat"
      "reach"
      "mail";
  }
  .bento-title { font-size: 2.6rem; max-width: none; }
  .card-stat,
  .card-sanvalx { min-height: 160px; }
}
