/* ==========================================================================
   MyGenie design system v3 (2026-11) — loaded last on every page.
   Principles: restraint (ink + white, violet as accent, green only for Care),
   one rhythm for space, one family for type, one style for icons,
   one ending per page, an information-only footer.
   ========================================================================== */

/* ---------- 1. Fonts: Satoshi, self-hosted (Indian Type Foundry, Fontshare FFL) ---------- */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- 2. Tokens ---------- */
:root {
  --font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);

  --ink: #120d24;          /* dark surfaces */
  --ink-2: #1c1636;
  --text: #17122b;         /* body text on light */
  --muted: #615b77;
  --line: #e8e5f0;
  --paper: #f7f6fb;        /* light alternate surface */

  --violet: #904bff;       /* brand accent */
  --violet-deep: #6a2ee0;
  --violet-soft: #c1a6ff;
  --violet-tint: #f3eeff;

  --care: #12b886;         /* MyGenie Care only */
  --care-strong: #0b9a6f;
  --care-light: #4fdcae;
  --care-tint: #e8faf3;
  --signal: #ffc93c;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --pill: 999px;
  --shadow: 0 1px 2px rgba(18,13,36,0.05), 0 16px 40px -24px rgba(18,13,36,0.28);

  --space-section: 72px;
  --space-head: 40px;
}
@media (max-width: 767px) { :root { --space-section: 52px; --space-head: 28px; } }

