/* =============================================================================
   MotherSoft Solutions — site styles (no framework)
   Brand: deep navy/charcoal + white + electric violet→magenta (from the logo)
   ========================================================================== */

:root {
    --ink: #0a0c1d;
    --ink-2: #11142c;
    --ink-3: #1a1e3d;
    --indigo: #4533a1;
    --violet: #6c4cf1;
    --violet-soft: #8d74ff;
    --magenta: #c0189a;
    --grad: linear-gradient(120deg, #5a3fe6 0%, #8a3fd8 45%, #c0189a 100%);
    --grad-soft: linear-gradient(120deg, rgba(90, 63, 230, .12), rgba(192, 24, 154, .12));
    --bg: #ffffff;
    --tint: #f6f5fb;
    --tint-2: #eeecf7;
    --line: #e5e3ef;
    --text: #15162b;
    --muted: #5c5e78;
    --white: #ffffff;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 1px 2px rgba(16, 18, 48, .05), 0 8px 24px -12px rgba(16, 18, 48, .18);
    --shadow-lg: 0 24px 60px -24px rgba(32, 20, 90, .35);
    --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
    --font-body: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1200px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .container { padding-inline: 32px; } }
.narrow { max-width: 860px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 22px; border-radius: 12px;
    font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -0.005em;
    border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 10px 28px -12px rgba(108, 76, 241, .8); background-size: 140% 100%; background-position: 0 0; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -12px rgba(192, 24, 154, .7); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--text); }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: 0 12px 30px -12px rgba(255, 255, 255, .5); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--violet); }
