/* Maison theme, v2 "Clarity": Apple-style design language.
   White and #F5F5F7 canvas, #1D1D1F ink, one blue (#0071E3), SF Pro system stack with Inter fallback,
   large rounded tiles, pill buttons, translucent nav, generous whitespace. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #E8E8ED;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --mute: #6E6E73;
  --mute-d: #86868B;
  --dark: #000000;
  --dark-2: #161617;
  --dark-3: #1D1D1F;
  --on-dark: #F5F5F7;
  --blue: #0071E3;
  --blue-h: #0077ED;
  --link: #0066CC;
  --link-d: #2997FF;
  --line: #D2D2D7;
  --line-d: #424245;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --wrap: 1120px;
  --wrap-wide: 1440px;
  --sec: clamp(4.5rem, 10vw, 8.5rem);
  --sec-s: clamp(3rem, 6vw, 5rem);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 980px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-h: 0 12px 40px rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "kern";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.75rem; color: inherit; text-wrap: balance; }
p { margin: 0 0 1rem; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
.mg-main > .wp-block-post-content { margin: 0; }
::selection { background: rgba(0, 113, 227, 0.18); }

/* Layout */
.mg-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mg-wrap--wide { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mg-section { padding-block: var(--sec); position: relative; }
.mg-section--tight { padding-block: var(--sec-s); }
.mg-section--tint { background: var(--bg-2); }
.mg-section--dark { background: var(--dark); color: var(--on-dark); }
.mg-section--dark p, .mg-section--dark .mg-lede { color: var(--mute-d); }
.mg-section--dark h1, .mg-section--dark h2, .mg-section--dark h3 { color: var(--on-dark); }
.mg-section--dark a:not(.mg-btn) { color: var(--link-d); }
.mg-section--lime { background: var(--bg-2); text-align: center; }
.mg-section--lime .mg-h2 { margin-inline: auto; max-width: 22ch; }
.mg-section--lime p { margin-inline: auto; }
.mg-section--lime .mg-actions { justify-content: center; }
.mg-section--page-head { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: var(--sec-s); }
.mg-section--case { padding-top: 0; }
.mg-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type */
.mg-display { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 1.1rem; }
.mg-h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 1rem; }
.mg-h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.02em; }
.mg-lede { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.38; color: var(--mute); max-width: 40ch; letter-spacing: -0.02em; font-weight: 400; }
.mg-eyebrow { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; color: var(--mute); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.mg-section--dark .mg-eyebrow { color: var(--mute-d); }
.mg-accent { background: linear-gradient(90deg, #0071E3 0%, #2AA7FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-section--dark .mg-accent { background: linear-gradient(90deg, #2997FF 0%, #6FD3FF 100%); -webkit-background-clip: text; background-clip: text; }
em.mg-it { font-style: normal; }
.mg-prose { max-width: 70ch; }
.mg-prose h2 { font-size: 1.9rem; margin-top: 2.5rem; }
.mg-prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.mg-prose ul, .mg-prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.mg-prose li { margin-bottom: 0.4rem; }
.mg-small { font-size: 0.82rem; line-height: 1.45; color: var(--mute); letter-spacing: -0.01em; }
.mg-section--dark .mg-small { color: var(--mute-d); }

/* Buttons and links */
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.7rem 1.4rem; border-radius: var(--pill); font-size: 1.0625rem; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; border: 1px solid transparent; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); white-space: nowrap; cursor: pointer; }
.mg-btn:hover { text-decoration: none; }
.mg-btn:active { transform: scale(0.98); }
.mg-btn--sm { min-height: 30px; padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.mg-btn--lime, .mg-btn--ink { background: var(--blue); color: #fff; }
.mg-btn--lime:hover, .mg-btn--ink:hover { background: var(--blue-h); color: #fff; }
.mg-section--dark .mg-btn--ink { background: var(--blue); }
.mg-btn--bone { background: #fff; color: var(--ink); }
.mg-btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.mg-btn--ghost:hover { background: var(--blue); color: #fff; }
.mg-section--dark .mg-btn--ghost { color: var(--link-d); border-color: var(--link-d); }
.mg-section--dark .mg-btn--ghost:hover { background: var(--link-d); color: #000; }
.mg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin: 1.75rem 0 0; }
.mg-link, .mg-chev { color: var(--link); font-size: 1.0625rem; }
.mg-link::after, .mg-chev::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 0.35em; vertical-align: 0.1em; }
.mg-section--dark .mg-chev, .mg-tile--ink .mg-chev, .ap-tile--dark .mg-chev { color: var(--link-d); }

.mg-skip { position: absolute; left: 1rem; top: -4rem; background: var(--blue); color: #fff; padding: 0.6rem 1rem; border-radius: var(--pill); z-index: 200; }
.mg-skip:focus { top: 0.5rem; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; border-radius: 6px; }

/* Global nav: translucent, 48px */
.mg-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 251, 253, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); color: var(--ink); }
.mg-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 1rem; position: relative; width: min(1024px, 100% - 2 * var(--gutter)); }
.mg-brand { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.mg-brand:hover { text-decoration: none; }
.mg-brand__mark { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, #1D1D1F 0 50%, #0071E3 50% 75%, #1D1D1F 75%); }
.mg-brand__word { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.mg-brand__sub { font-weight: 400; font-size: 1rem; color: var(--mute); letter-spacing: -0.02em; }
.mg-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); white-space: nowrap; }
.mg-nav a:not(.mg-btn) { color: var(--ink); opacity: 0.8; font-size: 0.8rem; letter-spacing: -0.01em; transition: opacity 0.2s; }
.mg-nav a:not(.mg-btn):hover { opacity: 1; text-decoration: none; }
.mg-nav__cta { margin-left: 0.25rem; }
.mg-nav-check { position: absolute; opacity: 0; pointer-events: none; }
.mg-nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; cursor: pointer; }
.mg-nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
@media (max-width: 1060px) {
  .mg-nav-toggle { display: flex; }
  .mg-nav { display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; background: rgba(251, 251, 253, 0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 1rem calc(var(--gutter) + 1rem) 2rem; min-height: calc(100vh - 48px); }
  .mg-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mg-nav li a:not(.mg-btn) { display: block; padding: 0.55rem 0; font-size: 1.75rem; font-weight: 600; opacity: 1; letter-spacing: -0.03em; }
  .mg-nav__cta { margin: 1.5rem 0 0; }
  .mg-nav__cta .mg-btn { font-size: 1rem; min-height: 44px; padding: 0.7rem 1.4rem; }
  .mg-nav-check:checked ~ .mg-nav { display: block; }
  .mg-nav-check:checked ~ .mg-nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .mg-nav-check:checked ~ .mg-nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

/* Apple-style centered hero (home) */
.ap-hero { text-align: center; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: 0; overflow: clip; }
.ap-hero .mg-eyebrow { color: var(--blue); }
.ap-hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0 auto 1.1rem; max-width: 14ch; }
.ap-hero .mg-lede { margin: 0 auto; max-width: 34ch; }
.ap-hero .mg-actions { justify-content: center; }
.ap-hero__media { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; width: min(1240px, 100% - 2 * var(--gutter)); }
.ap-hero__media img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35); }
.ap-hero__chip { position: absolute; right: clamp(0.75rem, 3vw, 2rem); bottom: clamp(0.75rem, 3vw, 2rem); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: var(--r-md); padding: 0.9rem 1.15rem; text-align: left; color: var(--ink); max-width: 17rem; box-shadow: var(--shadow); text-decoration: none; }
.ap-hero__chip:hover { text-decoration: none; box-shadow: var(--shadow-h); }
.ap-hero__chip b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.ap-hero__chip span { display: block; font-size: 0.85rem; color: var(--mute); margin-top: 0.15rem; }
.ap-hero__chip i { font-style: normal; color: var(--link); font-size: 0.85rem; display: block; margin-top: 0.35rem; }
@media (max-width: 640px) { .ap-hero__chip { position: static; margin: 1rem auto 0; max-width: none; } }

/* Big tiles grid (Apple homepage pattern) */
.ap-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; width: min(var(--wrap-wide), 100%); margin: 0 auto; }
.ap-tile { position: relative; border-radius: var(--r-lg); overflow: clip; min-height: 580px; padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) 0; text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--bg-2); color: var(--ink); }
.ap-tile--wide { grid-column: 1 / -1; min-height: 620px; }
.ap-tile--dark { background: var(--dark); color: var(--on-dark); }
.ap-tile--white { background: #fff; }
.ap-tile h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.035em; margin-bottom: 0.35rem; font-weight: 700; }
.ap-tile .ap-tile__sub { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.25; color: inherit; margin: 0 auto; max-width: 30ch; letter-spacing: -0.02em; }
.ap-tile--dark .ap-tile__sub { color: var(--on-dark); }
.ap-tile .ap-tile__links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.ap-tile__visual { margin-top: auto; width: 100%; padding-top: 2rem; display: flex; justify-content: center; align-items: flex-end; flex: 1; }
.ap-tile__visual img { width: 100%; max-width: 760px; border-radius: var(--r-md) var(--r-md) 0 0; object-fit: cover; }
.ap-tile__num { font-size: clamp(4.5rem, 10vw, 8.5rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; background: linear-gradient(180deg, #1D1D1F 30%, #6E6E73 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: auto 0 0.4rem; }
.ap-tile--dark .ap-tile__num { background: linear-gradient(180deg, #FFFFFF 30%, #86868B 100%); -webkit-background-clip: text; background-clip: text; }
.ap-tile__cap { font-size: 0.95rem; color: var(--mute); margin: 0 auto 3rem; max-width: 30ch; }
.ap-tile--dark .ap-tile__cap { color: var(--mute-d); }
.ap-tile__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: auto 0 3rem; max-width: 32rem; }
.ap-tile__chips li { font-size: 0.85rem; padding: 0.45rem 0.9rem; border-radius: var(--pill); background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.ap-tile--dark .ap-tile__chips li { background: var(--dark-3); color: var(--on-dark); }
@media (max-width: 834px) { .ap-tiles { grid-template-columns: 1fr; } .ap-tile, .ap-tile--wide { min-height: 520px; } }

/* Trust strip */
.mg-strip { background: var(--bg); padding-block: 1.5rem 0; }
.mg-strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.mg-strip li { font-size: 0.85rem; color: var(--mute); line-height: 1.4; }
.mg-strip li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.15rem; }
@media (max-width: 834px) { .mg-strip ul { grid-template-columns: 1fr 1fr; } }

/* Section headers (centered, Apple) */
.ap-head { text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 4rem); max-width: 50rem; }
.ap-head .mg-lede { margin-inline: auto; max-width: 44ch; }
.ap-head .mg-actions { justify-content: center; }

/* Facts */
.mg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mg-fact { background: var(--dark-2); border-radius: var(--r-lg); padding: 2rem 1.75rem; }
.mg-section:not(.mg-section--dark) .mg-fact { background: var(--bg-2); }
.mg-fact b { display: block; font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #2997FF 0%, #6FD3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-section:not(.mg-section--dark) .mg-fact b { background: linear-gradient(180deg, #0071E3, #2AA7FF); -webkit-background-clip: text; background-clip: text; }
.mg-fact b span { font-size: 0.42em; letter-spacing: -0.02em; }
.mg-fact p { margin: 0.75rem 0 0; color: var(--on-dark); font-size: 1.05rem; line-height: 1.35; }
.mg-section:not(.mg-section--dark) .mg-fact p { color: var(--ink); }
.mg-fact cite { display: block; font-style: normal; font-size: 0.78rem; color: var(--mute-d); margin-top: 0.75rem; }
@media (max-width: 834px) { .mg-facts { grid-template-columns: 1fr; } }

/* Service hero (light, left-aligned) */
.mg-shero .mg-wrap { display: grid; grid-template-columns: 8fr 4fr; gap: 3rem; align-items: end; }
.mg-shero__copy { min-width: 0; }
.mg-shero__aside { background: var(--bg-2); border-radius: var(--r-md); padding: 1.5rem; }
.mg-shero__aside p { font-size: 0.92rem; color: var(--mute); margin: 0 0 0.85rem; }
.mg-shero__aside p:last-child { margin: 0; }
.mg-shero__aside strong { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 900px) { .mg-shero .mg-wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* Tiles (bento, markets) */
.mg-bento { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; }
.mg-tile { position: relative; border-radius: var(--r-lg); padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); background: var(--bg-2); overflow: clip; min-height: 300px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.mg-tile:hover { text-decoration: none; transform: scale(1.012); box-shadow: var(--shadow-h); }
.mg-tile h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-bottom: 0.6rem; font-weight: 700; }
.mg-tile p { color: var(--mute); max-width: 44ch; }
.mg-tile--big { grid-row: span 2; background: var(--dark); color: var(--on-dark); }
.mg-tile--big p { color: var(--mute-d); }
.mg-tile--tint { background: var(--bg-2); }
.mg-tile--lime { background: linear-gradient(160deg, #EAF3FF 0%, #F5F5F7 70%); }
.mg-tile--ink { background: var(--dark); color: var(--on-dark); }
.mg-tile--ink p { color: var(--mute-d); }
.mg-tile__num { font-size: clamp(4.5rem, 12vw, 9rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; margin: 1rem 0 0.5rem; background: linear-gradient(180deg, #fff 30%, #86868B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-tile__num small { display: block; font-size: 0.16em; letter-spacing: -0.01em; font-weight: 500; -webkit-text-fill-color: var(--mute-d); margin-top: 0.6rem; line-height: 1.3; }
.mg-tile__go { color: var(--link); font-size: 1.0625rem; margin-top: 1.5rem; }
.mg-tile__go::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 0.35em; vertical-align: 0.1em; }
.mg-tile--big .mg-tile__go, .mg-tile--ink .mg-tile__go { color: var(--link-d); }
.mg-tile ul { list-style: none; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mg-tile ul li { font-size: 0.8rem; padding: 0.35rem 0.8rem; border-radius: var(--pill); background: #fff; color: var(--ink); }
.mg-tile--ink ul li { background: var(--dark-3); color: var(--on-dark); }
.mg-markets { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 12px; }
@media (max-width: 900px) { .mg-bento, .mg-markets { grid-template-columns: 1fr; } .mg-tile--big { grid-row: auto; } }
.mg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .mg-grid-2 { grid-template-columns: 1fr; } }

/* Stats */
.mg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mg-stat { background: var(--bg); border-radius: var(--r-md); padding: 1.6rem 1.4rem; }
.mg-section--tint .mg-stat { background: #fff; }
.mg-section--dark .mg-stat { background: var(--dark-2); }
.mg-stat b { display: block; font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.5rem); letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.mg-section--dark .mg-stat b { color: var(--on-dark); }
.mg-stat b span { font-size: 0.42em; font-weight: 600; letter-spacing: -0.02em; margin-left: 0.1em; color: var(--mute); }
.mg-stat b .mg-from { font-size: 0.42em; font-weight: 500; color: var(--mute); text-decoration: line-through; margin: 0 0.3em 0 0; }
.mg-stat p { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--mute); max-width: 28ch; }
.mg-section--dark .mg-stat p { color: var(--mute-d); }
@media (max-width: 900px) { .mg-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mg-stats { grid-template-columns: 1fr; } }

/* Split and definition list */
.mg-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mg-split__head { position: sticky; top: 5rem; }
.mg-dl { border-top: 1px solid var(--line); }
.mg-section--dark .mg-dl { border-color: var(--line-d); }
.mg-dl > div { display: grid; grid-template-columns: minmax(11rem, 1fr) 2fr; gap: 0.75rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.mg-section--dark .mg-dl > div { border-color: var(--line-d); }
.mg-dl dt { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.mg-dl dt a { color: inherit; }
.mg-dl dd { margin: 0; color: var(--mute); }
.mg-section--dark .mg-dl dd { color: var(--mute-d); }
@media (max-width: 900px) { .mg-split { grid-template-columns: 1fr; } .mg-split__head { position: static; } .mg-dl > div { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Scroller of case cards */
.mg-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 400px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem var(--gutter) 1.5rem; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.mg-scroller::-webkit-scrollbar { display: none; }
.mg-scroller > * { scroll-snap-align: start; }
.mg-case { border-radius: var(--r-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; min-height: 440px; text-decoration: none; color: var(--ink); background: var(--bg-2); overflow: clip; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.mg-case:hover { text-decoration: none; transform: scale(1.012); box-shadow: var(--shadow-h); }
.mg-section--tint .mg-case { background: #fff; }
.mg-case--ink { background: var(--dark) !important; color: var(--on-dark); }
.mg-case--ink p { color: var(--mute-d); }
.mg-case--lime { background: linear-gradient(160deg, #EAF3FF 0%, #F5F5F7 75%) !important; }
.mg-case--line { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mg-case__kind { font-size: 0.8rem; font-weight: 600; color: var(--mute); margin-bottom: auto; letter-spacing: -0.005em; }
.mg-case--ink .mg-case__kind { color: var(--mute-d); }
.mg-case p.mg-case__num { font-weight: 700; font-size: clamp(3.2rem, 6vw, 4.5rem); letter-spacing: -0.055em; line-height: 0.95; margin: 2.5rem 0 0.75rem; color: inherit; max-width: none; }
.mg-case--ink p.mg-case__num { background: linear-gradient(180deg, #fff 30%, #86868B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-case__num small { display: block; font-size: 0.24em; font-weight: 500; letter-spacing: -0.01em; margin-top: 0.6rem; line-height: 1.3; -webkit-text-fill-color: var(--mute); }
.mg-case--ink .mg-case__num small { -webkit-text-fill-color: var(--mute-d); }
.mg-case__num .mg-from { font-size: 0.45em; text-decoration: line-through; opacity: 0.55; font-weight: 500; }
.mg-case h3 { font-size: 1.3rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.mg-case p { font-size: 0.95rem; margin: 0; color: var(--mute); }
.mg-case--img { padding: 0; }
.mg-case--img img { width: 100%; height: 230px; object-fit: cover; }
.mg-case--img > div { padding: 1.5rem 1.75rem 2rem; }
.mg-case--img .mg-case__kind { margin-bottom: 0.5rem; display: block; }

/* Case panel on service pages */
.mg-casepanel { position: relative; background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(2rem, 4.5vw, 3.75rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); margin-top: calc(-1 * var(--sec-s) * 0.8); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.5); }
.mg-casepanel h2, .mg-casepanel h3 { color: var(--on-dark); }
.mg-casepanel p { color: var(--mute-d); }
.mg-casepanel a { color: var(--link-d); }
.mg-casepanel .mg-stats { grid-template-columns: 1fr 1fr; align-content: start; }
.mg-casepanel .mg-stat { background: var(--dark-3); }
.mg-casepanel .mg-stat b { color: var(--on-dark); }
.mg-casepanel .mg-stat p, .mg-casepanel .mg-stat b span, .mg-casepanel .mg-stat b .mg-from { color: var(--mute-d); }
.mg-casepanel__label { font-size: 0.95rem; font-weight: 600; color: var(--link-d) !important; margin-bottom: 0.75rem; }
@media (max-width: 900px) { .mg-casepanel { grid-template-columns: 1fr; margin-top: 0; } }
@media (max-width: 480px) { .mg-casepanel .mg-stats { grid-template-columns: 1fr 1fr; } }

/* Steps */
.mg-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.mg-steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.25rem; padding: 1.5rem 1.6rem; background: var(--bg-2); border-radius: var(--r-md); }
.mg-section--tint .mg-steps li { background: #fff; }
.mg-section--dark .mg-steps li { background: var(--dark-2); }
.mg-steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 1.05rem; }
.mg-steps h3 { font-size: 1.2rem; margin: 0.35rem 0 0.35rem; letter-spacing: -0.02em; }
.mg-steps p { margin: 0; color: var(--mute); max-width: 60ch; }
.mg-section--dark .mg-steps p { color: var(--mute-d); }

/* Deliverables list */
.mg-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mg-list li { background: #fff; border-radius: var(--r-md); padding: 1.6rem 1.5rem; position: relative; }
.mg-section:not(.mg-section--tint) .mg-list li { background: var(--bg-2); }
.mg-list li::before { content: ""; display: block; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: linear-gradient(135deg, #0071E3, #2AA7FF); margin-bottom: 1rem; -webkit-mask: none; }
.mg-list li strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.mg-list li span { color: var(--mute); font-size: 0.95rem; line-height: 1.45; display: block; }
@media (max-width: 1000px) { .mg-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mg-list { grid-template-columns: 1fr; } }

/* Statement */
.mg-statement { font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.07; letter-spacing: -0.035em; max-width: 22ch; margin: 0; }
.mg-section--dark .mg-statement { background: linear-gradient(180deg, #fff 40%, #86868B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-statement + p { margin-top: 1.5rem; font-size: 1.15rem; max-width: 56ch; }

/* FAQ */
.mg-faq { border-top: 1px solid var(--line); max-width: 52rem; }
.mg-section--dark .mg-faq { border-color: var(--line-d); }
.mg-faq details { border-bottom: 1px solid var(--line); }
.mg-section--dark .mg-faq details { border-color: var(--line-d); }
.mg-faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.3; position: relative; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: ""; position: absolute; right: 0.5rem; top: 1.6rem; width: 0.55rem; height: 0.55rem; border-right: 1.75px solid var(--mute); border-bottom: 1.75px solid var(--mute); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.mg-faq details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.mg-faq details > div { padding: 0 0 1.5rem; color: var(--mute); max-width: 66ch; }
.mg-faq details > div p:last-child { margin-bottom: 0; }

/* Columns */
.mg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-cols > div { background: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.mg-section:not(.mg-section--tint) .mg-cols > div { background: var(--bg-2); }
.mg-cols p { color: var(--mute); margin: 0; }
@media (max-width: 800px) { .mg-cols { grid-template-columns: 1fr; } }

/* Form */
.mg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.mg-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink-2); }
.mg-form input, .mg-form textarea, .mg-form select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 0.8rem 0.95rem; border-radius: var(--r-sm); transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.mg-form select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
.mg-form input:focus, .mg-form textarea:focus, .mg-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.mg-form textarea { min-height: 9rem; resize: vertical; }
.mg-form .mg-form__full { grid-column: 1 / -1; }
.mg-form .mg-hp { position: absolute; left: -9999px; }
.mg-form button { font: inherit; width: 100%; }
.mg-notice { background: #E8F5EC; color: #0B6B2C; padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--r-sm); font-weight: 500; }
.mg-notice--err { background: #FDECEC; color: #A3141B; }
@media (max-width: 700px) { .mg-form { grid-template-columns: 1fr; } }

/* Footer (Apple style) */
.mg-footer { background: var(--bg-2); color: var(--mute); padding: 2.5rem 0 2rem; font-size: 0.8rem; line-height: 1.5; border-top: 1px solid var(--line); }
.mg-footer .mg-wrap { width: min(1024px, 100% - 2 * var(--gutter)); }
.mg-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.mg-footer__brand p { color: var(--mute); max-width: 36ch; margin-top: 0.75rem; font-size: 0.8rem; }
.mg-footer__col h2 { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.mg-footer__col ul { list-style: none; }
.mg-footer__col li { margin-bottom: 0.45rem; color: var(--mute); }
.mg-footer__col a { color: var(--ink-2); }
.mg-footer__col a:hover { color: var(--ink); }
.mg-footer__bottom p { color: var(--mute); font-size: 0.75rem; margin: 1rem 0 0; max-width: none; }
.mg-footer .mg-brand__word, .mg-footer .mg-brand__sub { font-size: 0.95rem; }
@media (max-width: 834px) { .mg-footer__top { grid-template-columns: 1fr 1fr; } .mg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .mg-footer__top { grid-template-columns: 1fr; } }

/* Work grid and gallery */
.mg-workgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.mg-workgrid .mg-case { min-height: 400px; }
.mg-workgrid .mg-case:nth-child(1) { grid-column: span 7; }
.mg-workgrid .mg-case:nth-child(2) { grid-column: span 5; }
.mg-workgrid .mg-case:nth-child(3) { grid-column: span 5; }
.mg-workgrid .mg-case:nth-child(4) { grid-column: span 7; }
.mg-workgrid .mg-case:nth-child(5), .mg-workgrid .mg-case:nth-child(6) { grid-column: span 12; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mg-workgrid .mg-case:nth-child(5) .mg-case__num, .mg-workgrid .mg-case:nth-child(6) .mg-case__num { margin-top: 0.5rem; }
@media (max-width: 900px) { .mg-workgrid .mg-case { grid-column: span 12 !important; } .mg-workgrid .mg-case:nth-child(5), .mg-workgrid .mg-case:nth-child(6) { grid-template-columns: 1fr; } }
.mg-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.mg-gallery figure { margin: 0; grid-column: span 4; }
.mg-gallery figure:nth-child(1), .mg-gallery figure:nth-child(6) { grid-column: span 8; }
.mg-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--r-md); transition: transform 0.5s var(--ease); }
.mg-gallery figure:hover img { transform: scale(1.015); }
.mg-gallery figcaption { padding: 0.65rem 0.25rem 0; font-size: 0.85rem; color: var(--mute); }
@media (max-width: 900px) { .mg-gallery figure, .mg-gallery figure:nth-child(1), .mg-gallery figure:nth-child(6) { grid-column: span 6; } }
@media (max-width: 560px) { .mg-gallery figure, .mg-gallery figure:nth-child(1), .mg-gallery figure:nth-child(6) { grid-column: span 12; } }

/* Services catalogue */
.ap-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; list-style: none; }
.ap-jump a { display: inline-block; padding: 0.5rem 1rem; border-radius: var(--pill); background: var(--bg-2); color: var(--ink); font-size: 0.9rem; }
.ap-jump a:hover { background: var(--bg-3); text-decoration: none; }
.ap-svc { scroll-margin-top: 4rem; }
.ap-svc__head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2.25rem; }
.ap-svc__head .mg-lede { max-width: 48ch; }
.ap-svc__head .mg-actions { margin: 0; }
@media (max-width: 800px) { .ap-svc__head { grid-template-columns: 1fr; } }
.ap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ap-card { background: var(--bg-2); border-radius: var(--r-md); padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.mg-section--tint .ap-card { background: #fff; }
.mg-section--dark .ap-card { background: var(--dark-2); }
.ap-card h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; }
.ap-card > p { color: var(--mute); font-size: 0.95rem; line-height: 1.45; margin-bottom: 1rem; }
.mg-section--dark .ap-card > p { color: var(--mute-d); }
.ap-card ul { list-style: none; margin: 0 0 1.1rem; display: grid; gap: 0.4rem; }
.ap-card li { font-size: 0.88rem; color: var(--ink-2); padding-left: 1.25rem; position: relative; line-height: 1.4; }
.mg-section--dark .ap-card li { color: var(--on-dark); }
.ap-card li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35em; width: 0.55rem; height: 0.3rem; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }
.mg-section--dark .ap-card li::before { border-color: var(--link-d); }
.ap-card .mg-chev { margin-top: auto; font-size: 0.95rem; }
.ap-card--feature { grid-column: span 2; background: var(--dark); color: var(--on-dark); }
.ap-card--feature > p { color: var(--mute-d); }
.ap-card--feature li { color: var(--on-dark); }
.ap-card--feature li::before { border-color: var(--link-d); }
.ap-card--feature .mg-chev { color: var(--link-d); }
@media (max-width: 1000px) { .ap-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ap-cards { grid-template-columns: 1fr; } .ap-card--feature { grid-column: auto; } }
.ap-models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ap-model { background: #fff; border-radius: var(--r-md); padding: 1.75rem 1.5rem; }
.ap-model b { display: block; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.ap-model p { color: var(--mute); font-size: 0.92rem; margin: 0; }
@media (max-width: 1000px) { .ap-models { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-models { grid-template-columns: 1fr; } }

/* Insights list (home) */
.mg-posts { list-style: none; display: grid; gap: 12px; }
.mg-posts a { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 1.6rem; background: var(--bg-2); border-radius: var(--r-md); color: var(--ink); transition: transform 0.3s var(--ease); }
.mg-section--tint .mg-posts a { background: #fff; }
.mg-posts a:hover { text-decoration: none; transform: scale(1.01); }
.mg-posts h3 { font-size: 1.15rem; margin: 0 0 0.25rem; letter-spacing: -0.02em; }
.mg-posts p { margin: 0; color: var(--mute); font-size: 0.92rem; }
.mg-posts span { font-size: 0.8rem; color: var(--blue); white-space: nowrap; }
@media (max-width: 600px) { .mg-posts a { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Archive (Insights page) */
.mg-archive { padding-bottom: var(--sec); }
.mg-archive .wp-block-post-template { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mg-archive .wp-block-post-template > li { background: var(--bg-2); border-radius: var(--r-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.mg-archive .wp-block-post-title { font-size: 1.45rem; margin: 0 0 0.6rem; letter-spacing: -0.025em; }
.mg-archive .wp-block-post-title a { color: var(--ink); }
.mg-archive .wp-block-post-excerpt p { color: var(--mute); margin: 0 0 0.75rem; font-size: 0.98rem; }
.mg-archive .wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-date { font-size: 0.82rem; color: var(--mute); margin-top: auto; }
.mg-archive .wp-block-query-pagination { display: flex; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 760px) { .mg-archive .wp-block-post-template { grid-template-columns: 1fr; } }

/* Article */
.mg-article { max-width: 44rem; margin-inline: auto; }
.mg-article .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.06; }
.mg-article h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 3rem; letter-spacing: -0.03em; }
.mg-article h3 { font-size: 1.3rem; margin-top: 2rem; }
.mg-article p, .mg-article li { font-size: 1.1rem; line-height: 1.6; }
.mg-article ul, .mg-article ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.mg-article li { margin-bottom: 0.5rem; }
.mg-article blockquote { margin: 2.5rem 0; padding: 0; border: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.mg-article blockquote p { margin: 0; font-size: inherit; line-height: inherit; background: linear-gradient(90deg, #0071E3, #2AA7FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-article table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.95rem; background: var(--bg-2); border-radius: var(--r-md); overflow: hidden; }
.mg-article th, .mg-article td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.mg-article tr:last-child td { border-bottom: 0; }
.mg-article th { font-weight: 600; background: var(--bg-3); }
.mg-article code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--bg-2); padding: 0.12em 0.4em; border-radius: 6px; }
.mg-article .mg-eyebrow a { color: var(--blue); }
.mg-article-meta { font-size: 0.88rem; color: var(--mute); margin-bottom: 2rem; }
.mg-cta-inline { background: var(--dark); color: var(--on-dark); padding: 2rem; margin: 3rem 0; border-radius: var(--r-lg); }
.mg-cta-inline p { color: var(--mute-d); margin: 0.5rem 0 1.25rem; font-size: 1rem !important; }
.mg-cta-inline h3 { color: var(--on-dark); margin: 0; font-size: 1.4rem; }

/* Motion: restrained, transform/opacity only */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .mg-reveal, .ap-tile, .ap-card, .mg-case, .mg-stat, .mg-fact { animation: mg-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    @keyframes mg-rise { from { opacity: 0.001; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* Utilities */
.mg-mt { margin-top: 2rem; }
.mg-center { text-align: center; }
.mg-center p { margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Light CTA band that contains a split layout (SEO client result) stays left-aligned */
.mg-section--lime .mg-split { text-align: left; }
.mg-section--lime .mg-split .mg-h2, .mg-section--lime .mg-split p { margin-inline: 0; }
.mg-section--lime .mg-split .mg-actions { justify-content: flex-start; }
.mg-section--lime .mg-stats { grid-template-columns: 1fr 1fr; }
.mg-section--lime .mg-stat { background: #fff; }
.ap-hero h1 { max-width: none; }
@media (max-width: 480px) { .ap-hero h1 { font-size: clamp(2.5rem, 12vw, 3.25rem); } }
img { height: auto; }
.ap-tile__visual img { height: auto; aspect-ratio: 16 / 9; }
.ap-tile--wide { min-height: 0; }
@media (max-width: 640px) {
  .ap-hero__chip { position: static; margin: 1.25rem auto 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center; padding: 0; }
  .ap-hero__media img { border-radius: var(--r-md); }
}
@media (max-width: 480px) { .ap-hero h1 { font-size: clamp(2.25rem, 10.4vw, 3rem); } }
@media (max-width: 700px) { .mg-article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; } .mg-article th, .mg-article td { min-width: 8.5rem; } }

.mg-article pre { background: var(--bg-2); border-radius: var(--r-md); padding: 1.25rem 1.4rem; overflow-x: auto; margin: 1.5rem 0; }
.mg-article pre code { background: none; padding: 0; font-size: 0.88rem; line-height: 1.6; white-space: pre; }

/* Floating WhatsApp button */
.mg-wa { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem 0.7rem 0.8rem; border-radius: var(--pill); background: rgba(29, 29, 31, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font-size: 0.95rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease), background-color 0.2s; }
.mg-wa:hover { text-decoration: none; transform: translateY(-2px); background: #000; color: #fff; }
.mg-wa svg { flex: none; }
@media (max-width: 480px) { .mg-wa span { display: none; } .mg-wa { padding: 0.75rem; } .mg-wa svg { width: 28px; height: 28px; } }
@media print { .mg-wa { display: none; } }

/* ===== Phone refinements (Apple-style compact layout), added 2026-10-23 ===== */
@media (max-width: 734px) {
  :root { --sec: 3.5rem; --sec-s: 2.5rem; --gutter: 1.25rem; --r-lg: 22px; }
  body { font-size: 17px; }

  /* Type scale for phones */
  .mg-display { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
  .mg-h2 { font-size: clamp(1.75rem, 7.4vw, 2.1rem); line-height: 1.1; }
  .mg-h3 { font-size: 1.3rem; }
  .mg-lede { font-size: 1.1rem; line-height: 1.42; }
  .mg-eyebrow { font-size: 1rem; }
  .mg-statement { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .ap-hero { padding-top: 2.75rem; }
  .mg-section--page-head { padding-top: 2.5rem; padding-bottom: 2rem; }
  .ap-head { margin-bottom: 1.75rem; }

  /* Tap targets: 44px minimum for standalone links */
  .mg-chev, .mg-link, .mg-tile__go { display: inline-flex; align-items: center; min-height: 44px; }
  .ap-tile .ap-tile__links { gap: 0.25rem 1.25rem; margin-top: 0.5rem; }
  .ap-jump { gap: 0.5rem; margin-top: 1.5rem; }
  .ap-jump a { padding: 0.7rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; }
  .mg-btn { min-height: 48px; padding: 0.75rem 1.4rem; }
  .mg-actions { gap: 0.5rem 1.25rem; margin-top: 1.4rem; }
  .ap-hero .mg-actions { flex-direction: column; gap: 0.35rem; }
  .ap-hero .mg-actions .mg-btn { min-width: 220px; }

  /* Hero image and chip */
  .ap-hero__media { margin-top: 2rem; width: calc(100% - 2 * var(--gutter)); }
  .ap-hero__media img { border-radius: 16px; }

  /* Trust strip: compact two-by-two */
  .mg-strip { padding-top: 1.75rem; }
  .mg-strip ul { gap: 1.1rem 1rem; }
  .mg-strip li { font-size: 0.82rem; }
  .mg-strip li strong { font-size: 0.95rem; }

  /* Big tiles: no forced height, tighter padding */
  .ap-tiles { gap: 10px; padding: 10px; }
  .ap-tile, .ap-tile--wide { min-height: 0; padding: 2.25rem 1.25rem 0; }
  .ap-tile h2 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); }
  .ap-tile .ap-tile__sub { font-size: 1.05rem; }
  .ap-tile__num { font-size: clamp(4rem, 19vw, 5rem); margin: 1.75rem 0 0.35rem; }
  .ap-tile__cap { margin-bottom: 2.25rem; font-size: 0.9rem; }
  .ap-tile__chips { margin: 1.5rem 0 2.25rem; gap: 0.4rem; }
  .ap-tile__chips li { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .ap-tile__visual { padding-top: 1.5rem; }

  /* Swipeable card rows (services, deliverables, home services index) */
  .ap-cards, .mg-list {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 1rem; scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  .ap-cards::-webkit-scrollbar, .mg-list::-webkit-scrollbar { display: none; }
  .ap-cards > *, .mg-list > li { scroll-snap-align: start; }
  .ap-card--feature { grid-column: auto; }
  .ap-card { padding: 1.5rem 1.35rem; }
  .ap-card h3 { font-size: 1.15rem; }
  .mg-list li { padding: 1.4rem 1.3rem; }
  .mg-list li::before { width: 1.9rem; height: 1.9rem; border-radius: 9px; margin-bottom: 0.85rem; }
  .ap-svc__head { margin-bottom: 1.25rem; gap: 0.75rem; }
  .ap-swipe-hint { display: block; }

  /* Engagement models and markets */
  .ap-models { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ap-model { padding: 1.25rem 1.1rem; }
  .ap-model b { font-size: 1.05rem; }
  .ap-model p { font-size: 0.85rem; }
  .mg-markets { gap: 10px; }
  .mg-tile { min-height: 0; padding: 1.75rem 1.4rem; }
  .mg-tile h3 { font-size: 1.5rem; }
  .mg-tile__go { margin-top: 0.75rem; }
  .mg-bento { gap: 10px; }
  .mg-tile__num { font-size: clamp(4rem, 20vw, 5.5rem); }

  /* Facts and stats */
  .mg-facts { gap: 10px; }
  .mg-fact { padding: 1.5rem 1.35rem; border-radius: 18px; }
  .mg-fact b { font-size: 3rem; }
  .mg-fact p { font-size: 1rem; }
  .mg-fact cite { font-size: 0.8rem; }
  .mg-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mg-stat { padding: 1.2rem 1rem; border-radius: 16px; }
  .mg-stat b { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .mg-stat p { font-size: 0.85rem; }

  /* Case panels */
  .mg-casepanel { padding: 1.75rem 1.25rem; gap: 1.5rem; border-radius: 22px; margin-top: 0; }
  .mg-casepanel h2 { font-size: 1.6rem; }
  .mg-casepanel p { font-size: 0.98rem; }
  .mg-casepanel .mg-stat { padding: 1rem 0.9rem; }
  .mg-casepanel .mg-stat b { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .mg-section--case { padding-top: var(--sec-s); }

  /* Case cards (scroller and work grid) */
  .mg-scroller { grid-auto-columns: 84%; gap: 10px; }
  .mg-case { min-height: 360px; padding: 1.6rem 1.4rem; }
  .mg-case p.mg-case__num { font-size: clamp(2.8rem, 13vw, 3.4rem); margin-top: 1.75rem; }
  .mg-case__kind { font-size: 0.82rem; }
  .mg-case__num small { font-size: 0.3em; }
  .mg-workgrid { gap: 10px; }
  .mg-workgrid .mg-case { min-height: 0; }
  .mg-case--img img { height: 200px; }

  /* Steps, FAQ, columns */
  .mg-steps { gap: 10px; }
  .mg-steps li { grid-template-columns: 2.4rem 1fr; gap: 0.9rem; padding: 1.2rem 1.1rem; }
  .mg-steps li::before { width: 2.1rem; height: 2.1rem; font-size: 0.95rem; }
  .mg-steps h3 { font-size: 1.08rem; margin-top: 0.2rem; }
  .mg-steps p { font-size: 0.95rem; }
  .mg-faq summary { font-size: 1.05rem; padding: 1.1rem 2.25rem 1.1rem 0; }
  .mg-faq summary::after { top: 1.35rem; }
  .mg-faq details[open] summary::after { top: 1.55rem; }
  .mg-cols { gap: 10px; }
  .mg-cols > div { padding: 1.5rem 1.35rem; border-radius: 20px; }
  .mg-split { gap: 1.5rem; }
  .mg-dl > div { padding: 1.1rem 0; }
  .mg-dl dt { font-size: 1.1rem; }

  /* Service hero aside: compact */
  .mg-shero__aside { padding: 1.1rem 1.2rem; border-radius: 16px; }
  .mg-shero__aside p { font-size: 0.88rem; margin-bottom: 0.6rem; }
  .mg-shero__aside strong { font-size: 0.95rem; display: inline; }
  .mg-shero__aside strong::after { content: " "; }

  /* Insights */
  .mg-archive .wp-block-post-template > li { padding: 1.5rem 1.35rem; border-radius: 20px; }
  .mg-archive .wp-block-post-title { font-size: 1.25rem; }
  .mg-posts a { padding: 1.15rem 1.2rem; }
  .mg-article .wp-block-post-title { font-size: clamp(1.9rem, 8.2vw, 2.3rem); }
  .mg-article p, .mg-article li { font-size: 1.05rem; }
  .mg-article blockquote { font-size: 1.4rem; margin: 2rem 0; }
  .mg-cta-inline { padding: 1.5rem 1.35rem; border-radius: 20px; }

  /* Gallery */
  .mg-gallery { gap: 10px; }
  .mg-gallery img { border-radius: 14px; }

  /* Form */
  .mg-form { padding: 1.25rem; gap: 0.85rem; border-radius: 20px; }

  /* Footer: two columns, roomier tap targets */
  .mg-footer { padding: 2rem 0 5.5rem; }
  .mg-footer__top { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .mg-footer__brand { grid-column: 1 / -1; }
  .mg-footer__col:last-child { grid-column: 1 / -1; }
  .mg-footer__col li { margin: 0; }
  .mg-footer__col a { display: inline-block; padding: 0.55rem 0; font-size: 0.85rem; }
  .mg-footer__col li:not(:has(a)) { padding: 0.55rem 0; font-size: 0.85rem; }
  .mg-footer__bottom p { font-size: 0.75rem; }

  /* Floating WhatsApp button sits above the home indicator, never over the footer text */
  .mg-wa { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .mg-stats { grid-template-columns: 1fr 1fr; }
  .mg-strip ul { grid-template-columns: 1fr 1fr; }
  .ap-models { grid-template-columns: 1fr; }
  .mg-footer__top { grid-template-columns: 1fr; }
}

/* Swipe hint text under card rows on phones */
.ap-swipe-hint { display: none; font-size: 0.82rem; color: var(--mute); margin: 0.25rem 0 0; text-align: right; }
.mg-section--dark .ap-swipe-hint { color: var(--mute-d); }
@media (max-width: 734px) {
  .ap-swipe-hint { display: block; }
  .mg-footer__col a { padding: 0.7rem 0; }
  .mg-brand { min-height: 44px; }
}

/* Sticky nav: stick the template-part wrapper (the inner bar's parent is only as tall as the bar) */
header.wp-block-template-part, .mg-header-part { position: sticky; top: 0; z-index: 100; }
.mg-header { position: relative; }
body.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.wp-block-template-part { top: 46px; } }

/* Mobile menu: solid sheet, no nested blur, page locked behind it */
@media (max-width: 1060px) {
  .mg-nav { background: #FBFBFD; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 120; height: calc(100dvh - 48px); min-height: 0; overflow-y: auto; }
  .mg-header:has(.mg-nav-check:checked) { background: #FBFBFD; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:has(.mg-nav-check:checked), body:has(.mg-nav-check:checked) { overflow: hidden; }
  body:has(.mg-nav-check:checked) .mg-wa { display: none; }
}

/* Figures and diagrams */
.ap-figure { margin: 0; }
.ap-figure img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.ap-figure figcaption { font-size: 0.88rem; color: var(--mute); margin: 0.85rem auto 0; max-width: 60ch; text-align: center; }
.ap-flow { margin: 0 auto; max-width: 460px; }
.ap-flow svg { width: 100%; height: auto; display: block; }
.ap-flow figcaption { font-size: 0.88rem; color: var(--mute); margin-top: 1rem; text-align: center; }
@media (max-width: 734px) { .ap-figure img { border-radius: 16px; } }