/* ---------- 3. Type ---------- */
html { scroll-padding-top: 96px; }
body { font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.6; font-feature-settings: "ss01" on; }
h1, h2, h3, h4, .title, .font-display, .stat-value, .gallery-brand, .founder-name, .funding-number, .funding-cr,
.care-tile h3, .why-item h3, .step h3, .path h3, .ticket-title, .vs-new .big, .svc-float strong {
  font-family: var(--font) !important; font-weight: 700;
}
.title { color: var(--text); line-height: 1.08; }
.title-white { color: #fff; }
.title-hero { line-height: 1.04; }
.title-xl { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.title-lg { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.title-md { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.subtitle { color: var(--muted); font-size: 16px; line-height: 1.65; }
.subtitle-lg { font-size: 18px; }
.subtitle-white { color: rgba(255,255,255,0.72); }
.stat-value, .funding-number, [data-count-to] { font-variant-numeric: tabular-nums; }

/* Natural case and tracking everywhere (the old site shouted in caps); headings tighter */
:where(body *:not(.tag)) { text-transform: none !important; letter-spacing: normal !important; }
h1, h2, h3, .title, .stat-value, .care-tile h3, .why-item h3, .step h3, .path h3, .ticket-title, .gallery-brand, .svc-float strong { letter-spacing: -0.025em !important; }
.title-hero, .hero h1 { letter-spacing: -0.035em !important; }

/* Eyebrow label: small, uppercase, tracked, accent colour — one consistent style */
.label {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px !important; font-weight: 700; line-height: 1.4;
  text-transform: uppercase !important; letter-spacing: 0.14em !important;
  color: var(--violet-deep);
}
.label::before { content: none !important; }
.label-blue, .label-blue2 { color: var(--violet-deep); }
.section-dark .label, .hero .label, .care-contact .label, .closing-panel .label, .footer .label { color: var(--violet-soft); }
.label-care, .section-dark .label-care, .hero .label-care, .care-contact .label-care, .closing-panel .label-care { color: var(--care-light); }
.label-care-dark { color: var(--care-strong); }

/* Headlines are one solid colour: no gradients, no single highlighted phrase */
.hero .title-hero .grad, .hero .title-hero span, .hero h1 span {
  background: none !important; -webkit-text-fill-color: currentColor; color: rgba(255,255,255,0.62) !important;
}
@media (min-width: 768px) { .hero-home .title-hero .grad { display: block; } }

/* Decorative hairlines under headings: removed everywhere */
.line, .line-gradient, .line-care { display: none !important; }

/* ---------- 4. Space: one rhythm ---------- */
.container { max-width: 1240px; }
.section { padding: var(--space-section) 0 !important; }
.mb-16, .mb-12 { margin-bottom: var(--space-head) !important; }
.mt-16 { margin-top: var(--space-head); }
.section > .container > .text-center:is(.mb-16, .mb-12) .title { margin-bottom: 0 !important; }
.section > .container > .text-center:is(.mb-16, .mb-12) .subtitle { margin-top: 12px !important; }
.hero-fade { display: none; }
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Editorial section heads on Home and Care pages (title left, supporting line right) */
.layout-v2 .section > .container > .text-center:is(.mb-16, .mb-12),
.layout-v2 .section > .container.relative > .text-center:is(.mb-16, .mb-12) { text-align: left; display: grid; gap: 0 64px; align-items: end; }
@media (min-width: 1024px) {
  .layout-v2 .section > .container > .text-center:is(.mb-16, .mb-12):has(.subtitle),
  .layout-v2 .section > .container.relative > .text-center:is(.mb-16, .mb-12):has(.subtitle) { grid-template-columns: 1.1fr 1fr; }
  .layout-v2 .section > .container .text-center:is(.mb-16, .mb-12) > .label { grid-column: 1 / -1; justify-self: start; }
  .layout-v2 .section > .container .text-center:is(.mb-16, .mb-12) > .title { grid-column: 1; max-width: 18ch; }
  .layout-v2 .section > .container .text-center:is(.mb-16, .mb-12) > .subtitle { grid-column: 2; margin: 0 !important; max-width: 52ch; }
}
.layout-v2 .section > .container .text-center:is(.mb-16, .mb-12) > .subtitle { margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- 5. Surfaces ---------- */
body { background: #fff; }
.section-slate { background: var(--paper); }
.section-dark, .hero-dark {
  background: radial-gradient(70% 90% at 50% 0%, #2a1c5c 0%, var(--ink) 60%) !important;
}
.tech-grid { opacity: 0.035 !important; }
.hero-overlay { background: linear-gradient(180deg, rgba(18,13,36,0.80) 0%, rgba(18,13,36,0.62) 45%, rgba(18,13,36,0.90) 100%); }

/* ---------- 6. Buttons: pill, one primary per block ---------- */
.btn, .nav-raise, .nav-start, .nav-brochure, .fx-btn, .filter-btn {
  border-radius: var(--pill) !important; font-family: var(--font); font-weight: 700 !important; font-size: 15px;
  text-transform: none !important; letter-spacing: 0 !important; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn { padding: 12px 22px; }
.btn-lg { padding: 14px 26px; }
.btn svg { width: 15px; height: 15px; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-outline { border: 1px solid rgba(255,255,255,0.32); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-outline-dark { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-outline-dark:hover { border-color: var(--text); }
.btn-care { background: var(--care); color: #fff; box-shadow: none !important; }
.btn-care:hover { background: var(--care-strong); }
.btn-care-outline { border: 1px solid rgba(79,220,174,0.55); color: #e6fbf3; }
.btn-care-outline-dark { border: 1px solid #a9ead4; color: var(--care-strong); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet-deep); }
.text-link::after { content: "→"; transition: transform 0.2s; }
.text-link:hover::after { transform: translateX(3px); }
.text-link.on-dark { color: #fff; }
.text-link.care { color: var(--care-strong); }
.text-link.care.on-dark { color: var(--care-light); }
.filter-btn { font-size: 13px; padding: 8px 16px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- 7. Icons: one quiet style ---------- */
/* Thin, single-colour line icons in a neutral outlined tile (no tinted blobs). */
.card-icon, .care-icon, .contact-info-icon, .office-icon, .workforce-icon, .build-card > .card-icon {
  width: 44px !important; height: 44px !important; border-radius: 12px !important;
  background: #fff !important; border: 1px solid var(--line); box-shadow: none !important;
}
.card-icon svg, .care-icon svg, .contact-info-icon svg, .office-icon svg, .workforce-icon svg {
  width: 20px !important; height: 20px !important; stroke: var(--violet-deep) !important; stroke-width: 1.6 !important;
}
.care-icon svg, .care-tile .care-icon svg { stroke: var(--care-strong) !important; color: var(--care-strong) !important; }
.section-dark .card-icon, .section-dark .care-icon, .section-dark .office-icon, .why-item .care-icon, .hero .card-icon, .care-contact .care-icon {
  background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.12);
}
.section-dark .card-icon svg, .section-dark .office-icon svg { stroke: var(--violet-soft) !important; }
.why-item .care-icon svg, .section-dark .care-icon svg { stroke: var(--care-light) !important; color: var(--care-light) !important; }
.check-icon { stroke-width: 1.8 !important; }

/* ---------- 8. Cards: content-fit, one radius, one hover ---------- */
.card, .build-card, .care-tile, .contact-info-card, .office-card, .workforce-item, .reduction-item, .feature-card, .insight-card, .why-item {
  border-radius: var(--r-md) !important; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.card:hover, .build-card:hover, .care-tile:hover, .contact-info-card:hover { border-color: #d6cdee; box-shadow: var(--shadow); transform: none; }
.care-tile { padding: 26px; border-color: var(--line); }
.care-tile:hover { border-color: #b9ecd9; }
.contact-info-card { padding: 26px; border-color: var(--line); }
.office-card { padding: 28px; border-color: rgba(255,255,255,0.1); }
.why-item { padding: 24px; }
.card-dark, .insight-card, .feature-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }

/* ---------- 9. Stats: compact strips, not big empty boxes ---------- */
.stat-value { color: #fff; font-weight: 700; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.62); }
.stat-sub { font-size: 12px; color: rgba(255,255,255,0.5); }
.stat-grid { border-radius: var(--r-md); background: rgba(255,255,255,0.12); }
.stat-box-dark { background: rgba(18,13,36,0.66); }

[data-testid="section-impact-stats"] .grid-3 { gap: 0 !important; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg); overflow: hidden; }
[data-testid="section-impact-stats"] .stat-box-dark2 {
  background: transparent !important; padding: 32px 28px !important; border-radius: 0 !important; text-align: left !important;
  border-right: 1px solid rgba(255,255,255,0.1);
}
[data-testid="section-impact-stats"] .stat-box-dark2:last-child { border-right: 0; }
@media (max-width: 767px) { [data-testid="section-impact-stats"] .stat-box-dark2 { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); } }
[data-testid="section-impact-stats"] .stat-value { font-size: clamp(2.6rem, 4vw, 3.4rem) !important; color: #fff !important; line-height: 1; }
[data-testid="section-impact-stats"] .stat-value[style*="34d399"] { color: var(--care-light) !important; }
[data-testid="section-impact-stats"] .stat-label { font-size: 15px; color: rgba(255,255,255,0.8); margin-top: 10px; }

/* ---------- 10. Top ribbon (Home only) ---------- */
.ribbon { position: relative; z-index: 101; background: var(--ink); color: #e4defa; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ribbon-inner { max-width: 1240px; margin: 0 auto; padding: 9px 48px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.ribbon b { color: #fff; font-weight: 700; }
.ribbon .tag { background: var(--signal); color: var(--ink); font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.ribbon a { color: var(--care-light); font-weight: 700; white-space: nowrap; }
.ribbon a:hover { color: #fff; }
.ribbon-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); padding: 6px; line-height: 0; }
.ribbon-close:hover { color: #fff; }
.ribbon-close svg { width: 14px; height: 14px; }
body.ribbon-hidden .ribbon { display: none; }
@media (max-width: 640px) { .ribbon-inner { font-size: 13px; padding: 8px 40px 8px 16px; justify-content: flex-start; text-align: left; } .ribbon .hide-sm { display: none; } }

/* ---------- 11. Header ---------- */
.nav { position: sticky; top: 0; background: transparent; border-bottom: 1px solid transparent; transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.nav ~ section.hero { margin-top: -80px; }
@media (max-width: 1023px) { .nav ~ section.hero { margin-top: -64px; } }
.nav.scrolled { background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(18,13,36,0.22); }
.nav-inner { max-width: 1360px; gap: 24px; }
.nav-logo { display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto !important; max-width: none; }
.nav-logo .logo-ink { display: none; }
.nav.scrolled .nav-logo .logo-white { display: none; }
.nav.scrolled .nav-logo .logo-ink { display: block; }
.nav-links { flex: 1 1 auto; justify-content: center; gap: 2px; min-width: 0; }
.nav-links a, .nav-dd-btn { font-size: 15px !important; font-weight: 500; color: rgba(255,255,255,0.84); padding: 8px 13px; }
.nav-links a:hover, .nav-dd-btn:hover, .nav-links > a.active { color: #fff; }
.nav.scrolled .nav-links > a, .nav.scrolled .nav-dd-btn { color: var(--text); }
.nav.scrolled .nav-links > a:hover, .nav.scrolled .nav-links > a.active, .nav.scrolled .nav-dd-btn:hover { color: var(--violet-deep); }
.nav.scrolled .nav-dd.care .nav-dd-btn.active, .nav.scrolled .nav-dd.care:hover .nav-dd-btn { color: var(--care-strong); }
.nav.scrolled .burger { color: var(--text); }
.nav-actions { flex-shrink: 0; gap: 10px; }
.nav-actions .nav-raise, .nav-actions .nav-start { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.nav-start { background: var(--violet); color: #fff; }
.nav-start:hover { background: var(--violet-deep); }
.nav-raise { background: var(--care); color: #fff; }
.nav-raise:hover { background: var(--care-strong); }
.nav-raise svg { width: 15px; height: 15px; }
.nav-actions .nav-secondary { background: transparent !important; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 0 15px; }
.nav-actions .nav-raise.nav-secondary { color: #d6fbec; border-color: rgba(79,220,174,0.5); }
.nav-actions .nav-raise.nav-secondary:hover { background: rgba(18,184,134,0.14) !important; }
.nav-actions .nav-start.nav-secondary:hover { background: rgba(144,75,255,0.18) !important; }
.nav.scrolled .nav-actions .nav-raise.nav-secondary { color: var(--care-strong); border-color: #a9ead4; }
.nav.scrolled .nav-actions .nav-start.nav-secondary { color: var(--violet-deep); border-color: #d6cdee; }
.nav-actions .nav-brochure { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.22); color: #fff; }
.nav-actions .nav-brochure svg { width: 17px; height: 17px; }
.nav.scrolled .nav-actions .nav-brochure { color: var(--text); border-color: var(--line); }
@media (min-width: 1024px) and (max-width: 1319px) { .nav-inner { gap: 14px; } .nav-links a, .nav-dd-btn { padding: 8px 10px !important; } }
@media (min-width: 1024px) and (max-width: 1199px) { .nav-links a, .nav-dd-btn { padding: 8px 8px !important; font-size: 14px !important; } .nav-actions .nav-brochure { display: none; } .nav-actions .nav-secondary { padding: 0 11px; } }

.nav-dd-menu { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 30px 60px -24px rgba(18,13,36,0.35); padding: 8px; min-width: 300px; }
.nav-links .nav-dd-menu a { color: var(--text); font-weight: 700; font-size: 15px; border-radius: var(--r-sm); padding: 10px 12px; }
.nav-links .nav-dd-menu a small { color: var(--muted); font-weight: 400; font-size: 13px; }
.nav-links .nav-dd-menu a:hover { background: var(--violet-tint); color: var(--violet-deep); }
.nav-dd.care .nav-dd-menu a:hover, .nav-dd.care .nav-dd-menu a.active { background: var(--care-tint); color: var(--care-strong); }
.nav-dd-menu .dd-head { color: var(--care-strong); font-size: 12px; font-weight: 700; text-transform: uppercase !important; letter-spacing: 0.12em !important; }

.mobile-panel { background: #fff; border-left: 1px solid var(--line); }
.mobile-panel a { color: var(--text); font-weight: 500; }
.mobile-panel a:hover, .mobile-panel a.active { color: var(--violet-deep); }
.mobile-group { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase !important; letter-spacing: 0.12em !important; }
.mobile-group.care { color: var(--care-strong); }
.mobile-divider { border-top-color: var(--line); }
.care-fab a { border-radius: var(--pill); }
.care-fab .fab-start { flex: 2.2; background: var(--violet); color: #fff; }
.care-fab .fab-half { flex: 1.6; }

/* ---------- 12. Heroes: sized to their content ---------- */
.hero { min-height: 0 !important; }
.hero-short, .hero-shorter { min-height: 0 !important; }
.hero-content { padding: 152px 24px 72px !important; }
@media (max-width: 1023px) { .hero-content { padding: 128px 20px 56px !important; } }
.hero-dark {
  background:
    radial-gradient(55% 110% at 50% 0%, rgba(144,75,255,0.30) 0%, rgba(144,75,255,0) 65%),
    linear-gradient(180deg, #1a1338 0%, var(--ink) 100%) !important;
}
.layout-v2 .hero-dark .hero-content.center { text-align: left; max-width: 1240px !important; width: 100%; margin: 0 auto; }
.layout-v2 .hero-dark .hero-content.center .subtitle { margin-left: 0 !important; }
/* Care page heroes */
.hero-split { padding: 140px 24px 72px !important; }
@media (min-width: 1024px) { .hero-split { padding: 150px 40px 80px !important; } }
.crumb { display: flex; width: max-content; max-width: 100%; flex-wrap: wrap; }

/* Home hero */
.hero-home { min-height: clamp(620px, 84vh, 820px) !important; align-items: flex-end; }
.hero-home .hero-overlay {
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(144,75,255,0.38) 0%, rgba(144,75,255,0) 60%),
    linear-gradient(90deg, rgba(18,13,36,0.92) 0%, rgba(18,13,36,0.70) 48%, rgba(18,13,36,0.30) 100%),
    linear-gradient(180deg, rgba(18,13,36,0.45) 0%, rgba(18,13,36,0) 30%, rgba(18,13,36,0.85) 100%);
}
.hero-home .hero-content { text-align: left; margin: 0 auto; max-width: 1240px !important; width: 100%; padding: 150px 24px 56px !important; }
@media (min-width: 1024px) { .hero-home .hero-content { padding: 160px 40px 64px !important; } }
.hero-home .title-hero { font-size: clamp(2.6rem, 5.4vw, 4.8rem); max-width: 22ch; }
.hero-home .subtitle { margin-left: 0 !important; max-width: 48ch !important; color: rgba(255,255,255,0.78) !important; }
.hero-home .hero-ctas { justify-content: flex-start !important; }
.hero-home .stat-grid { margin-top: 40px; max-width: 860px; }
.hero-home .stat-box { text-align: left; padding: 18px 22px; }
.hero-home .stat-value { font-size: 2.2rem; }
.hero-home .stat-value.care-num { color: var(--care-light); }

/* ---------- 13. Home: logo strip right under the hero ---------- */
.logo-strip { padding: 36px 0 32px; border-bottom: 1px solid var(--line); background: #fff; }
.logo-strip .strip-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase !important; letter-spacing: 0.14em !important; margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: mq 70s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand-cell { background: none !important; border: 0 !important; padding: 0 !important; width: auto; height: auto; flex-shrink: 0; }
.marquee .brand-logo { width: 112px; height: 40px; margin: 0; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: filter 0.25s, opacity 0.25s; }
.marquee .brand-cell:hover .brand-logo { filter: none; opacity: 1; }
.marquee .brand-name { display: none; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } }

/* ---------- 14. Home: two paths ---------- */
.paths { gap: 20px; }
.path { min-height: 400px; border-radius: var(--r-lg); padding: 32px; }
.path h3 { font-size: 2rem; }
.path-q { font-size: 12px !important; font-weight: 700; text-transform: uppercase !important; letter-spacing: 0.14em !important; }
.path p { font-size: 15px; margin: 10px 0 22px; }

/* ---------- 15. Closing blocks (one per page) ---------- */
.closing { padding: var(--space-section) 0 !important; background: #fff; }
.closing-panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px; color: #fff;
  background: radial-gradient(70% 120% at 100% 0%, rgba(144,75,255,0.45) 0%, rgba(144,75,255,0) 60%), var(--ink);
}
.closing-panel.care { background: radial-gradient(70% 120% at 100% 0%, rgba(18,184,134,0.35) 0%, rgba(18,184,134,0) 60%), var(--ink); }
@media (max-width: 767px) { .closing-panel { padding: 40px 24px; border-radius: 22px; } }
.closing-panel h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
.closing-panel p.lead { color: rgba(255,255,255,0.74); font-size: 17px; max-width: 56ch; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.closing-contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.7); }
.closing-contacts a { color: rgba(255,255,255,0.86); }
.closing-contacts a:hover { color: #fff; }
.closing-cross { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 15px; color: rgba(255,255,255,0.7); }
.closing-cross a { margin-left: 6px; }
/* Home: two equal choices */
.choice-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { border-radius: var(--r-lg); padding: 40px 36px; color: #fff; display: flex; flex-direction: column; }
.choice.fit { background: radial-gradient(80% 120% at 100% 0%, rgba(144,75,255,0.45) 0%, rgba(144,75,255,0) 60%), var(--ink); }
.choice.care { background: radial-gradient(80% 120% at 100% 0%, rgba(18,184,134,0.36) 0%, rgba(18,184,134,0) 60%), var(--ink); }
.choice h3 { color: #fff; font-size: 1.9rem; line-height: 1.12; margin: 0 0 10px; }
.choice p { color: rgba(255,255,255,0.74); font-size: 16px; }
.choice .closing-actions { margin-top: auto; padding-top: 28px; }
.closing-head { text-align: center; margin-bottom: var(--space-head); }

/* Care contact block now sits as a panel inside a light section (no dark-on-dark stacks) */
.care-contact { background: #fff !important; color: var(--text); padding: var(--space-section) 0 !important; }
.care-contact > .container { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px !important; color: #e8e4f5;
  background: radial-gradient(70% 120% at 100% 0%, rgba(18,184,134,0.32) 0%, rgba(18,184,134,0) 60%), var(--ink); max-width: 1240px; }
@media (max-width: 767px) { .care-contact > .container { padding: 40px 22px !important; border-radius: 22px; margin: 0 16px; } }
.care-contact .title { color: #fff; }
.cc-way { border-radius: var(--r-md) !important; }
.cc-send { border-radius: var(--r-md) !important; }
.cc-cross { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 15px; color: rgba(255,255,255,0.72); }
.cc-cross a { margin-left: 6px; }

/* ---------- 16. Footer: information only ---------- */
.footer-v3 { position: relative; overflow: hidden; background: var(--ink); color: #b3adc9; padding: 64px 0 0; }
.footer-v3 .container { position: relative; z-index: 2; }
.f-grid { display: grid; gap: 36px 28px; grid-template-columns: 1fr 1fr; padding-bottom: 40px; }
@media (min-width: 1024px) { .f-grid { grid-template-columns: 1.35fr 1fr 1.1fr 0.9fr 1.35fr; } }
.f-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .f-brand { grid-column: auto; } }
.f-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.f-brand p { font-size: 14px; line-height: 1.7; max-width: 34ch; color: #a49fbb; }
.f-brand .f-tag { margin-top: 12px; color: #fff; font-weight: 700; font-size: 14px; }
.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col h4 { font-size: 12px !important; font-weight: 700; color: #fff; text-transform: uppercase !important; letter-spacing: 0.14em !important; margin-bottom: 6px; }
.f-col h4.care { color: var(--care-light); }
.f-col a { font-size: 14px; color: #b3adc9; }
.f-col a:hover { color: #fff; }
.f-col .f-sub { font-size: 12px; color: #7f7999; margin-top: 8px; }
.f-col .f-sub:first-of-type { margin-top: 0; }
.f-where { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #8f89a8; }
.f-where b { color: #d9d4ea; font-weight: 500; }
.f-legal { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0 120px; display: grid; gap: 4px; font-size: 12.5px; color: #7f7999; line-height: 1.6; }
.f-legal a { color: #b3adc9; }
.f-legal a:hover { color: #fff; }
.f-watermark { position: absolute; left: 50%; bottom: -2.4vw; transform: translateX(-50%); width: min(1180px, 90vw); opacity: 0.04; pointer-events: none; z-index: 1; }
@media (max-width: 1023px) { body.has-fab .f-legal { padding-bottom: 150px; } }

/* ---------- 17. Page specifics ---------- */
/* Design & Build */
.svc-journey { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 28px; padding: 5px; border-radius: var(--pill); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px); }
.svc-journey a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: var(--pill); color: #fff; font-weight: 700; font-size: 15px; }
.svc-journey a span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); font-size: 13px; }
.svc-journey a:hover { background: rgba(255,255,255,0.1); }
.svc-journey a:hover span { background: var(--violet); }
.svc-hero .hero-overlay { background: linear-gradient(180deg, rgba(18,13,36,0.84) 0%, rgba(18,13,36,0.70) 50%, rgba(18,13,36,0.92) 100%); }
.svc-photo { position: relative; margin: 36px 0 0; }
@media (min-width: 1024px) { .svc-photo { margin: 0; } }
.svc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.svc-photo figcaption.svc-credit { margin-top: 10px; font-size: 13px; color: var(--muted); }
.svc-float { position: absolute; left: -22px; bottom: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 7px; min-width: 240px; }
.svc-float strong { font-size: 16px; color: var(--text); }
.svc-float span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.svc-float span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
@media (max-width: 1023px) { .svc-float { position: relative; left: 0; bottom: 0; margin-top: -32px; margin-left: 14px; margin-right: 14px; } }
.page-services [data-testid="section-build"] .build-card { padding: 26px; background: #fff; border: 1px solid var(--line); }
.page-services .timeline-track { height: 26px; }
.page-services .timeline-fill-mg { background: linear-gradient(90deg, var(--violet-deep), var(--violet)); }
.page-services .reduction-item { background: #fff; }
.page-services .highlight-box-blue { border-radius: var(--r-lg); padding: 32px; box-shadow: none; background: var(--ink) !important; }
.pv-cta-link { display: inline-flex; margin-top: 18px; color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 2px; }

/* Contact: offices on a light surface so the page doesn't stack dark blocks */
[data-testid="section-offices"] { background: var(--paper) !important; }
[data-testid="section-offices"] .title { color: var(--text) !important; }
[data-testid="section-offices"] .subtitle { color: var(--muted) !important; }
[data-testid="section-offices"] .office-card { background: #fff; border-color: var(--line); }
[data-testid="section-offices"] .office-card h3, [data-testid="section-offices"] .office-card p { color: var(--text); }
[data-testid="section-offices"] .office-icon { background: #fff !important; }
[data-testid="section-offices"] .office-icon svg { stroke: var(--violet-deep) !important; }
[data-testid="section-offices"] .tech-grid { display: none; }

/* ---------- 18. Review refinements ---------- */
.marquee .brand-logo { opacity: 0.7; filter: grayscale(1) contrast(1.15); }
.hero .title-hero .grad, .hero .title-hero span, .hero h1 span { color: rgba(255,255,255,0.74) !important; }
.svc-photo img { object-position: 50% 0%; }
.section > .container > :last-child, .section > .container.relative > :last-child { margin-bottom: 0 !important; }
[data-testid="section-offices"] .label { color: var(--violet-deep) !important; }
[data-testid="section-offices"] .office-badge { background: var(--violet-tint) !important; color: var(--violet-deep) !important; font-size: 12px; font-weight: 700; }
.cc-ways { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }
.cc-way span { overflow-wrap: normal !important; word-break: keep-all; }
.cc-way > span:last-child > span { font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .cc-way > span:last-child > span { white-space: normal; overflow-wrap: anywhere; font-size: 14px; } }

/* ---------- 19. Round-2 review fixes ---------- */
/* Numbers never break across lines; they scale to fit their box */
.stat-value { white-space: nowrap; }
.stat-box .stat-value, .stat-box-dark .stat-value { font-size: clamp(1.7rem, 2.6vw, 2.4rem) !important; line-height: 1.05; }
.stat-grid .stat-box { display: flex; flex-direction: column; justify-content: center; }
/* Client logos in their real colours */
.marquee .brand-logo { filter: none !important; opacity: 1 !important; width: 120px; height: 44px; }

/* Design & Build: top projects mosaic */
.svc-mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-top: 36px; height: 420px; }
@media (min-width: 1024px) { .svc-mosaic { margin-top: 0; } }
.mosaic-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); }
.mosaic-item.big { grid-row: 1 / span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mosaic-item:hover img { transform: scale(1.03); }
.mosaic-item figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: var(--pill); background: rgba(18,13,36,0.72); color: #e9e5f7; font-size: 12.5px; backdrop-filter: blur(6px); }
.mosaic-item figcaption b { color: #fff; font-weight: 700; margin-right: 4px; }
@media (max-width: 640px) { .svc-mosaic { height: 340px; grid-template-columns: 1fr 1fr; } }

/* Build: recently delivered row */
.recent { margin-top: 40px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.recent-title { font-weight: 700; font-size: 18px; color: var(--text); }
.recent-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .recent-grid { grid-template-columns: repeat(4, 1fr); } }
.recent-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.recent-card:hover { box-shadow: var(--shadow); border-color: #d6cdee; }
.recent-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recent-meta { display: flex; flex-direction: column; padding: 12px 14px; }
.recent-meta b { font-size: 15px; color: var(--text); }
.recent-meta small { font-size: 13px; color: var(--muted); }
.mosaic-item figcaption { white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .mosaic-item:not(.big) figcaption { font-size: 11.5px; padding: 4px 8px; } }

/* ---------- 20. Design & Build as one journey ---------- */
/* Sticky phase tracker under the header */
.phase-track { position: sticky; top: 80px; z-index: 60; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: opacity 0.25s, transform 0.25s; }
@media (max-width: 1023px) { .phase-track { top: 64px; } }
.phase-track.off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.phase-track-inner { max-width: 760px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.phase-track a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.phase-track a span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); transition: all 0.25s; }
.phase-track i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.phase-track i::after { content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: var(--violet); transition: width 0.15s linear; }
.phase-track a.active, .phase-track a.done { color: var(--text); }
.phase-track a.active span { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 5px var(--violet-tint); }
.phase-track a.done span { background: var(--text); border-color: var(--text); color: #fff; }
@media (max-width: 480px) { .phase-track a { font-size: 13px; gap: 6px; } .phase-track a span { width: 24px; height: 24px; font-size: 11px; } .phase-track-inner { gap: 8px; } }

/* Same header on every phase */
.phase-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 28px; text-align: left; }
.phase-num { font-weight: 700; font-size: clamp(3.4rem, 6vw, 5rem); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px #cbbdf2; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.phase-head .label { margin-bottom: 6px; }
.phase-head .title { margin: 0 !important; }
.phase-promise { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.phase-next { display: flex; width: max-content; margin: 44px auto 0; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--violet-deep); transition: border-color 0.2s, box-shadow 0.2s; }
.phase-next:hover { border-color: #d6cdee; box-shadow: var(--shadow); }
.phase-next span { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
#design .lg-grid-2 { align-items: center; }

/* Handover: high-contrast timeline + result card */
.handover-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 1024px) { .handover-grid { grid-template-columns: 1.55fr 1fr; gap: 32px; } }
.ho-bars { display: grid; gap: 26px; align-content: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ho-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ho-name { font-weight: 700; font-size: 16px; color: var(--text); }
.ho-saved { font-size: 13px; font-weight: 700; color: var(--care-strong); background: var(--care-tint); padding: 3px 10px; border-radius: var(--pill); }
.ho-bar { height: 34px; border-radius: 10px; background: #f1eff7; margin-top: 6px; overflow: hidden; }
.ho-bar span { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 12px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.ho-bar.trad span { background: #d9d5e6; color: #4a4560; }
.ho-bar.mg span { background: linear-gradient(90deg, var(--violet-deep), var(--violet)); color: #fff; }
.ho-bar b { font-weight: 700; }
.ho-card { border-radius: var(--r-lg); padding: 32px; color: #fff; background: radial-gradient(80% 90% at 100% 0%, rgba(144,75,255,0.5) 0%, rgba(144,75,255,0) 60%), var(--ink); display: flex; flex-direction: column; }
.ho-big { font-size: clamp(3.6rem, 6vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin-top: 6px; }
.ho-big-label { font-size: 18px; font-weight: 700; margin-top: 8px; }
.ho-note { color: rgba(255,255,255,0.68); font-size: 14px; margin-top: 4px; }
.ho-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.ho-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
.ho-list li span { color: var(--care-light); font-weight: 700; }

/* ---------- 21. Real before/after photos from MyGenie jobs ---------- */
.ticket-photo { margin: 0; padding: 0 !important; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.ticket-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticket-photo figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: var(--pill); font-size: 11px; font-weight: 700; background: rgba(18,13,36,0.78); color: #fff; text-transform: uppercase !important; letter-spacing: 0.08em !important; }
.ticket-photo.before figcaption { color: #fecaca; }
.ticket-photo.after figcaption { color: var(--care-light); }
.real-photo { position: relative; overflow: hidden; border-radius: 10px; margin: 0; }
.real-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-photo figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: var(--pill); font-size: 10.5px; font-weight: 700; background: rgba(18,13,36,0.78); color: #fff; text-transform: uppercase !important; letter-spacing: 0.08em !important; }
.real-photo.before figcaption { color: #fecaca; }
.real-photo.after figcaption { color: var(--care-light); }
.oc-ba, .pv-ba { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; }
.oc-ba .real-photo, .pv-ba .real-photo { aspect-ratio: 4 / 3; height: auto !important; }
.pv-ba .real-photo { min-width: 0; }
.oc-photo .real-photo.oc-shot { width: 190px; aspect-ratio: 4 / 3; }
/* Preventive report rows: text keeps its width, photos sit as a fixed pair on the right */
.pv-fixed, .pv-paper-fixed { display: flex !important; align-items: center; gap: 14px; }
.pv-fixed .pv-fixed-t, .pv-paper-fixed .t { flex: 1 1 auto; min-width: 0; }
.pv-fixed .pv-ba, .pv-paper-fixed .pv-ba { flex: 0 0 auto; width: 168px; }
@media (max-width: 480px) { .pv-fixed .pv-ba, .pv-paper-fixed .pv-ba { width: 132px; } }
/* A small arrow between before and after so the change reads at a glance */
.ticket-foot, .oc-ba, .pv-ba { position: relative; }
.ticket-foot::after, .oc-ba::after {
  content: "→"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.ticket-foot { gap: 10px !important; }
.pv-fixed .pv-ba, .pv-paper-fixed .pv-ba { width: 250px; }
@media (max-width: 480px) { .pv-fixed .pv-ba, .pv-paper-fixed .pv-ba { width: 176px; } }
.pv-ba .real-photo figcaption { font-size: 9.5px; padding: 2px 7px; left: 5px; bottom: 5px; }
.pv-ba::after { content: "→"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.5); }