.link-arrow .icon { transition: transform .2s ease; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---- Text helpers -------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow-light { color: #c9bfff; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.section-title-sm { font-size: clamp(22px, 2.6vw, 30px); }
.section-text, .lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); }
.lead { margin-bottom: 1.6em; }
.muted { color: var(--muted); }
.mini-title { font-size: 22px; margin-bottom: 14px; }
.fine-print { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.prose { color: var(--muted); }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose strong { color: var(--text); }
.prose-lg { font-size: 18px; }

.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-flush-top { padding-top: 24px; }
.section-tint { background: var(--tint); }
.section-dark { background: radial-gradient(1200px 500px at 80% -10%, rgba(108, 76, 241, .25), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(192, 24, 154, .18), transparent 60%), var(--ink); color: var(--white); overflow: hidden; }
.section-dark .section-text { color: rgba(255, 255, 255, .68); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.is-left { margin-left: 0; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head.is-left .eyebrow { justify-content: flex-start; }
.center-actions { margin-top: 40px; display: flex; justify-content: center; }

/* ---- Chips --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--tint-2); color: var(--text); font-size: 13.5px; font-weight: 500; }
.chips-sm li { padding: 4px 10px; font-size: 12.5px; }
.chips-light li { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .14); }

/* =============================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 18, 48, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand img { width: auto; height: 40px; }
@media (min-width: 1100px) { .brand img { height: 44px; } }
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #3a3c55; transition: color .2s, background-color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); background: var(--tint); }
.main-nav a.is-active { color: var(--violet); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
@media (min-width: 1140px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.has-menu { position: relative; }
.has-menu .icon-xs { transition: transform .2s; }
.has-menu.is-open .icon-xs { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; width: 640px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; padding: 10px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .mega, .has-menu.is-open .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.main-nav .mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; background: transparent; }
.main-nav .mega-item:hover { background: var(--tint); }
.mega-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--grad-soft); color: var(--violet); }
.mega-icon .icon { width: 19px; height: 19px; }
.mega-title { display: block; font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.mega-text { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.mega-all .mega-icon { background: var(--ink); color: var(--white); }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; padding: 16px 20px 32px; background: var(--white); border-top: 1px solid var(--line); }
.mobile-nav nav { display: grid; gap: 2px; margin-bottom: 20px; }
.mobile-nav nav > a { padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; }
.mobile-nav nav > a.is-active, .mobile-nav nav > a:hover { background: var(--tint); color: var(--violet); }
.mobile-sub { display: grid; gap: 2px; margin: 0 0 6px 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.mobile-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.mobile-sub a:hover { color: var(--violet); background: var(--tint); }
body.nav-open { overflow: hidden; }

/* =============================================================================
   Hero (home) + page hero
   ========================================================================== */
.hero, .page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); isolation: isolate; }
.hero { padding: clamp(56px, 8vw, 96px) 0 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.orb-a { width: 520px; height: 520px; right: -140px; top: -160px; background: #5a3fe6; }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -200px; background: #c0189a; opacity: .35; }
.hero-inner { display: grid; gap: 48px; align-items: center; padding-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero-title { font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 22px; }
.hero-title, .page-title { background: linear-gradient(180deg, #fff 30%, #cfc6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { max-width: 600px; font-size: clamp(16.5px, 1.7vw, 19px); color: rgba(255, 255, 255, .72); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-since { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 0 rgba(62, 230, 168, .6); animation: pulse 2.2s infinite; }
.eyebrow-light.reveal .pulse-dot { margin-right: 2px; }
.hero .eyebrow::before { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 230, 168, .55); } 70% { box-shadow: 0 0 0 10px rgba(62, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 168, 0); } }

/* Hero visual: glass console of the capability areas */
.hero-visual { position: relative; }
.console { position: relative; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.console-bar span:first-child { background: #ff6b8b; } .console-bar span:nth-child(2) { background: #ffc85a; } .console-bar span:nth-child(3) { background: #3ee6a8; }
.console-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .45); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.console-body { padding: 22px; display: grid; gap: 18px; }
.console-hub { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.console-hub img { width: 40px; height: auto; }
.console-hub span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.console-hub strong { color: var(--ink); font-family: var(--font-display); font-size: 17px; }
.console-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.console-tile:first-child { grid-column: span 2; }
@media (min-width: 480px) { .console-grid { grid-template-columns: repeat(4, 1fr); } }
.console-tile { display: flex; flex-direction: column; gap: 10px; padding: 13px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88); line-height: 1.3; animation: tile-in .7s both cubic-bezier(.2, .7, .2, 1); animation-delay: calc(.3s + var(--d)); }
.console-tile .icon { width: 22px; height: 22px; color: #c9bfff; }
.console-tile:first-child { background: var(--grad); border-color: transparent; color: var(--white); }
.console-tile:first-child .icon { color: var(--white); }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.console-lines { display: grid; gap: 8px; }
.console-lines span { display: block; height: 7px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, rgba(141, 116, 255, .55), rgba(192, 24, 154, .25)); transform-origin: left; animation: line-grow 1.6s ease both .8s; }
.console-lines span:nth-child(2) { animation-delay: 1s; } .console-lines span:nth-child(3) { animation-delay: 1.2s; }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.float-chip { position: absolute; display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-chip .icon { color: var(--violet); }
.chip-a { left: 28px; bottom: -30px; }
.chip-b { right: 28px; bottom: -30px; animation-delay: -3s; }
@media (min-width: 1000px) { .float-chip { display: inline-flex; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.capability-strip { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 22px; padding: 20px 22px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: rgba(255, 255, 255, .78); }
.marquee-track li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); }
@keyframes marquee { to { transform: translateX(-100%); } }

.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(48px, 7vw, 80px); }
.page-hero-row { display: flex; gap: 22px; align-items: flex-start; }
.page-hero-icon { display: none; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px; background: var(--grad); box-shadow: 0 18px 40px -16px rgba(192, 24, 154, .7); }
.page-hero-icon .icon { width: 34px; height: 34px; color: var(--white); }
@media (min-width: 720px) { .page-hero-icon { display: grid; } }
.page-title { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; max-width: 880px; }
.page-lead { max-width: 720px; font-size: clamp(16.5px, 1.7vw, 19px); color: rgba(255, 255, 255, .7); margin-bottom: 26px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: rgba(255, 255, 255, .85); }

/* =============================================================================
   Home sections
   ========================================================================== */
.about-split, .challenge-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about-split, .challenge-split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.about-card { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 76, 241, .55), transparent 70%); }
.about-date { position: relative; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.about-date-label { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #c9bfff; font-weight: 700; margin-bottom: 8px; }
.about-date strong { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.about-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.about-stats div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.about-stats dt { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.35); }
.about-stats dd { margin: 8px 0 0; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .7); }

/* Services grid: featured card spans two columns */
.service-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .service-grid { grid-template-columns: repeat(3, 1fr); } .service-card.is-featured { grid-column: span 2; } }
.service-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { opacity: 1; }
.service-card h3 { font-size: 21px; margin: 6px 0 0; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }
.service-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #c3c0d6; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--grad-soft); color: var(--violet); }
.service-icon .icon { width: 26px; height: 26px; }
.service-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.service-icon-lg .icon { width: 30px; height: 30px; }
.service-card.is-featured { background: var(--ink); color: var(--white); border-color: transparent; padding: 32px; min-height: 300px; }
.service-card.is-featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.service-card.is-featured p { color: rgba(255, 255, 255, .72); font-size: 16.5px; max-width: 520px; }
.service-card.is-featured .service-icon { background: var(--grad); color: var(--white); }
.service-card.is-featured .service-num { color: rgba(255, 255, 255, .35); }
.service-card.is-featured .link-arrow { color: #c9bfff; }
.service-card.is-featured .chips { margin-top: 6px; }
.featured-art { position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px; pointer-events: none; }
.featured-art span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(141, 116, 255, .35); animation: spin 30s linear infinite; }
.featured-art span:nth-child(2) { inset: 40px; border-style: dashed; border-color: rgba(192, 24, 154, .4); animation-duration: 22s; animation-direction: reverse; }
.featured-art span:nth-child(3) { inset: 90px; background: radial-gradient(circle, rgba(108, 76, 241, .5), transparent 70%); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.service-card.is-cta { background: var(--grad); color: var(--white); border-color: transparent; }
.service-card.is-cta p { color: rgba(255, 255, 255, .85); }
.service-card.is-cta .service-icon { background: rgba(255, 255, 255, .18); color: var(--white); }
.service-card.is-cta .link-arrow { color: var(--white); }

/* Technology map */
.tech-map { position: relative; margin: 0 auto; }
.orbit { position: relative; }
.orbit-core { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 22px; margin-bottom: 18px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
.core-mark { width: 38px; height: auto; padding: 8px; border-radius: 12px; background: var(--white); box-sizing: content-box; }
.core-info h3 { font-size: 22px; margin: 6px 0 6px; }
.core-info p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.orbit-nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .orbit-nodes { grid-template-columns: repeat(3, 1fr); } }
.node { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .86); font-size: 13.5px; font-weight: 600; text-align: left; line-height: 1.25; cursor: pointer; transition: background-color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.node:hover { border-color: rgba(201, 191, 255, .5); background: rgba(255, 255, 255, .08); }
.node.is-active { background: var(--grad); border-color: transparent; color: var(--white); box-shadow: 0 14px 30px -12px rgba(192, 24, 154, .7); }
.node-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.node.is-active .node-icon { background: rgba(255, 255, 255, .2); }
.node-icon .icon { width: 18px; height: 18px; }
@media (min-width: 980px) {
    .tech-map { width: 640px; height: 640px; }
    .orbit { position: absolute; inset: 0; }
    .orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
    .ring-1 { inset: 54px; border-style: dashed; border-color: rgba(141, 116, 255, .3); animation: spin 80s linear infinite; }
    .ring-2 { inset: 150px; border-color: rgba(192, 24, 154, .22); }
    .orbit-core { position: absolute; left: 50%; top: 50%; width: 270px; min-height: 230px; margin: 0; transform: translate(-50%, -50%); align-content: center; border-radius: 50%; padding: 34px; }
    .core-info h3 { font-size: 20px; }
    .core-info p { font-size: 14px; }
    .orbit-nodes { display: block; }
    .orbit-nodes li { position: absolute; left: 50%; top: 50%; --angle: calc(360deg / var(--n) * var(--i) - 90deg); transform: rotate(var(--angle)) translate(268px) rotate(calc(-1 * var(--angle))); }
    .node { flex-direction: column; justify-content: center; width: 104px; height: 104px; margin: -52px 0 0 -52px; padding: 10px; border-radius: 50%; text-align: center; gap: 6px; font-size: 11.5px; background: rgba(17, 20, 44, .85); backdrop-filter: blur(6px); }
    .node:hover { transform: scale(1.06); }
    .node.is-active { transform: scale(1.1); }
    .node-icon { width: 32px; height: 32px; }
}

/* Why MotherSoft pillars */
.pillars { display: grid; gap: 16px; counter-reset: p; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.pillar { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar h3 { font-size: 19px; margin: 6px 0 0; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pillar .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14px; }
.pillar-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--ink); color: #c9bfff; }
.pillar-plus { display: none; position: absolute; right: -16px; top: 46px; z-index: 2; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--grad); color: var(--white); font-weight: 700; font-size: 15px; line-height: 1; }
@media (min-width: 1100px) { .pillar-plus { display: grid; } .pillar:last-child .pillar-plus { display: none; } }

/* Industries */
.industry-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
.industry-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.industry-card h2, .industry-card h3 { font-size: 18px; margin: 2px 0 6px; }
.industry-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.industry-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--grad-soft); color: var(--violet); }
.industry-grid-lg .industry-card { padding: 26px; }
.mini-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13.5px; }
.mini-links a { color: var(--violet); font-weight: 600; }
.mini-links a:hover { text-decoration: underline; }

/* Projects & case format */
.project-grid, .post-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .project-grid, .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .project-grid, .post-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card, .post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.project-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-img, .post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-body, .post-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.project-body h3, .post-body h3 { font-size: 20px; margin: 0; }
.project-meta, .post-meta { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }
.flow { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.flow span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.project-body .link-arrow, .post-body .link-arrow { margin-top: auto; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-art { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--ink); color: #c9bfff; background-image: radial-gradient(circle at 70% 30%, rgba(108, 76, 241, .5), transparent 55%); }
.post-art .icon { width: 40px; height: 40px; }

.case-format { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--tint); border: 1px dashed #cfcbe3; }
.case-steps { display: grid; gap: 14px; }
@media (min-width: 760px) { .case-steps { grid-template-columns: repeat(4, 1fr); } }
.case-steps li { position: relative; display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.case-steps strong { font-family: var(--font-display); font-size: 18px; }
.case-steps li > span:last-child { font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { .case-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--grad); color: var(--white); font-size: 13px; } }
.case-step-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--ink); color: #c9bfff; }
.case-note { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 760px) { .case-note { flex-direction: row; align-items: center; } }
.case-note p { margin: 0; max-width: 640px; color: var(--muted); }
.case-note strong { color: var(--text); }
.case-hero-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 40px; box-shadow: var(--shadow-lg); }
.case-flow { display: grid; gap: 18px; margin-bottom: 32px; }
.case-flow li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.case-flow h2 { font-size: 22px; }

/* Testimonials */
.testimonial-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.quote-icon { width: 30px; height: 30px; color: var(--violet); margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 17px; }
.testimonial figcaption span { display: block; font-size: 14px; color: var(--muted); }

/* Careers band */
.careers-band { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line); background-image: radial-gradient(600px 240px at 100% 0%, rgba(108, 76, 241, .14), transparent 70%); }
@media (min-width: 860px) { .careers-band { grid-template-columns: 1fr auto; } }
.careers-band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.careers-band p:last-child { margin: 0; color: var(--muted); max-width: 620px; }
.careers-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.openings-count { font-size: 14.5px; color: var(--muted); }
.openings-count strong { font-family: var(--font-display); font-size: 26px; color: var(--text); margin-right: 4px; }

