/* Variation A — light cream, friendly, rounded. TechEsthete brand colors. */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #15150f;
  --muted: #5d5c55;
  --line: #e4e1d6;
  --sand: #d2cdb9;
  --mint: #33c893;
  --violet: #8c7cf0;
  --coral: #fa6a44;
  --teal: #50afb1;
  --coral-tint: #fff1ec;
  --violet-tint: #eef0ff;
  --mint-tint: #e7f8f1;
  --grad: linear-gradient(100deg, #fa6a44 0%, #ad77bd 45%, #50afb1 75%, #3bc09b 100%);
  /* darker stops for gradient text on cream, keeps WCAG contrast */
  --grad-text: linear-gradient(100deg, #c93d16 0%, #8a4fb0 50%, #1f7f78 100%);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(21, 21, 15, .04), 0 10px 30px rgba(21, 21, 15, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  /* motion.css hooks */
  --m-accent: var(--coral);
  --m-ink: var(--ink);
  --m-surface: var(--surface);
  --m-line: var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(210, 205, 185, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 205, 185, .35) 1px, transparent 1px);
  background-size: 56px 56px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(840px, 100% - 32px); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 8px 22px rgba(250, 106, 68, .35); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2b24; }
.btn-light { background: #fff; color: var(--ink); }
.btn-coral { --m-accent: var(--ink); --m-on-accent: var(--coral); }
.nav-links .btn-arrow { width: 24px; height: 24px; }
.nav-links .btn-arrow svg { width: 12px; height: 12px; }

/* Nav */
.nav-wrap { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.nav { max-width: 1100px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-links .mm-top { display: inline-flex; align-items: center; gap: 4px; padding: .55rem .8rem .55rem .9rem; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; transition: background .2s; }
.nav-links .mm-top:hover, .nav-links .mm-item.is-open > .mm-top { background: var(--violet-tint); }
.nav-links .btn { padding: .62rem 1.15rem; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; overflow-x: clip; }
#work { overflow-x: clip; }
.hero-inner { max-width: 1080px; }
.hero-inner h1, .hero-inner .lede { max-width: 900px; margin-inline: auto; }
.badge { display: inline-block; max-width: 100%; margin-bottom: 1.2rem !important; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; margin-bottom: 1.6rem; }
.lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 660px; margin: 1rem auto 1.6rem; }
.platform-icons { list-style: none; padding: 0; margin: 0 auto 2.2rem; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.platform-icons li { width: 76px; height: 76px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .25s ease; }
.platform-icons li:hover { transform: translateY(-4px) rotate(-3deg); }
.platform-icons img { width: 46px; height: 46px; }

/* Six-step chain under the subhead */
.chain { display: block; text-decoration: none; max-width: 1040px; margin: 0 auto 1.4rem; }
.chain ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: c; }
.chain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; box-shadow: var(--shadow); display: grid; gap: 2px; transition: transform .2s ease, border-color .2s ease; }
.chain li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--sand); font-weight: 800; z-index: 1; }
.chain:hover li { border-color: var(--sand); }
.chain li:hover { transform: translateY(-2px); }
.chain b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .95rem; }
.chain b i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--ink); color: #fff; }
.chain li:nth-child(5) b i, .chain li:nth-child(6) b i { background: var(--coral); color: var(--ink); }
.chain span { font-size: .74rem; color: var(--muted); }

