/* ============================================================
   MMPB STUDIO / BM Services, from Roma with love
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..800;1,400..600&display=swap');

:root {
  --bg:        #E7E7E3;
  --bg-2:      #EFEFEC;
  --card:      #F5F5F2;
  --ink:       #161614;
  --ink-soft:  #5E5E58;
  --ink-faint: #8C8C85;
  --line:      rgba(22, 22, 20, 0.13);
  --line-soft: rgba(22, 22, 20, 0.07);
  --dark:      #161614;
  --dark-2:    #232320;
  --on-dark:   #EDEDE8;
  --accent:    #25D366; /* whatsapp green, used sparingly */

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}
.logo-word { font-size: 17px; letter-spacing: -0.02em; }
.logo-word b { font-weight: 700; }
.logo-word span { color: var(--ink-faint); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }

.btn-wa { background: var(--ink); color: #fff; }
.btn-wa .wa-ico { width: 18px; height: 18px; }
.btn-wa:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.btn-wa .wa-ico path { fill: var(--accent); }

.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--line-soft); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { transition: color .2s var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-left { display: flex; align-items: center; gap: 18px; }


@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(16px, 2.5vw, 32px);
  padding-bottom: clamp(16px, 2.5vw, 28px);
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 18px;
  white-space: nowrap;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

.hero h1 {
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-faint);
}
.wc-wrap {
  display: inline-grid;
}
.wc-wrap > * {
  grid-column: 1;
  grid-row: 1;
}
.wc-ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.word-cycle {
  color: var(--ink);
  display: block;
  text-align: left;
  will-change: transform, opacity;
}
@keyframes wcOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-0.28em); }
}
@keyframes wcIn {
  0%   { opacity: 0; transform: translateY(0.28em); }
  100% { opacity: 1; transform: translateY(0); }
}
.word-cycle.wc-out {
  animation: wcOut 0.26s var(--ease) forwards;
}
.word-cycle.wc-in {
  animation: wcIn 0.32s var(--ease) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .word-cycle.wc-out, .word-cycle.wc-in { animation: none; opacity: 1; transform: none; }
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
  font-weight: 400;
}
.hero-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--ink-faint);
  display: inline-block;
}
.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 16px;
  max-width: 20ch;
  text-wrap: balance;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 38ch;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.section-head--center .eyebrow::before { display: none; }
.section-head--center .eyebrow { color: var(--ink); }

/* ============================================================
   PROJECTS BANNER
   ============================================================ */
.projects { padding-block: clamp(20px, 3vw, 36px); }
.projects-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.proj-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-inline: var(--pad);
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.proj-scroller::-webkit-scrollbar { display: none; }
.proj-card {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 400px);
  scroll-snap-align: start;
  cursor: pointer;
}
.proj-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.proj-card:hover .proj-thumb {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px rgba(0,0,0,.4);
}
/* project image */
.proj-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.proj-thumb.has-img::before { display: none; }
.proj-thumb.has-img .proj-num { color: rgba(255,255,255,.7); text-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* neutral placeholder pattern */
.proj-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 22px, var(--line-soft) 22px 23px);
  opacity: .8;
}
.proj-ph {
  position: absolute;
  left: 18px; bottom: 16px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-faint); font-weight: 500;
}
.proj-ph .ic { width: 15px; height: 15px; opacity: .55; }
.proj-num { display: none; }
.proj-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-top: 16px;
}
.proj-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.proj-cat  { font-size: 13.5px; color: var(--ink-faint); }
.proj-year { font-size: 13.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ============================================================
   WHY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.why-cell {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-ico {
  width: 28px; height: 28px; margin-bottom: 18px;
  color: var(--ink);
}
.why-ico svg { width: 100%; height: 100%; }
.why-h {
  font-size: 18px;
  font-weight: 600; letter-spacing: -0.02em;
}
.why-p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-top: 8px; max-width: 26ch; }

@media (max-width: 700px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg); padding-block: clamp(28px, 4vw, 48px); }

.price-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* ---- left: tabbed product panel ---- */
.pp-panel {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 7px;
}
.pp-tabs {
  display: flex;
  gap: 3px;
  padding: 5px 5px 12px;
  flex-wrap: wrap;
}
.pp-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.pp-tab:hover { color: var(--ink); }
.pp-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.09);
}

.pp-card {
  background: #FBFBF9;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
}

.pp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pp-scope { font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; white-space: nowrap; }

.pp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pp-switch {
  width: 36px; height: 21px;
  border-radius: 999px;
  background: #d4d4ce;
  position: relative;
  flex: none;
  transition: background .25s var(--ease);
}
.pp-knob {
  position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
  transition: transform .25s var(--ease);
}
.pp-toggle.is-on .pp-switch { background: var(--ink); }
.pp-toggle.is-on .pp-knob { transform: translateX(15px); }

.pp-price {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.pp-price span { font-weight: 700; }

.pp-feat {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pp-feat li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pp-chk { flex: none; width: 16px; height: 16px; color: var(--ink-soft); }
.pp-chk svg { width: 100%; height: 100%; }

/* ---- right: retainer + trial ---- */
.pp-right { display: flex; flex-direction: column; gap: 22px; }
.pp-retainer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pp-pop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.pp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

.pp-trial {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.pp-trial .pp-price { margin-top: 6px; }

/* ---- pill buttons ---- */
.btn-pill {
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  align-self: flex-start;
}
.pp-card .btn-pill { margin-top: 14px; }
.pp-trial .btn-pill { margin-top: 0; align-self: center; }
.pp-bico { width: 17px; height: 17px; flex: none; }
.btn-soft { background: #e7e7e1; color: var(--ink); }
.btn-soft:hover { background: #dcdcd5; transform: translateY(-2px); }

@media (max-width: 860px) {
  .price-board { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .pp-card-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pp-trial { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact {
  text-align: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.contact h2 {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  text-wrap: balance;
}
.contact p { color: var(--ink-soft); margin-top: 22px; font-size: 19px; }
.contact .hero-cta { justify-content: center; margin-top: 38px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: 14px; color: var(--ink-faint); }
.footer-soc { display: flex; align-items: center; gap: 8px; }
.soc-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.soc-link:hover { background: var(--ink); color: var(--bg); box-shadow: none; transform: translateY(-2px); }
.soc-link svg { width: 16px; height: 16px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Content is always visible — robust for static/Hugo builds & embeds.
   (No scroll-reveal: this minimalist layout reads best static, and it
   guarantees nothing is ever hidden behind JS.) */
@media (prefers-reduced-motion: reduce) {
  .hero-tag .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22, 22, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--card);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(28px) scale(0.98);
  transition: transform .38s var(--ease);
  scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.modal-close { font-size: 14px; }

.modal-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-2);
}
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-body { padding: clamp(20px, 4vw, 36px); }

.modal-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.modal-cat {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.modal-year { font-size: 12px; color: var(--ink-faint); }

.modal-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
}
.modal-desc {
  color: var(--ink-soft); font-size: 14px;
  line-height: 1.65; margin-top: 14px;
}
.modal-link { margin-top: 0; }