/* CTA band */
.cta-band { padding: 0 0 clamp(64px, 8vw, 104px); }
.section + .cta-band, .section-tint + .cta-band { padding-top: clamp(16px, 3vw, 24px); }
.cta-card { position: relative; display: grid; gap: 26px; align-items: center; padding: clamp(32px, 6vw, 64px); border-radius: 30px; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 0% 0%, rgba(108, 76, 241, .55), transparent 70%), radial-gradient(600px 320px at 100% 100%, rgba(192, 24, 154, .45), transparent 70%); }
.cta-lines { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1fr auto; } }
.cta-copy h2 { font-size: clamp(26px, 3.6vw, 42px); max-width: 720px; }
.cta-copy p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =============================================================================
   Inner pages
   ========================================================================== */
.story-card, .overview-card { padding: 32px; border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line); }
.overview-card p:last-child { margin-bottom: 0; }
.overview-card > p:not(.eyebrow):not(.note) { font-size: 17px; }
.story-date { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 18px; }
.story-date .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--grad); color: var(--white); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.note .icon { color: var(--violet); margin-top: 2px; }

.capability-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .capability-list { grid-template-columns: repeat(2, 1fr); } }
.capability-item { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.capability-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d7d1f3; }
.capability-num { font-family: var(--font-display); font-weight: 700; color: #c3c0d6; min-width: 24px; }
.capability-text { display: grid; gap: 2px; flex: 1; }
.capability-text strong { font-family: var(--font-display); font-size: 17px; }
.capability-text span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.capability-arrow { color: var(--violet); transition: transform .2s; }
.capability-item:hover .capability-arrow { transform: translate(2px, -2px); }

.vmv-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .vmv-grid { grid-template-columns: repeat(3, 1fr); } }
.vmv-card { display: grid; align-content: start; gap: 12px; padding: 30px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.vmv-card h3 { font-size: 22px; margin: 6px 0 0; }
.vmv-card p { margin: 0; color: var(--muted); }
.vmv-card.is-dark { background: var(--ink); color: var(--white); border-color: transparent; }
.vmv-card.is-dark .service-icon { background: var(--grad); color: var(--white); }

.approach { display: grid; gap: 14px; counter-reset: a; }
@media (min-width: 680px) { .approach { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .approach { grid-template-columns: repeat(5, 1fr); position: relative; } .approach::before { content: ""; position: absolute; left: 10%; right: 10%; top: 35px; height: 2px; background: linear-gradient(90deg, rgba(108, 76, 241, .1), rgba(108, 76, 241, .6), rgba(192, 24, 154, .6), rgba(192, 24, 154, .1)); } }
.approach-step { position: relative; text-align: left; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
@media (min-width: 1050px) { .approach-step { text-align: center; background: transparent; border: 0; padding: 0 10px; } }
.approach-icon { position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 16px; border-radius: 22px; background: var(--ink); color: #c9bfff; box-shadow: 0 14px 30px -16px rgba(16, 18, 48, .6); }
@media (min-width: 1050px) { .approach-icon { margin-inline: auto; } }
.approach-icon .icon { width: 28px; height: 28px; }
.approach-icon em { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: var(--white); font-style: normal; font-size: 12px; font-weight: 700; }
.approach-step h3 { font-size: 19px; margin-bottom: 6px; }
.approach-step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.section-dark .approach-step { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
@media (min-width: 1050px) { .section-dark .approach-step { background: transparent; } }
.section-dark .approach-icon { background: var(--grad); color: var(--white); }
.section-dark .approach-icon em { background: var(--white); color: var(--ink); }
.section-dark .approach-step p { color: rgba(255, 255, 255, .65); }

.service-list { display: grid; gap: 16px; }
.service-row { display: grid; gap: 18px; padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); scroll-margin-top: 100px; transition: box-shadow .3s, border-color .3s; }
.service-row:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
@media (min-width: 900px) { .service-row { grid-template-columns: 110px 1fr auto; align-items: center; padding: 30px 34px; } }
.service-row-head { position: relative; display: flex; align-items: center; gap: 14px; }
@media (min-width: 900px) { .service-row-head { flex-direction: column; align-items: flex-start; } }
.service-row .service-num { position: static; font-size: 16px; }
.service-row h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.service-row h2 a:hover { color: var(--violet); }
.service-row-tagline { color: var(--muted); margin-bottom: 14px; }

.module-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }
.module-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 140px; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.module-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(.18); transform-origin: left; transition: transform .4s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module-card:hover::before { transform: scaleX(1); }
.module-num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--violet); }
.module-card h3 { font-size: 18px; margin: 0; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.pill-list .icon { color: var(--violet); }
.deliverables { display: grid; gap: 28px; }
@media (min-width: 900px) { .deliverables { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.check-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--grad); color: var(--white); stroke-width: 3; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--violet); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--muted); }