/* Named platform strip */
.works-with { margin: 0 auto 1.6rem; }
.hero-paths { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .9rem; }
.hero-paths span { color: var(--muted); font-weight: 600; }
.hero-paths a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color .2s, background .2s; }
.hero-paths a:hover, .hero-paths a:focus-visible { border-color: var(--coral, #ff6b3d); background: var(--coral-tint, #fff1ea); }
:root[data-theme="dark"] .hero-paths a:hover, :root[data-theme="dark"] .hero-paths a:focus-visible { background: rgba(255, 122, 69, .12); }
.works-more { margin: .8rem auto 0; font-size: .84rem; color: var(--muted); max-width: 70ch; text-align: center; }
.works-label { margin: 0 0 .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.platform-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.platform-strip li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .86rem; font-weight: 600; }
.platform-strip img { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.platform-strip.gap-shrink { gap: calc(12px - 6px * var(--t)) !important; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.proof-line { margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }
.proof-line b { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.collage { --tuck-distance: 240px; position: relative; margin: 64px auto 0; max-width: 1040px; }
.side { position: absolute; top: 9%; width: 36%; height: 82%; margin: 0; border-radius: 28px; overflow: hidden; z-index: 0; box-shadow: 0 30px 70px rgba(21, 21, 15, .14); will-change: transform; }
.side img { width: 100%; height: 100%; object-fit: cover; }
.side-left { left: -22%; }
.side-right { right: -22%; }
.photo { position: relative; z-index: 1; margin: 0; border-radius: 32px; overflow: hidden; border: 6px solid var(--surface); box-shadow: 0 40px 90px rgba(21, 21, 15, .16); }
.photo img { width: 100%; height: clamp(300px, 46vw, 520px); object-fit: cover; object-position: center 60%; }
.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(21, 21, 15, .14); text-align: left; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.card-roas { left: -28px; top: 48px; padding: 16px 18px; width: 200px; }
.card-roas small, .card-sync small, .card-agent small { display: block; color: var(--muted); font-size: .76rem; }
.card-roas b { display: block; font-size: 1.8rem; letter-spacing: -.03em; }
.card-roas em { font-style: normal; font-size: .85rem; color: var(--mint); }
.card-roas svg { width: 100%; height: 44px; margin-top: 6px; }
.card-agent { right: -24px; top: 110px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; animation-delay: 1.2s; }
.card-agent b { font-size: .95rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px var(--mint-tint); flex: none; }
.card-sync { right: 60px; bottom: -28px; padding: 14px 18px; animation-delay: 2.4s; }
.sync-icons { display: flex; margin-bottom: 8px; }
.sync-icons img { width: 32px; height: 32px; border-radius: 50%; background: #fff; padding: 4px; border: 2px solid var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); margin-left: -8px; }
.sync-icons img:first-child { margin-left: 0; }

/* Stats */
.stats { padding: 80px 0 24px; }
.stats-grid { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stats-grid strong { display: block; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; }
.stats-grid li:nth-child(1) strong { color: #c2410c; }
.stats-grid li:nth-child(2) strong { color: #5b4bd6; }
.stats-grid li:nth-child(3) strong { color: #0f7a55; }
.stats-grid li:nth-child(4) strong { color: #2b7f81; }
.stats-grid span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Clients: parallax art + logos */
.clients { padding: clamp(64px, 9vw, 110px) 0; overflow-x: clip; position: relative; isolation: isolate; }
.clients-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.clients-art { position: relative; height: 460px; }
.clients-art img { position: absolute; width: 62%; height: auto; aspect-ratio: 840 / 930; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 70px rgba(21, 21, 15, .16); border: 5px solid var(--surface); will-change: transform; }
.art-back { left: 0; top: 0; }
.art-front { right: 0; top: 120px; }
.art-badge { position: absolute; left: 8%; bottom: 0; background: var(--ink); color: #fff; border-radius: 20px; padding: 16px 20px; display: grid; box-shadow: 0 20px 40px rgba(21, 21, 15, .25); z-index: 2; }
.art-badge b { font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.1; }
.art-badge span { font-size: .8rem; opacity: .75; }
.clients-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; height: 88px; display: grid; place-items: center; padding: 0 20px; }
.logo-grid img { height: 28px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logo-grid li:hover img { filter: none; opacity: 1; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-tint { background: rgba(255, 255, 255, .55); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Platform cards */
.platform-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.pcard:hover { transform: translateY(-4px); border-color: var(--sand); }
.pcard > img { width: 56px; height: 56px; margin-bottom: 18px; }
.pcard p { color: var(--muted); margin: 0; font-size: .95rem; }
.pcard-feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--coral-tint), #fff 60%); display: flex; flex-direction: column; }
.pcard-feature h3 { font-size: 1.7rem; }
.pcard-feature p { font-size: 1.05rem; flex: 1; }
.pcard-feature > img { width: 72px; height: 72px; }
.tag { align-self: flex-start; font-size: .74rem; font-weight: 700; color: #c2410c; background: #fff; border: 1px solid #ffd5c7; border-radius: 999px; padding: .25rem .7rem; margin-bottom: 12px; }
.more { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.4rem; font-weight: 700; text-decoration: none; color: #c2410c; }
.more:hover { color: var(--ink); }
.pcard-wh { background: linear-gradient(160deg, var(--mint-tint), #fff 60%); }
.wh-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.wh-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Platform groups */
.pgroups { display: grid; grid-template-columns: 2fr 1fr; gap: 28px 20px; }
.pgroup { display: flex; flex-direction: column; }
.pgroup-wide { grid-column: 1 / -1; }
.pgroup-label { margin: 0 0 .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pgroup-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; flex: 1; }
.pgroup-cards.three { grid-template-columns: repeat(3, 1fr); }
.pgroup .pcard { height: 100%; display: flex; flex-direction: column; }
.pgroup .pcard .more { margin-top: auto; padding-top: 16px; }
.pcard-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-chips li { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--bg, #f5f4ef); border: 1px solid var(--line); }
.pcard .pcard-proof { margin-top: 14px; font-size: .85rem; }
.pcard-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pcard-mini div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; background: var(--surface); }
.pcard-mini span { font-size: .7rem; color: var(--muted); line-height: 1.2; }
.pcard-mini b { font-size: 1.25rem; }
.pcard-mini .hl { border-color: #0f8a62; background: rgba(51, 200, 147, .1); }
.pcard-mini .hl b { color: #0f8a62; }
:root[data-theme="dark"] .pcard-chips li { background: rgba(255, 255, 255, .05); }
:root[data-theme="dark"] .pcard-mini .hl b { color: #4fd8a6; }
.pgroup-note { margin: .8rem 0 0; font-size: .88rem; color: var(--muted); }
.pgroups .pcard > img { width: 48px; height: 48px; margin-bottom: 14px; }
.pgroups .pcard-feature { grid-column: auto; grid-row: auto; }
.pgroups .pcard-feature > img { width: 64px; height: 64px; }
.pcard-store { background: linear-gradient(160deg, var(--mint-tint), #fff 60%); }
.pcard-attr { background: linear-gradient(160deg, var(--violet-tint), #fff 60%); }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: f; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.flow h3 { margin-bottom: .3em; }
.flow p { color: var(--muted); margin: 0; font-size: .93rem; }
.flow-n { position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: .82rem; color: var(--sand); }
.flow-art { height: 110px; border-radius: 16px; background: var(--bg); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px; }
.flow-art code { font-family: ui-monospace, Menlo, monospace; font-size: .76rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .25rem .5rem; }
.art-ingest img { width: 34px; height: 34px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.art-chaos code { border-style: dashed; color: #c2410c; transform: rotate(-3deg); }
.art-chaos code:nth-child(even) { transform: rotate(3deg); }
.art-clean { background: var(--mint-tint); }
.art-clean .was { color: #c2410c; text-decoration: line-through; opacity: .8; }
.art-clean .to { font-weight: 800; color: var(--muted); }
.art-dash { flex-direction: column; flex-wrap: nowrap; gap: 6px; background: var(--violet-tint); }
.art-dash small { font-size: .72rem; font-weight: 600; color: #5b4bd6; }
.art-dash .bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.art-dash .bars i { width: 16px; height: var(--h); border-radius: 4px 4px 2px 2px; background: #8c7cf0; }
.art-dash .bars i:first-child { background: var(--coral); }
.art-clean code { color: #0f7a55; }
.art-layers { flex-direction: column; flex-wrap: nowrap; gap: 5px; }
.art-layers i { font-style: normal; font-weight: 700; font-size: .78rem; border-radius: 8px; padding: .3rem 0; text-align: center; }
.art-layers .gold { width: 60%; background: linear-gradient(100deg, #d7a845, #f0d17a); }
.art-layers .silver { width: 75%; background: linear-gradient(100deg, #b5b9c2, #e2e5ea); }
.art-layers .bronze { width: 90%; background: linear-gradient(100deg, #b06a3e, #d99366); color: #fff; }
.art-alert, .art-act { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.art-alert span, .art-act span { font-size: .78rem; font-weight: 600; background: #fff; border-radius: 10px; padding: .35rem .7rem; box-shadow: var(--shadow); }
.art-alert { background: var(--coral-tint); }
.art-alert span { color: #c2410c; }
.art-act { background: var(--violet-tint); }
.art-act span { color: #5b4bd6; }

/* Cases carousel */
#work .carousel { margin-inline: calc(50% - 50vw); }
.case { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.case img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.case-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.case h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .9rem 0 .4rem; }
.case p { color: var(--muted); margin: 0; }
.metric { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: .3rem .75rem; }
.quote { margin: 48px auto 0; max-width: 820px; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.quote figcaption { color: var(--muted); }

/* What to expect */
.expect { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expect-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.expect-card h3 { margin-top: 14px; }
.expect-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.expect-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.expect-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Who we work with */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who-card { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.who-agency { background: linear-gradient(165deg, var(--violet-tint), #fff 55%); }
.who-brand { background: linear-gradient(165deg, var(--coral-tint), #fff 55%); }
.who-tag { align-self: flex-start; font-size: .76rem; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.2rem; }
.who-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.who-card > p { color: var(--muted); flex: 1; }
.who-proof { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .92rem; }
.who-proof b { display: inline-block; min-width: 64px; font-size: 1.05rem; }
.who-agency .who-proof b { color: #5b4bd6; }
.who-brand .who-proof b { color: #c2410c; }
.who-saas { background: linear-gradient(165deg, rgba(51, 200, 147, .16), #fff 55%); }
.who-saas .who-proof b { color: #0f8a62; }
.who-more { margin-top: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.who-more svg { width: 18px; height: 18px; }
.who-more:hover { text-decoration: underline; }
@media (max-width: 1100px) { .who { grid-template-columns: 1fr; } }

/* Values: flip cards */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-flip { height: 290px; border-radius: var(--radius); }
.value-flip .flip-face { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; }
.flip-front { background: var(--surface); justify-content: space-between; }
.flip-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5rem; }
.flip-front small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.flip-line { margin: 0; font-size: .98rem; line-height: 1.45; }
.flip-front { justify-content: flex-start; gap: 12px; }
.flip-front small { margin-top: auto; }
.flip-back { justify-content: flex-end; }
.flip-back p { margin: 0; font-size: 1rem; }
.v-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.flip-front.v-mint .flip-title span { color: #0f7a55; }
.flip-front.v-violet .flip-title span { color: #5b4bd6; }
.flip-front.v-coral .flip-title span { color: #c2410c; }
.flip-front.v-teal .flip-title span { color: #2b7f81; }
.flip-front .v-ico { background: var(--bg); }
.flip-back.v-mint { background: var(--mint); color: #062d20; border-color: var(--mint); }
.flip-back.v-violet { background: var(--violet); color: var(--ink); border-color: var(--violet); }
.flip-back.v-coral { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.flip-back.v-teal { background: var(--teal); color: var(--ink); border-color: var(--teal); }

/* Illustration cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.illo-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 36px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.illo-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(21, 21, 15, .12); }
.illo-card > div:first-child { margin-bottom: 28px; height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.illo-card h3 { font-size: 1.5rem; }
.illo-card p { color: var(--muted); flex: 1; }
.illo-card .more { margin-top: .6rem; }
.illo-card:first-child { background: linear-gradient(170deg, var(--coral-tint), #fff 55%); }
.illo-card:last-child { background: linear-gradient(170deg, var(--violet-tint), #fff 55%); }
.v-mint { background: var(--mint-tint); color: #0f7a55; }
.v-violet { background: var(--violet-tint); color: #5b4bd6; }
.v-coral { background: var(--coral-tint); color: #c2410c; }
.v-teal { background: #e6f5f5; color: #2b7f81; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* CTA */
.section-cta { padding-top: 0; }
.cta { background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: var(--grad); opacity: .55; filter: blur(30px); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: .3em; }
.cta p { max-width: 520px; opacity: .8; margin: 0; font-size: 1.08rem; }
.cta-actions { display: grid; gap: 12px; justify-items: center; }
.cta-mail { color: #fff; opacity: .8; font-size: .9rem; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); }
.footer .brand { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; gap: 32px; }
.footer-grid > div > p { margin-top: 1rem; font-size: .92rem; }
.footer-h { color: var(--ink); margin: 0 0 .9rem; font-size: .95rem; font-weight: 700; }
.footer nav a { display: block; text-decoration: none; padding: .25rem 0; font-size: .92rem; }
.footer nav a:hover, .offices a:hover { color: var(--coral); }
.offices p:not(.footer-h) { font-size: .86rem; margin-bottom: .55rem; }
.offices b { color: var(--ink); margin-right: .35rem; }
.offices a { text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: .85rem; }
.footer-base a { text-decoration: none; }

/* Responsive */
@media (max-width: 1000px) {
  .chain ol { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .chain li:nth-child(3)::after { display: none; }
  .pgroups { grid-template-columns: 1fr; }
  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .pcard-feature { grid-row: auto; }
  .stats-grid, .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .values, .expect { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr; gap: 40px; }
  .clients-art { height: 380px; max-width: 560px; width: 100%; margin-inline: auto; }
  .carousel { --slide: 78vw; }
  .side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-roas { left: 12px; }
  .card-agent { right: 12px; }
}
@media (max-width: 760px) {
  .chain span { display: none; }
  .chain li { padding: 9px 6px; border-radius: 12px; }
  .chain b { font-size: .78rem; white-space: nowrap; gap: 4px; }
  .chain b i { width: 17px; height: 17px; font-size: .62rem; }
  .badge { font-size: .72rem; padding: .35rem .8rem; }
  .platform-strip { gap: 6px; }
  .platform-strip.gap-shrink { gap: 6px !important; }
  .platform-strip li { padding: 3px 10px 3px 3px; font-size: .76rem; gap: 6px; }
  .platform-strip img { width: 22px; height: 22px; }
  .btn-secondary { background: none; color: var(--ink); padding-inline: .4rem; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
  .btn-secondary .btn-arrow { display: none; }
  .pgroup-cards, .pgroup-cards.three { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 10px 4px 6px; }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-links .btn { justify-content: center; text-align: center; }
  .nav-links .btn { display: flex; }
  .platform-icons li { width: 64px; height: 64px; border-radius: 18px; }
  .platform-icons img { width: 38px; height: 38px; }
  .card-roas { top: auto; bottom: -36px; left: 12px; width: 170px; }
  .card-agent { top: 16px; right: 12px; padding: 10px 14px; }
  .card-sync { display: none; }
  .case { grid-template-columns: 1fr; }
  .case img { min-height: 0; height: 220px; }
  .duo, .who { grid-template-columns: 1fr; }
  .illo-card { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .platform-cards, .flow, .values, .expect, .footer-grid { grid-template-columns: 1fr; }
  .value-flip { height: 240px; }
  .carousel { --slide: 86vw; }
  .carousel-track { gap: 14px; }
  .clients-art { height: 300px; }
  .art-front { top: 80px; }
  .pcard-feature, .pcard-wh { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Light / dark switch (variation A). Light is the default; dark applies
   only when assets/theme.js sets <html data-theme="dark">.
   ===================================================================== */
.theme-li { display: flex; align-items: center; }
.theme-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { background: var(--violet-tint); border-color: var(--sand); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 50%; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (max-width: 760px) {
  .nav-links .theme-li { justify-content: center; padding: 4px 0; }
}

/* ---- Dark palette ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121210;
  --surface: #1c1c19;
  --ink: #f2f1ea;
  --muted: #a8a69c;
  --line: #2e2e2a;
  --sand: #4d4a40;
  --coral: #ff7a45;
  --violet: #a597ff;
  --coral-tint: #2a1c15;
  --violet-tint: #201e30;
  --mint-tint: #142720;
  --grad-text: linear-gradient(100deg, #ff8a5c 0%, #c79cf2 50%, #5fd3c4 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
  /* dark-mode text colors for the accent hues */
  --d-coral: #ff9466;
  --d-violet: #b3a8ff;
  --d-mint: #4fd6a2;
  --d-teal: #6cc9cb;
  --d-on-light: #15150f;
}
:root[data-theme="dark"] body { background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); }

/* surfaces that were hard-coded white */
:root[data-theme="dark"] .nav { background: rgba(28, 28, 25, .86); }
:root[data-theme="dark"] .section-tint { background: rgba(255, 255, 255, .02); }
:root[data-theme="dark"] .pcard-feature { background: linear-gradient(160deg, var(--coral-tint), var(--surface) 60%); }
:root[data-theme="dark"] .pcard-wh, :root[data-theme="dark"] .pcard-store { background: linear-gradient(160deg, var(--mint-tint), var(--surface) 60%); }
:root[data-theme="dark"] .pcard-attr { background: linear-gradient(160deg, var(--violet-tint), var(--surface) 60%); }
:root[data-theme="dark"] .who-agency { background: linear-gradient(165deg, var(--violet-tint), var(--surface) 55%); }
:root[data-theme="dark"] .who-brand { background: linear-gradient(165deg, var(--coral-tint), var(--surface) 55%); }
:root[data-theme="dark"] .who-saas { background: linear-gradient(165deg, rgba(51, 200, 147, .14), var(--surface) 55%); }
:root[data-theme="dark"] .who-saas .who-proof b { color: #4fd8a6; }
:root[data-theme="dark"] .who-more { color: var(--text, #f2f1ea); }
:root[data-theme="dark"] .illo-card:first-child { background: linear-gradient(170deg, var(--coral-tint), var(--surface) 55%); }
:root[data-theme="dark"] .illo-card:last-child { background: linear-gradient(170deg, var(--violet-tint), var(--surface) 55%); }
:root[data-theme="dark"] .flow-art code, :root[data-theme="dark"] .art-alert span, :root[data-theme="dark"] .art-act span { background: var(--surface); }
:root[data-theme="dark"] .illo-card:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .side, :root[data-theme="dark"] .photo, :root[data-theme="dark"] .float, :root[data-theme="dark"] .clients-art img { box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }

/* "ink" fills become light chips with dark text */
:root[data-theme="dark"] .skip { color: var(--bg); }
:root[data-theme="dark"] .btn-coral { color: var(--d-on-light); --m-accent: var(--d-on-light); box-shadow: 0 8px 22px rgba(255, 122, 69, .25); }
:root[data-theme="dark"] .btn-ink { color: var(--d-on-light); }
:root[data-theme="dark"] .btn-ink:hover { background: #fff; }
:root[data-theme="dark"] .btn-light { background: var(--ink); color: var(--d-on-light); }
:root[data-theme="dark"] .chain b i, :root[data-theme="dark"] .metric, :root[data-theme="dark"] .who-tag, :root[data-theme="dark"] .expect-ico, :root[data-theme="dark"] .art-badge { color: var(--d-on-light); }
:root[data-theme="dark"] .chain li:nth-child(5) b i, :root[data-theme="dark"] .chain li:nth-child(6) b i { color: var(--d-on-light); }
:root[data-theme="dark"] .art-badge { box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .cta { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .cta-mail { color: var(--ink); }
:root[data-theme="dark"] .art-layers .gold, :root[data-theme="dark"] .art-layers .silver { color: var(--d-on-light); }
@media (max-width: 760px) {
  :root[data-theme="dark"] .btn-secondary, :root[data-theme="dark"] .btn-secondary:hover { background: none; color: var(--ink); }
}

/* accent text colors, brightened for the dark background */
:root[data-theme="dark"] .stats-grid li:nth-child(1) strong { color: var(--d-coral); }
:root[data-theme="dark"] .stats-grid li:nth-child(2) strong { color: var(--d-violet); }
:root[data-theme="dark"] .stats-grid li:nth-child(3) strong { color: var(--d-mint); }
:root[data-theme="dark"] .stats-grid li:nth-child(4) strong { color: var(--d-teal); }
:root[data-theme="dark"] .tag { color: var(--d-coral); background: var(--coral-tint); border-color: rgba(255, 122, 69, .35); }
:root[data-theme="dark"] .more { color: var(--d-coral); }
:root[data-theme="dark"] .more:hover { color: var(--ink); }
:root[data-theme="dark"] .card-roas svg path { stroke: var(--d-mint); }
:root[data-theme="dark"] .art-chaos code, :root[data-theme="dark"] .art-clean .was, :root[data-theme="dark"] .art-alert span { color: var(--d-coral); }
:root[data-theme="dark"] .art-clean code { color: var(--d-mint); }
:root[data-theme="dark"] .art-dash small, :root[data-theme="dark"] .art-act span { color: var(--d-violet); }
:root[data-theme="dark"] .who-agency .who-proof b { color: var(--d-violet); }
:root[data-theme="dark"] .who-brand .who-proof b { color: var(--d-coral); }
:root[data-theme="dark"] .v-mint { background: var(--mint-tint); color: var(--d-mint); }
:root[data-theme="dark"] .v-violet { background: var(--violet-tint); color: var(--d-violet); }
:root[data-theme="dark"] .v-coral { background: var(--coral-tint); color: var(--d-coral); }
:root[data-theme="dark"] .v-teal { background: #13292a; color: var(--d-teal); }
:root[data-theme="dark"] .flip-front.v-mint .flip-title span { color: var(--d-mint); }
:root[data-theme="dark"] .flip-front.v-violet .flip-title span { color: var(--d-violet); }
:root[data-theme="dark"] .flip-front.v-coral .flip-title span { color: var(--d-coral); }
:root[data-theme="dark"] .flip-front.v-teal .flip-title span { color: var(--d-teal); }
:root[data-theme="dark"] .flip-front .v-ico { background: var(--bg); }
:root[data-theme="dark"] .flip-back.v-mint { background: var(--mint); color: #062d20; }
:root[data-theme="dark"] .flip-back.v-violet { background: var(--violet); color: var(--d-on-light); }
:root[data-theme="dark"] .flip-back.v-coral { background: var(--coral); color: var(--d-on-light); }
:root[data-theme="dark"] .flip-back.v-teal { background: var(--teal); color: var(--d-on-light); }

/* client logos: knock out to white like variation B */
:root[data-theme="dark"] .logo-grid img { filter: brightness(0) invert(1); opacity: .7; }
:root[data-theme="dark"] .logo-grid li:hover img { filter: brightness(0) invert(1); opacity: 1; }

/* ---- Blog: code blocks and inline code in article prose (appended for blog review fixes) ---- */
.prose pre { overflow-x: auto; margin: 1.2rem 0; padding: 16px; border-radius: 12px; background: var(--pg-panel, #f3f1ea); border: 1px solid var(--pg-line, #e1ddd0); color: var(--pg-text, inherit); font-size: .86rem; line-height: 1.55; tab-size: 2; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.prose pre code { font-size: inherit; background: none; padding: 0; white-space: pre; }
.prose :not(pre) > code { padding: .1em .35em; border-radius: 6px; background: var(--pg-panel, #f3f1ea); color: var(--pg-text, inherit); }
:root[data-theme="dark"] .prose pre { background: var(--pg-panel, #23231f); border-color: var(--pg-line, #34342e); }
:root[data-theme="dark"] .prose :not(pre) > code { background: var(--pg-panel, #23231f); }
/* Blog index: topic cards are links to their category group */
a.vx-vcard { text-decoration: none; color: inherit; }

/* Tablet widths: six nav items no longer fit beside the logo, so use the menu button up to 1180px */
.brand { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 761px) {
  .nav-toggle { display: block; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 10px 4px 6px; }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-links .btn { justify-content: center; text-align: center; }
  .nav-links .btn { display: flex; }
  .nav-links .theme-toggle { align-self: center; }
}

/* Light/dark switch: a small floating button in the bottom-right corner instead of a nav item */
.theme-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); background: var(--surface); }
.theme-float:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .theme-float { right: 12px; bottom: 12px; width: 42px; height: 42px; } }
@media print { .theme-float { display: none; } }

/* Logo mark (inline SVG, morphs via motion.js); takes the text colour so it works in dark mode */
.logo-morph { display: block; width: 30px; height: 31px; fill: currentColor; flex: none; }
.nav .brand .logo-morph { width: 34px; height: 35px; }

/* =====================================================================
   Mega-menu navigation (assets/nav.js) and the footer link set.
   Variation A tokens; dark values follow under :root[data-theme="dark"].
   ===================================================================== */
:root {
  --mm-bg: #fff;
  --mm-line: var(--line);
  --mm-ink: var(--ink);
  --mm-muted: var(--muted);
  --mm-soft: #faf9f5;
  --mm-hover: #f4f2ea;
  --mm-accent: #c2410c;
  --mm-dot: var(--mint);
  --mm-current: var(--sand);
  --mm-shadow: 0 2px 6px rgba(21, 21, 15, .04), 0 30px 70px -18px rgba(21, 21, 15, .24);
  --mm-card-bg: #15150f;
  --mm-card-ink: #f5f4ef;
  --mm-card-muted: #b5b3a8;
  --mm-card-line: rgba(255, 255, 255, .12);
  --mm-card-glow: rgba(250, 106, 68, .34);
  --mm-tile-ring: rgba(21, 21, 15, .05);
  --mm-t-coral: linear-gradient(135deg, #fff3ee, #ffd8ca);
  --mm-i-coral: #c2410c;
  --mm-t-violet: linear-gradient(135deg, #f3f2ff, #ddd8ff);
  --mm-i-violet: #5a48d6;
  --mm-t-mint: linear-gradient(135deg, #eefbf5, #cbf1e0);
  --mm-i-mint: #0f7a52;
  --mm-t-teal: linear-gradient(135deg, #ecf8f8, #c9eaea);
  --mm-i-teal: #1d7473;
  --mm-t-butter: linear-gradient(135deg, #fffaec, #ffe6a3);
  --mm-i-butter: #8a5a00;
  --mm-sheet-bg: var(--bg);
  --mm-sheet-top: 100px;
}
:root[data-theme="dark"] {
  --mm-bg: #1c1c19;
  --mm-soft: #171714;
  --mm-hover: #262622;
  --mm-accent: #ff9466;
  --mm-dot: #4fd6a2;
  --mm-current: #4d4a40;
  --mm-shadow: 0 30px 70px -18px rgba(0, 0, 0, .7);
  --mm-card-bg: linear-gradient(160deg, #2b2823, #121210);
  --mm-card-ink: #f2f1ea;
  --mm-card-muted: #a8a69c;
  --mm-card-line: rgba(255, 255, 255, .1);
  --mm-card-glow: rgba(255, 122, 69, .26);
  --mm-tile-ring: rgba(255, 255, 255, .06);
  --mm-t-coral: linear-gradient(135deg, #2e1d15, #40261a);
  --mm-i-coral: #ff9466;
  --mm-t-violet: linear-gradient(135deg, #221f35, #2e2952);
  --mm-i-violet: #b3a8ff;
  --mm-t-mint: linear-gradient(135deg, #12271f, #173b2e);
  --mm-i-mint: #4fd6a2;
  --mm-t-teal: linear-gradient(135deg, #12292a, #183c3d);
  --mm-i-teal: #6cc9cb;
  --mm-t-butter: linear-gradient(135deg, #2a2412, #3c3117);
  --mm-i-butter: #f2c45a;
}
:root[data-theme="dark"] .mm-card { border: 1px solid var(--line); }
.nav { position: relative; }
.nav-links .mm-plain > .mm-top { padding-inline: .95rem; }

/* ---- Mega menu: shared shape (tokens --mm-* are set per variation above) ---- */
.mm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-links { list-style: none; margin: 0; padding: 0; }
.mm-caret { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .22s ease; }
.mm-item.is-open > .mm-top .mm-caret { transform: rotate(180deg); }
.mm-top[data-current], .mm-top[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--mm-current); }

.mm-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 60; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .24s; }
.mm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge between bar and panel */
.mm-item.is-open > .mm-panel,
.nav:not(.mm-ready) .mm-item:hover > .mm-panel,
.nav:not(.mm-ready) .mm-item:focus-within > .mm-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .24s cubic-bezier(.2, .7, .2, 1), visibility 0s; }

.mm-sheet { background: var(--mm-bg); color: var(--mm-ink); border: 1px solid var(--mm-line); border-radius: 22px; box-shadow: var(--mm-shadow); text-align: left; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow: hidden auto; overscroll-behavior: contain; }
.mm-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--mm-line); }
.mm-head-txt { flex: 1; min-width: 0; }
.mm-eyebrow { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-muted); }
.mm-title { margin: 2px 0 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--mm-ink); }
.mm-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; }
.mm-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--mm-muted); background: var(--mm-soft); border: 1px solid var(--mm-line); border-radius: 999px; padding: .28rem .75rem; white-space: nowrap; }
.mm-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mm-dot); }

.mm-body { display: grid; grid-template-columns: var(--mm-cols) 268px; }
.mm-col { min-width: 0; padding: 16px 14px; border-right: 1px solid var(--mm-line); }
.mm-group + .mm-group { margin-top: 14px; }
.mm-h { display: flex; gap: 8px; margin: 0 0 6px; padding: 0 10px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-muted); }
.mm-h span { color: var(--mm-accent); font-variant-numeric: tabular-nums; }
.mm-links { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }
.mm-links.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.nav-links .mm-link, .mm-link { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 7px 10px; border-radius: 12px; color: inherit; text-align: left; text-decoration: none; background: none; transition: background-color .15s ease; }
.mm-link:hover, .mm-link:focus-visible, .mm-link[aria-current="page"] { background: var(--mm-hover); }
.mm-link:focus-visible { outline-offset: -2px; }
.mm-tile { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--tile-bg); color: var(--tile-ink); box-shadow: inset 0 0 0 1px var(--mm-tile-ring); transition: transform .2s ease; }
.mm-link:hover .mm-tile { transform: translateY(-1px) scale(1.05); }
.mm-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-tile-lg { width: 42px; height: 42px; border-radius: 12px; }
.mm-tile-lg svg { width: 21px; height: 21px; }
.t-coral { --tile-bg: var(--mm-t-coral); --tile-ink: var(--mm-i-coral); }
.t-violet { --tile-bg: var(--mm-t-violet); --tile-ink: var(--mm-i-violet); }
.t-mint { --tile-bg: var(--mm-t-mint); --tile-ink: var(--mm-i-mint); }
.t-teal { --tile-bg: var(--mm-t-teal); --tile-ink: var(--mm-i-teal); }
.t-butter { --tile-bg: var(--mm-t-butter); --tile-ink: var(--mm-i-butter); }
.mm-txt { display: grid; min-width: 0; }
.mm-name { font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--mm-ink); }
.mm-desc { font-size: .76rem; line-height: 1.35; color: var(--mm-muted); }

.mm-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; margin: 14px; padding: 20px; border-radius: 18px; background: var(--mm-card-bg); color: var(--mm-card-ink); }
.mm-card::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--mm-card-glow), transparent 70%); pointer-events: none; }
.mm-card-eyebrow { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-card-muted); }
.mm-card-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(250, 106, 68, .18); }
.mm-card-h { margin: 6px 0 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--mm-card-ink); }
.mm-card-p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--mm-card-muted); }
.mm-stat { display: grid; gap: 2px; margin: 10px 0 14px; padding-top: 14px; border-top: 1px solid var(--mm-card-line); }
.mm-stat b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-stat span { font-size: .78rem; line-height: 1.35; color: var(--mm-card-muted); }
.mm-card .mm-card-btn { margin-top: auto; justify-content: center; padding: .7rem 1rem; font-size: .86rem; }

.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 24px; border-top: 1px solid var(--mm-line); background: var(--mm-soft); font-size: .84rem; }
.mm-foot a { font-weight: 700; color: var(--mm-accent); text-decoration: none; }
.mm-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mm-foot-note { color: var(--mm-muted); }

/* Tablet and mobile: full-height sheet, panels become accordion sections */
@media (max-width: 1180px) {
  html.nav-locked, html.nav-locked body { overflow: hidden; }
  .nav.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav .brand, .nav .nav-toggle { position: relative; z-index: 2; }
  .nav-toggle span { transition: transform .22s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links, .nav-links.open { display: none; }
  .nav-links.open { display: flex; position: fixed; inset: 0; z-index: 1; width: auto; height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--mm-sheet-top) max(20px, calc((100vw - 760px) / 2)) 0; background: var(--mm-sheet-bg); border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; animation: mm-sheet-in .22s ease; }
  .nav-links > li { border-bottom: 1px solid var(--mm-line); }
  .nav-links .mm-top { width: 100%; justify-content: space-between; padding: 15px 4px; border-radius: 0; background: none; box-shadow: none; color: var(--mm-ink); font-size: 1.05rem; font-weight: 700; text-align: left; }
  .nav-links .mm-top:hover, .nav-links .mm-item.is-open > .mm-top { background: none; color: var(--mm-ink); }
  .nav-links .mm-top[data-current], .nav-links .mm-top[aria-current="page"] { box-shadow: none; color: var(--mm-accent); }
  .mm-caret { width: 16px; height: 16px; }
  .mm-panel, .mm-item.is-open > .mm-panel { position: static; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .mm-panel::before { display: none; }
  .mm-item.is-open > .mm-panel { display: block; animation: mm-acc-in .2s ease; }
  .mm-sheet { max-height: none; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .mm-head, .mm-card, .mm-desc, .mm-foot-note { display: none; }
  .mm-body { display: block; }
  .mm-col { padding: 0; border: 0; }
  .mm-group { padding-bottom: 6px; }
  .mm-group + .mm-group { margin-top: 8px; }
  .mm-h { padding: 0 4px; }
  .mm-links, .mm-links.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .nav-links .mm-link, .mm-link { gap: 10px; padding: 7px 6px; }
  .mm-tile { width: 30px; height: 30px; border-radius: 9px; }
  .mm-tile svg { width: 16px; height: 16px; }
  .mm-name { font-size: .9rem; font-weight: 600; }
  .mm-foot { padding: 4px 4px 16px; border: 0; background: none; }
  .nav-links > li.nav-cta { position: sticky; bottom: 0; margin-top: auto; padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); border: 0; background: linear-gradient(to bottom, transparent, var(--mm-sheet-bg) 28%); }
  .nav-links .nav-cta .btn { display: flex; width: 100%; justify-content: center; margin: 0; }
  .nav-locked .theme-float { display: none; }
}
@media (max-width: 600px) {
  .mm-links, .mm-links.two { grid-template-columns: 1fr; }
}
@keyframes mm-sheet-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mm-acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-item.is-open > .mm-panel, .mm-caret, .mm-tile, .nav-toggle span { transition: none !important; }
  .mm-panel { transform: none; }
  .nav-links.open, .mm-item.is-open > .mm-panel { animation: none !important; }
}

/* ---- Footer: full link set in two compact rows ---- */
.ft-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.ft-brand { max-width: 460px; }
.ft-brand p { margin: 1rem 0 0; font-size: .92rem; }
.footer .ft-contact { margin: 0; text-align: right; font-size: .88rem; line-height: 1.75; }
.ft-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 28px; padding-top: 34px; }
.ft-group { grid-column: span var(--span, 1); min-width: 0; }
.ft-cols { display: grid; grid-template-columns: repeat(var(--span, 1), minmax(0, 1fr)); gap: 0 28px; }
.ft-sub { margin: 0 0 .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ft-cols ul { list-style: none; margin: 0 0 .9rem; padding: 0; }
.ft-cols > div > ul:last-child { margin-bottom: 0; }
.footer .ft-group a { display: block; padding: .16rem 0; font-size: .86rem; line-height: 1.4; text-decoration: none; }
@media (max-width: 1000px) {
  .ft-grid { grid-template-columns: 1fr; gap: 26px; }
  .ft-group { grid-column: auto; }
  .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ft-top { flex-direction: column; gap: 18px; }
  .footer .ft-contact { text-align: left; }
}
@media (max-width: 600px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .ft-sub[aria-hidden="true"] { display: none; }
}

/* ---- WhatsApp quick contact: nav icon, floating button, footer and menu links ---- */
:root { --wa: #25d366; --wa-deep: #128c7e; }
.wa-ico { width: 18px; height: 18px; flex: none; }
.nav-wa { display: flex; align-items: center; }
.nav-links .nav-wa-link { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--wa); color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.nav-links .nav-wa-link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.nav-wa-link .wa-ico { width: 21px; height: 21px; }
.nav-wa-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(18, 140, 126, .38), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float .wa-ico { width: 29px; height: 29px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(18, 140, 126, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-float:focus-visible, .nav-wa-link:focus-visible { outline: 3px solid var(--wa-deep); outline-offset: 3px; border-radius: 50%; }
.ft-wa { display: inline-flex; align-items: center; gap: 6px; }
.ft-wa .wa-ico { width: 16px; height: 16px; color: var(--wa); }
.mm-card .mm-card-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--mm-card-ink); text-decoration: none; }
.mm-card-wa .wa-ico { width: 16px; height: 16px; color: var(--wa); }
.mm-card-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1180px) {
  .nav-links > li.nav-wa { margin-top: auto; padding: 18px 0 0; border: 0; }
  .nav-links > li.nav-cta { margin-top: 0; }
  .nav-links .nav-wa .nav-wa-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: auto; padding: .8rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
  .nav-wa-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-locked .wa-float { display: none; }
}
@media print { .wa-float, .action-bar { display: none !important; } }
/* A: the theme switch stacks above the WhatsApp button; on phones a quick-action bar replaces the float */
.theme-float { right: 22px; bottom: 84px; }
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .wa-float { display: none; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.45fr; padding-bottom: env(safe-area-inset-bottom); background: #15150f; color: #f5f4ef; border-top: 1px solid rgba(255, 255, 255, .12); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 56px; padding: 0 8px; color: inherit; font-size: .84rem; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .action-bar .wa-ico { width: 19px; height: 19px; color: var(--wa); }
  .action-bar .ab-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
  .action-bar .ab-cta { background: var(--coral); color: #15150f; border-left: 0; }
  .action-bar a:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; border-radius: 0; }
  .theme-float, :root .theme-float { right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .nav-locked .action-bar, .nav-locked .theme-float { display: none; }
}
:root[data-theme="dark"] .action-bar { background: #1c1c19; border-top-color: var(--line); }
:root[data-theme="dark"] .action-bar .ab-cta { color: #15150f; }
/* Top bar stays on one line: tighter pills now that there are carets and a WhatsApp icon */
@media (min-width: 1181px) {
  .nav { padding-left: 16px; }
  .nav-links { gap: 4px; }
  .nav-links .mm-top { padding: .5rem .7rem .5rem .8rem; white-space: nowrap; }
  .nav-links .mm-plain > .mm-top { padding-inline: .85rem; }
  .nav-links .btn { white-space: nowrap; padding: .6rem 1rem; }
  .nav-links > li.nav-wa { margin-left: 2px; }
}
@media (max-width: 1180px) { .nav-links .mm-plain > .mm-top { padding-inline: 4px; } }
