/* Public rendering only. Dashboard and review controls never consume these tokens. */
.ms-site { font-family: var(--ms-font); color: var(--ms-text); background: var(--ms-background); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; isolation: isolate; }
.ms-layout { container-type: inline-size; }
.ms-site *, .ms-site *::before, .ms-site *::after { box-sizing: border-box; }
.ms-site h1, .ms-site h2, .ms-site h3, .ms-site p, .ms-site ul { margin: 0; }
.ms-site h1, .ms-site h2, .ms-site h3 { color: inherit; letter-spacing: -.035em; line-height: 1.12; }
.ms-site a { color: inherit; text-decoration: none; }
.ms-site button { font: inherit; cursor: pointer; }
.ms-site img { display: block; max-width: 100%; object-fit: cover; }
.ms-site svg { width: 22px; height: 22px; flex: 0 0 22px; }
.ms-site a:focus-visible, .ms-site button:focus-visible { outline: 3px solid var(--ms-focus); outline-offset: 5px; }
.ms-container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.ms-skip-link { position: absolute; top: 0; left: -10000px; padding: 14px; background: var(--ms-surface); color: var(--ms-surface-ink); z-index: 40; }
.ms-skip-link:focus { left: 10px; }
.ms-header { height: 88px; background: var(--ms-header); color: var(--ms-header-ink); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 20; transition: height .2s, margin-bottom .2s, background .2s, color .2s, box-shadow .2s; }
.ms-header--scrolled { height: 72px; background: color-mix(in srgb, var(--ms-header) 94%, transparent); color: var(--ms-header-ink); border-color: var(--ms-border); backdrop-filter: blur(16px); box-shadow: 0 8px 28px #101d3214; }
.ms-header--over-hero { margin-bottom: -88px; }
.ms-header--over-hero:not(.ms-header--scrolled) { background: transparent; color: var(--ms-hero-ink); text-shadow: 0 1px 8px #00000030; }
.ms-header--over-hero.ms-header--scrolled { margin-bottom: -72px; }
.ms-site section[id], .ms-site main[id] { scroll-margin-top: 96px; }
.ms-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ms-identity-logo { width: auto; max-width: 100px; height: 36px; flex: 0 0 auto; object-fit: contain !important; }
.ms-identity { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 17px; line-height: 1.2; }
.ms-navigation { display: flex; gap: 24px; font-size: 13px; font-weight: 600; }
.ms-navigation a { padding-block: 12px; border-bottom: 2px solid transparent; }
.ms-navigation a:hover { border-color: var(--ms-primary); }
.ms-menu-toggle { display: none; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: transparent; color: inherit; border-radius: 8px; width: 44px; height: 44px; place-items: center; flex: 0 0 44px; }
.ms-hero { position: relative; color: var(--ms-hero-ink); background: var(--ms-hero-overlay); }
.ms-hero-image, .ms-hero-tint { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-hero-image { object-position: 65% 52%; }
.ms-hero-tint { background: linear-gradient(90deg, color-mix(in srgb, var(--ms-hero-overlay) 88%, transparent), color-mix(in srgb, var(--ms-hero-overlay) 64%, transparent) 40%, color-mix(in srgb, var(--ms-hero-overlay) 12%, transparent) 78%), linear-gradient(0deg, color-mix(in srgb, var(--ms-hero-overlay) 42%, transparent), transparent 65%), linear-gradient(180deg, color-mix(in srgb, var(--ms-hero-overlay) 60%, transparent), transparent 28%); }
.ms-hero-inner { min-height: max(680px, 85svh); display: flex; align-items: end; position: relative; padding-block: 168px 84px; }
.ms-hero-copy { max-width: 580px; }
.ms-eyebrow { font-size: 13px; font-weight: 650; color: var(--ms-accent-ink); margin-bottom: 16px !important; }
.ms-hero .ms-eyebrow { color: inherit; opacity: .82; }
.ms-hero-name { font-size: clamp(44px, 4.6cqw, 66px); font-weight: 750; max-width: 580px; margin: 0 !important; line-height: 1.04 !important; letter-spacing: -.045em !important; }
.ms-hero-role { font-size: 15px; opacity: .88; margin-top: 14px !important; }
.ms-hero-statement { font-size: clamp(26px, 2.3cqw, 34px); font-weight: 550; line-height: 1.2; letter-spacing: -.025em; margin-block: 28px 18px !important; max-width: 510px; }
.ms-hero-description { font-size: 17px; max-width: 450px; opacity: .92; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ms-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 15px 24px; min-height: 52px; background: var(--ms-primary); color: var(--ms-primary-ink) !important; border: 1px solid var(--ms-primary); border-radius: calc(var(--ms-radius) * .55); font-size: 13px; font-weight: 700; transition: background .16s; }
.ms-button:hover { background: var(--ms-primary-hover); }
.ms-button--outline { background: transparent; color: inherit !important; border-color: currentColor; }
.ms-button--outline:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.ms-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff1f; box-shadow: 0 3px 10px #101d3214; transition: transform .16s, box-shadow .16s; }
.ms-socials a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #101d3226; }
.ms-socials .ms-social--whatsapp { background: #128c4c; color: #ffffff; }
/* Service colors stay independent of client theme tokens in every placement. */
.ms-socials .ms-social--instagram { background: linear-gradient(135deg, #833ab4, #c13584 50%, #e1306c 78%, #f77737); color: #ffffff; }
.ms-socials .ms-social--facebook { background: #1877f2; color: #ffffff; }
.ms-socials .ms-social--linkedin { background: #0a66c2; color: #ffffff; }
.ms-socials .ms-social--github { background: #24292f; color: #ffffff; }
.ms-socials .ms-social--email { background: #334155; color: #ffffff; }
.ms-section { padding-block: 92px; }
.ms-section--alternate { background: var(--ms-surface-alt); color: var(--ms-alt-ink); }
.ms-section-heading { margin-bottom: 38px; max-width: 650px; }
.ms-section-heading h2 { font-size: clamp(29px, 3cqw, 42px); }
.ms-section-heading > p:last-child:not(.ms-eyebrow) { color: var(--ms-muted); margin-top: 16px; font-size: 16px; }
.ms-about { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.ms-about .ms-section-heading { margin-bottom: 24px; }
.ms-about .ms-lead { font-size: 20px; color: var(--ms-text); line-height: 1.55; margin-bottom: 20px; }
.ms-about p:not(.ms-eyebrow):not(.ms-lead) { color: var(--ms-muted); }
.ms-about-image { border-radius: var(--ms-radius); overflow: hidden; }
.ms-about-image img { width: 100%; aspect-ratio: 1.2; }
.ms-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ms-capability { padding: 34px 24px; background: var(--ms-surface); color: var(--ms-surface-ink); border: 1px solid var(--ms-border); border-radius: var(--ms-radius); }
.ms-capability h3 { font-size: 19px; line-height: 1.3; }
.ms-capability p { margin-top: 12px; color: var(--ms-muted); font-size: 14px; }
.ms-projects, .ms-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ms-project { background: var(--ms-surface); color: var(--ms-surface-ink); border: 1px solid var(--ms-border); border-radius: var(--ms-radius); overflow: hidden; }
.ms-project img { width: 100%; aspect-ratio: 1.35; }
.ms-project-open { width: 100%; display: block; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.ms-project-open > img { transition: filter .2s; }
.ms-project-open:hover > img { filter: brightness(.92); }
.ms-project-copy { display: block; padding: 25px; }
.ms-project-copy > span { display: block; }
.ms-project-title { font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.ms-project-copy .ms-project-details { display: flex; justify-content: space-between; align-items: center; color: var(--ms-accent-ink); font-size: 12px; font-weight: 650; margin-top: 23px; }
.ms-project-category { color: var(--ms-muted); font-size: 12px; margin-bottom: 9px !important; }
.ms-project h3 { font-size: 22px; }
.ms-tags { list-style: none; display: flex; gap: 7px; flex-wrap: wrap; padding: 0; margin-top: 18px !important; }
.ms-tags li { font-size: 10px; font-weight: 600; padding: 4px 9px; border: 1px solid var(--ms-border); border-radius: 20px; }
.ms-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.ms-highlights article { border-top: 1px solid var(--ms-border); padding-top: 24px; }
.ms-highlights h3 { font-size: 22px; }
.ms-highlights p:last-child { color: var(--ms-muted); font-size: 14px; margin-top: 16px; }
.ms-gallery img { width: 100%; aspect-ratio: 1.2; border-radius: var(--ms-radius); }
.ms-contact { background: var(--ms-surface-alt); color: var(--ms-alt-ink); }
.ms-contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 90px; align-items: center; }
.ms-contact .ms-section-heading h2 { font-size: clamp(36px, 4cqw, 54px); }
.ms-contact-details { padding-left: 55px; border-left: 1px solid var(--ms-border); display: flex; flex-direction: column; gap: 8px; color: var(--ms-muted); font-size: 14px; }
.ms-contact-name { color: var(--ms-alt-ink); font-size: 19px; font-weight: 700; margin-bottom: 6px !important; }
.ms-contact-details .ms-socials { margin-top: 19px; color: var(--ms-alt-ink); }
.ms-contact-details > a:hover { text-decoration: underline; text-decoration-color: var(--ms-primary); }
.ms-catalog-cta { text-align: center; }
.ms-catalog-cta h2 { font-size: 36px; }
.ms-catalog-cta p { margin-block: 15px 25px; color: var(--ms-muted); }
.ms-footer { background: var(--ms-footer-background); color: var(--ms-footer-ink); padding-block: 48px 106px; }
.ms-footer-main { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding-bottom: 34px; }
.ms-footer-main p { font-size: 12px; opacity: .8; margin-top: 12px; }
.ms-footer-main nav { display: flex; flex-wrap: wrap; gap: 16px; max-width: 330px; font-size: 12px; }
.ms-footer-main nav a:hover { text-decoration: underline; text-decoration-color: var(--ms-primary); }
.ms-footer-bottom { border-top: 1px solid color-mix(in srgb, var(--ms-footer-ink) 20%, transparent); padding-top: 22px; display: flex; justify-content: space-between; gap: 15px; font-size: 11px; opacity: .8; }
@container (max-width: 1000px) {
  .ms-container { width: calc(100% - 56px); }
  .ms-navigation { gap: 16px; font-size: 12px; }
  .ms-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-about, .ms-contact-inner { gap: 40px; }
  .ms-contact-details { padding-left: 30px; }
  .ms-footer-main { flex-wrap: wrap; }
}
@container (max-width: 900px) {
  .ms-header { height: 74px; }
  .ms-header--over-hero { margin-bottom: -74px; }
  .ms-header--scrolled { height: 72px; }
  .ms-menu-toggle { display: grid; }
  .ms-navigation { display: none; }
  .ms-navigation--open { display: flex; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; padding: 12px 28px 20px; background: var(--ms-header); color: var(--ms-header-ink); text-shadow: none; border-bottom: 1px solid var(--ms-border); box-shadow: 0 12px 24px #00000012; }
  .ms-navigation a { min-height: 46px; font-size: 14px; }
}
@container (max-width: 760px) {
  .ms-hero-inner { min-height: max(700px, 85svh); padding-block: 168px 80px; }
  .ms-hero-copy { max-width: 540px; }
  .ms-hero-tint { background: linear-gradient(0deg, color-mix(in srgb, var(--ms-hero-overlay) 96%, transparent), color-mix(in srgb, var(--ms-hero-overlay) 77%, transparent) 56%, color-mix(in srgb, var(--ms-hero-overlay) 25%, transparent)), linear-gradient(180deg, color-mix(in srgb, var(--ms-hero-overlay) 60%, transparent), transparent 30%); }
  .ms-section { padding-block: 62px; }
  .ms-about, .ms-contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .ms-projects { grid-template-columns: 1fr; }
  .ms-project-open { display: grid; grid-template-columns: 1fr 1fr; }
  .ms-project img { height: 100%; aspect-ratio: 1; }
  .ms-highlights { grid-template-columns: 1fr; gap: 24px; }
  .ms-contact-details { border-left: 0; border-top: 1px solid var(--ms-border); padding: 30px 0 0; }
  .ms-footer-main { flex-direction: column; }
}
@container (max-width: 460px) {
  .ms-container { width: calc(100% - 40px); }
  .ms-identity { font-size: 14px; gap: 9px; }
  .ms-hero-inner { min-height: max(710px, 88svh); padding-block: 170px 90px; }
  .ms-hero-name { font-size: clamp(38px, 11cqw, 48px); }
  .ms-hero-statement { font-size: 26px; }
  .ms-hero-description { font-size: 15px; }
  .ms-actions { flex-direction: column; align-items: stretch; gap: 11px; }
  .ms-button { gap: 18px; padding-inline: 18px; }
  .ms-hero-copy { width: 100%; }
  .ms-capabilities, .ms-gallery { grid-template-columns: 1fr; gap: 16px; }
  .ms-capability { padding: 24px; }
  .ms-project-open { display: block; }
  .ms-project img { aspect-ratio: 1.35; height: auto; }
  .ms-section-heading { margin-bottom: 28px; }
  .ms-contact .ms-section-heading h2 { font-size: 36px; }
  .ms-footer-bottom { flex-direction: column; gap: 8px; }
}

/* A viewport utility lives outside the query container so it stays fixed. */
.ms-floating-contact { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; }
.ms-contact-launcher { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border: 1px solid #ffffff35; border-radius: 30px; padding: 12px 20px; background: var(--ms-primary); color: var(--ms-primary-ink); box-shadow: 0 8px 28px #101d3233; font-size: 13px !important; font-weight: 700 !important; }
.ms-contact-launcher--whatsapp { background: #128c4c; color: #ffffff; }
.ms-contact-launcher:hover { filter: brightness(1.08); }
.ms-contact-launcher > svg { width: 25px; height: 25px; }
.ms-launcher-plus { font-size: 22px; line-height: 1; transition: transform .2s; }
.ms-launcher-plus.is-open { transform: rotate(45deg); }
.ms-contact-popover { position: absolute; right: 0; bottom: calc(100% + 14px); width: 300px; padding: 22px; border: 1px solid var(--ms-border); border-radius: 18px; background: var(--ms-surface); color: var(--ms-surface-ink); box-shadow: 0 12px 40px #101d322b; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .2s, visibility .2s; }
.ms-contact-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ms-contact-popover > p { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.ms-contact-popover .ms-socials { gap: 6px; }
.ms-floating-direct { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ms-border); font-size: 12px; font-weight: 650; }
.ms-floating-direct:hover { text-decoration: underline; }
/* Native dialog: one main image, three supporting views, adjacent desktop information. */
.ms-project-modal { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--ms-border); border-radius: 18px; background: var(--ms-surface); color: var(--ms-surface-ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px #00000040; }
.ms-project-modal::backdrop { background: #07111ed9; backdrop-filter: blur(5px); }
.ms-modal-close-bar { position: sticky; top: 0; z-index: 1; background: var(--ms-surface); display: flex; justify-content: end; padding: 14px 18px 10px; }
.ms-modal-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--ms-border); border-radius: 50%; color: inherit; background: var(--ms-surface-alt); }
.ms-modal-close:hover { background: var(--ms-border); }
.ms-modal-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding: 0 36px 36px; }
.ms-modal-gallery { min-width: 0; }
.ms-modal-main-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain !important; background: var(--ms-surface-alt); border: 1px solid var(--ms-border); border-radius: 10px; }
.ms-modal-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ms-modal-thumbnails button { min-width: 0; padding: 3px; border: 1px solid var(--ms-border); border-radius: 8px; background: var(--ms-surface); transition: border-color .16s; }
.ms-modal-thumbnails button:hover, .ms-modal-thumbnails button:focus-visible { border-color: var(--ms-primary); }
.ms-modal-thumbnails img { width: 100%; aspect-ratio: 1.5; border-radius: 4px; }
.ms-image-count { font-size: 12px; font-weight: 650; color: var(--ms-muted); margin-top: 10px !important; }
.ms-modal-info { padding-block: 20px; align-self: center; }
.ms-modal-info h2 { font-size: clamp(26px, 3vw, 38px); }
.ms-modal-location { color: var(--ms-muted); font-size: 13px; margin-top: 16px !important; }
.ms-modal-description { margin-top: 24px !important; font-size: 15px; color: var(--ms-muted); }
.ms-modal-info .ms-tags { margin-top: 28px !important; }
.ms-gallery-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ms-gallery-controls button { border: 1px solid var(--ms-border); border-radius: 8px; background: var(--ms-surface); color: inherit; padding: 8px 14px; min-height: 44px; }
@media (max-width: 768px) {
  .ms-modal-body { grid-template-columns: 1fr; padding: 0 22px 28px; gap: 24px; }
  .ms-modal-main-image { max-height: 44dvh; }
  .ms-modal-info { padding: 0; }
  .ms-modal-info h2 { font-size: 27px; }
  .ms-modal-description { margin-top: 18px !important; }
}
@media (max-width: 600px) {
  .ms-floating-contact { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .ms-contact-launcher { width: 58px; min-height: 58px; padding: 12px; gap: 0; }
  .ms-launcher-label, .ms-launcher-plus { display: none; }
  .ms-contact-popover { width: min(300px, calc(100vw - 32px)); padding: 20px; }
  .ms-project-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .ms-modal-body { padding: 0 16px 24px; }
  .ms-modal-thumbnails { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { .ms-site * { transition: none !important; } }