.other-services { display: grid; gap: 10px; }
@media (min-width: 640px) { .other-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .other-services { grid-template-columns: repeat(3, 1fr); } }
.other-service { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: border-color .2s, color .2s, background-color .2s; }
.other-service > .icon:first-child { color: var(--violet); }
.other-service span { flex: 1; }
.other-service:hover { border-color: var(--violet); color: var(--violet); background: var(--tint); }

.tech-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tech-card h3 { font-size: 19px; margin: 6px 0 0; }
.tech-card p { margin: 0; color: var(--muted); font-size: 15px; }

.culture-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .culture-grid { grid-template-columns: repeat(3, 1fr); } }
.culture-card { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.culture-card h3 { margin: 6px 0 0; font-size: 20px; }
.culture-card p { margin: 0; color: var(--muted); }
.job-list { display: grid; gap: 12px; }
.job-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.job-row:hover { box-shadow: var(--shadow); border-color: #d7d1f3; }
.job-row h3 { font-size: 20px; margin: 0 0 6px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.job-meta span { padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; color: var(--muted); }
.job-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .job-layout { grid-template-columns: 1fr 440px; } }
.job-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.job-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--tint); font-size: 14.5px; }
.job-facts .icon { color: var(--violet); }
.apply-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .apply-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.apply-card .form-grid { grid-template-columns: 1fr; }

.team-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-align: center; }
.team-card img, .team-initials { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
.team-initials { display: grid; place-items: center; background: var(--grad); color: var(--white); font-family: var(--font-display); font-size: 40px; font-weight: 700; }
.team-card h3 { font-size: 20px; margin-bottom: 2px; }
.team-role { color: var(--violet); font-weight: 600; font-size: 14.5px; }
.team-card p:last-of-type { color: var(--muted); font-size: 14.5px; }
.team-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--violet); }

.empty-state { display: grid; justify-items: center; gap: 10px; max-width: 620px; margin: 0 auto; padding: clamp(32px, 6vw, 56px) 24px; text-align: center; border-radius: var(--radius-lg); background: var(--tint); border: 1px dashed #cfcbe3; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 20px; background: var(--grad); color: var(--white); }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h3 { font-size: 22px; margin: 0; }
.empty-state p { margin: 0 0 8px; color: var(--muted); }

/* =============================================================================
   Forms
   ========================================================================== */
.contact-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1fr 380px; gap: 36px; } }
.contact-form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.contact-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.next-steps, .contact-info { padding: 28px; border-radius: var(--radius-lg); }
.next-steps { background: var(--ink); color: var(--white); background-image: radial-gradient(400px 200px at 100% 0%, rgba(108, 76, 241, .45), transparent 70%); }
.next-steps ol { display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.next-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); font-weight: 700; font-size: 14px; }
.next-steps strong { display: block; margin-bottom: 2px; }
.next-steps p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.contact-info { background: var(--tint); border: 1px solid var(--line); }
.contact-info ul { display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .icon { color: var(--violet); margin-top: 2px; }
.contact-info a:hover { color: var(--violet); }

.form { display: grid; gap: 22px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label span[aria-hidden], .field .label span[aria-hidden] { color: var(--magenta); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
    font-size: 15.5px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5e78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108, 76, 241, .15); }
.field ::placeholder { color: #9a9bb2; }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea, .has-error .file-drop { border-color: #d6336c !important; }
.field-error { margin: 0; font-size: 13.5px; color: #c2255c; font-weight: 500; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--violet); }
.check a { color: var(--violet); text-decoration: underline; }
.file-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: 14px; border: 1.5px dashed #cfcbe3; background: var(--tint); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--violet); background: #f0edfc; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop input:focus-visible + .icon { outline: 3px solid var(--violet-soft); border-radius: 8px; }
.file-drop .icon { color: var(--violet); }
.file-drop span { font-weight: 600; font-size: 14.5px; }
.file-drop small { color: var(--muted); font-size: 12.5px; }
.file-drop.has-file { border-style: solid; border-color: var(--violet); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.alert-error { background: #fff0f4; color: #a61e4d; border: 1px solid #ffc9d6; }
.btn[disabled] { opacity: .7; pointer-events: none; }

.thank-you { min-height: 60vh; display: grid; align-items: center; background: var(--tint); }
.thank-card { padding: clamp(32px, 6vw, 56px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; }
.thank-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: var(--grad); color: var(--white); }
.thank-icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.thank-card h1 { font-size: clamp(26px, 3.6vw, 38px); }
.thank-card p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.ref { font-size: 15px; }
.ref strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.error-page { min-height: 62vh; display: grid; align-items: center; text-align: center; background: var(--ink); color: var(--white); overflow: hidden; }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 160px); font-weight: 700; line-height: 1; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { color: rgba(255, 255, 255, .7); }
.error-page .btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }

/* =============================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 80px); }
.footer-glow { position: absolute; left: 50%; top: -260px; width: 900px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(108, 76, 241, .28), transparent 65%); pointer-events: none; }
.footer-top { position: relative; display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.4fr 1.2fr .8fr 1fr; gap: 48px; } }
.footer-logo { display: inline-block; padding: 12px 16px; border-radius: 14px; background: var(--white); }
.footer-logo img { height: 36px; width: auto; }
.footer-tagline { margin: 18px 0 4px; font-family: var(--font-display); font-size: 17px; color: var(--white); }
.footer-since { font-size: 14px; color: rgba(255, 255, 255, .5); }
.footer-heading { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact { margin-bottom: 18px; }
.footer-note { font-size: 15px; margin-bottom: 18px; max-width: 280px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.footer-contact .icon { margin-top: 3px; color: #c9bfff; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--white); transition: background-color .2s; }
.socials a:hover { background: var(--violet); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--white); }

/* =============================================================================
   Motion: scroll reveal (only when JS is on; respects reduced motion)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
