/* ==========================================================================
   Magen 360 | one-page site
   Brand: Midnight Black #0B0D10, Gunmetal #1D1F23, Silver #BFC2C7,
          Command Red #E31E24, Deep Red #BB0D15
   Type:  Montserrat (headings) + Open Sans (body), self-hosted
   ========================================================================== */

/* ---------- Fonts (latin subset, variable) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/opensans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --black: #0B0D10;
  --gunmetal: #1D1F23;
  --silver: #BFC2C7;
  --red: #E31E24;
  --red-deep: #BB0D15;
  --red-soft: #FF5A5F;          /* legible tint of Command Red for small text on dark */
  --wa: #25D366;

  --bg: #0B0D10;
  --bg-2: #0F1215;
  --surface: #14171B;
  --line: rgba(191, 194, 199, .13);
  --line-2: rgba(191, 194, 199, .26);
  --muted: rgba(191, 194, 199, .7);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
  --nav-h: 80px;
  --radius: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: #fff; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  padding: 12px 18px; border-radius: 10px; background: #fff; color: var(--black);
  font: 700 .85rem var(--font-head);
  transition: top .25s var(--ease);
}
.skip:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* inline icon system (symbols live in the sprite at the top of the page) */
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Layout helpers ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--alt { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font: 700 .75rem/1.55 var(--font-head); letter-spacing: .24em; text-transform: uppercase;
  color: var(--red-soft);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); flex: none; }

.h2 {
  margin-top: 1.1rem;
  font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em; line-height: 1.07;
}
.h2 em, .accent { font-style: normal; color: var(--red-soft); }
.lead { margin-top: 1.4rem; max-width: 64ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.section-head { max-width: 820px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Reveal-on-scroll (only active when JS is running) ---------- */
/* Keyframes (not transitions) so each component keeps its own hover transitions afterwards */
.js .reveal:not(.is-in) { opacity: 0; }
.js .reveal.is-in {
  animation: revealUp .9s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.js .reveal--left.is-in { animation-name: revealLeft; }
.js .reveal--right.is-in { animation-name: revealRight; }
.js .reveal--scale.is-in { animation-name: revealScale; }
/* safety net: if main.js never runs, index.html adds .no-reveal after a few seconds */
.no-reveal .reveal:not(.is-in), .no-reveal .vs li { opacity: 1 !important; transform: none !important; }
.no-reveal .reveal { animation: none !important; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-soft));
}

/* ---------- Buttons ---------- */
.btn {
  --py: .98rem; --px: 1.6rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: var(--py) var(--px); border-radius: 999px;
  font: 700 .82rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i--go { transform: translateX(4px); }
.btn--sm { --py: .78rem; --px: 1.25rem; font-size: .74rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 14px 34px -14px rgba(227, 30, 36, .85), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(227, 30, 36, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover::after { transform: translateX(130%); }

.btn--ghost {
  color: #fff; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--red); background: rgba(227, 30, 36, .14); }

.btn--wa { color: var(--black); background: var(--wa); box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .9); }
.btn--wa:hover { transform: translateY(-3px); background: #3BE07B; box-shadow: 0 22px 44px -14px rgba(37, 211, 102, 1); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s, box-shadow .4s;
  animation: navIn .9s var(--ease) both;
}
.nav.is-scrolled {
  background: rgba(11, 13, 16, .74);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 50px; height: 50px; }   /* clear space 14.7px: nav gives 15px above/below, 16px to the name */
.brand__name { font: 800 1.02rem/1 var(--font-head); letter-spacing: .26em; color: #fff; }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a:not(.btn) {
  position: relative; padding: 10px 2px;
  font: 600 .78rem/1 var(--font-head); letter-spacing: .13em; text-transform: uppercase; color: var(--silver);
  transition: color .3s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(11, 13, 16, .5);
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .4s var(--ease), opacity .25s;
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;   /* scrolls on short screens such as a phone held sideways */
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: rgba(11, 13, 16, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu > nav { margin-top: auto; }   /* auto margins centre the links when there is room, and never push them off-screen when there is not */
.menu ul { display: grid; gap: 4px; }
.menu li a {
  display: block; padding: 10px 0;
  font: 800 clamp(1.8rem, 8vw, 2.6rem)/1.1 var(--font-head); letter-spacing: -.01em; color: #fff;
}
.menu li { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.menu__foot { margin: 32px 0 auto; display: grid; gap: 10px; font-size: .95rem; }
.menu__foot a { color: var(--silver); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  min-height: min(100vh, 940px); min-height: min(100svh, 940px);
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px);
  display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; left: -18%; top: -34%; width: min(80vw, 980px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(227, 30, 36, .24), transparent 72%);
  animation: drift 20s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .55;
  -webkit-mask-image: radial-gradient(75% 70% at 72% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 72% 42%, #000 0%, transparent 78%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(28px, 5vw, 72px);
}

.hero__eyebrow { animation: rise .9s var(--ease) .15s both; }
.hero h1 {
  margin-top: 1.4rem;
  font-weight: 900; font-size: clamp(2.7rem, 5.7vw, 4.9rem); line-height: 1; letter-spacing: -.035em;
}
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; vertical-align: top; animation: slideUp 1.1s var(--ease) both; animation-delay: var(--d, .25s); }
.grad {
  background: linear-gradient(95deg, #FF6E72 0%, var(--red) 75%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { margin-top: 1.7rem; max-width: 54ch; font-size: clamp(1.04rem, 1.5vw, 1.2rem); animation: rise .9s var(--ease) .65s both; }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s var(--ease) .8s both; }
.hero__note {
  margin-top: 2.2rem; display: flex; align-items: center; gap: .8rem;
  font: 600 .72rem/1.4 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  animation: rise .9s var(--ease) 1s both;
}
.hero__note i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.hero__note i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 2.2s var(--ease) infinite; }

/* radar scope */
.hero__visual { position: relative; animation: fadeScale 1.4s var(--ease) .3s both; }
.radar { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin-inline: auto; }
.radar::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(closest-side, transparent 0 40%, rgba(227, 30, 36, .15) 64%, transparent 100%);
}
.radar > * { position: absolute; inset: 0; }
.radar__svg { width: 100%; height: 100%; overflow: visible; }
.r-ring { fill: none; stroke: rgba(191, 194, 199, .16); stroke-width: 1; }
.r-ring--outer { stroke: rgba(191, 194, 199, .3); }
.r-cross { stroke: rgba(191, 194, 199, .14); stroke-width: 1; fill: none; }
.r-ticks { fill: none; stroke: rgba(191, 194, 199, .38); stroke-width: 8; }
.r-ticks--major { stroke: rgba(255, 90, 95, .95); stroke-width: 14; }
.r-label { fill: rgba(191, 194, 199, .6); font: 700 11px var(--font-head); letter-spacing: .2em; }
.r-label--red { fill: var(--red-soft); }
.blip { fill: var(--red-soft); opacity: .12; transform-box: fill-box; transform-origin: center; animation: blip 7s linear infinite; animation-delay: var(--t); }
.blip--halo { fill: none; stroke: var(--red-soft); stroke-width: 1; }

.radar__sweep {
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(227, 30, 36, 0) 0deg 270deg,
    rgba(227, 30, 36, .08) 270deg,
    rgba(227, 30, 36, .5) 357deg,
    rgba(255, 90, 95, .95) 359.5deg,
    rgba(227, 30, 36, 0) 360deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 47%, #000 48% 93%, transparent 94%);
  mask-image: radial-gradient(circle closest-side, transparent 0 47%, #000 48% 93%, transparent 94%);
  animation: spin 7s linear 1s infinite;
}
.radar__ripple {
  inset: 3.3%; border-radius: 50%; border: 1px solid rgba(227, 30, 36, .6);
  opacity: 0; transform: scale(.52);
  animation: ripple 5.4s cubic-bezier(.2, .6, .3, 1) 1.2s infinite;
}
.radar__ripple:nth-of-type(2) { animation-delay: 3s; }
.radar__ripple:nth-of-type(3) { animation-delay: 4.8s; }

/* logo emblem: shown clean, with the brand clear-space left empty around it */
.radar__mark { inset: auto; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); }
.radar__mark img { width: 100%; height: auto; }

/* floating glass cards */
.fcard {
  position: absolute; z-index: 2;
  translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * 1px);
  transition: translate .6s var(--ease);
  animation: pop .9s var(--ease) var(--d) both;
}
.fcard__in {
  display: flex; align-items: center; gap: .85rem; padding: .8rem 1.05rem .8rem .8rem;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(20, 23, 27, .74);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9);
  animation: floaty 7s ease-in-out infinite; animation-delay: var(--fd, 0s);
}
.fcard .ico { width: 38px; height: 38px; margin: 0; border-radius: 11px; }
.fcard b { display: block; font: 700 .8rem/1.2 var(--font-head); color: #fff; }
.fcard span { display: block; margin-top: 2px; font-size: .74rem; line-height: 1.3; color: var(--muted); }
/* Placed toward the corners of the scope so they never enter the logo's clear-space zone */
.fcard--a { left: -3%; top: 5%; --depth: 14; }
.fcard--b { right: -9%; top: 69%; --depth: -12; }
.fcard--c { left: 1%; bottom: 1%; --depth: 10; }

.scrollcue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: grid; justify-items: center; gap: 10px;
  font: 700 .62rem var(--font-head); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  animation: rise 1s var(--ease) 1.6s both;
}
.scrollcue i { width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scrollcue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red-soft); animation: wheel 2s var(--ease) infinite; }

/* ---------- Stats ---------- */
.stats { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 23, 27, .6), rgba(11, 13, 16, 0)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font: 800 clamp(2.2rem, 4.6vw, 3.8rem)/1 var(--font-head); letter-spacing: -.03em; color: #fff; }
.stat__num small { font-size: .5em; font-weight: 700; color: var(--red-soft); letter-spacing: 0; margin-left: .06em; }
.stat__num .stat__deg { font-size: .8em; font-weight: 800; margin-left: .04em; vertical-align: top; line-height: 1.05; }
.stat p { margin-top: .7rem; font: 600 .74rem/1.4 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(26px, 4vw, 52px); border-bottom: 1px solid var(--line); user-select: none; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Outlined text: the fill matches the page background and is painted over the stroke (paint-order),
   which hides the stray inner lines that variable-font overlapping contours would otherwise show. */
.marquee__word {
  font: 900 clamp(3rem, 9vw, 7.5rem)/1 var(--font-head); text-transform: uppercase; letter-spacing: -.02em;
  color: var(--bg); -webkit-text-stroke: 3px rgba(191, 194, 199, .5); paint-order: stroke fill;
  padding-inline: clamp(18px, 3vw, 44px);
}
.marquee__word--solid { color: var(--red); -webkit-text-stroke: 0; }
.marquee__sep { width: clamp(14px, 2vw, 24px); height: clamp(14px, 2vw, 24px); background: var(--red); transform: rotate(45deg); flex: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); margin-top: 56px; align-items: start; }
.about__copy p + p { margin-top: 1.3rem; }
.about__copy p { font-size: 1.06rem; }

.brk { position: relative; }
.brk::before, .brk::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); pointer-events: none; }
.brk::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.brk::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.quote {
  padding: clamp(28px, 3.6vw, 48px);
  background: linear-gradient(160deg, rgba(29, 31, 35, .9), rgba(15, 18, 21, .9));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.quote__mark { width: 40px; height: 40px; color: var(--red); margin-bottom: 1.2rem; }
.quote blockquote { margin: 0; font: 800 clamp(1.4rem, 2.5vw, 2rem)/1.25 var(--font-head); color: #fff; letter-spacing: -.01em; }
.quote blockquote em { font-style: normal; color: var(--red-soft); }

.meaning { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }
.meaning__logo {
  display: grid; place-items: center; padding: 14%;   /* clear space around the lockup scales with its size */
  background: var(--black); border: 1px solid var(--line); border-radius: var(--radius);
}
.meaning__logo picture { display: block; width: 100%; }   /* sized by the panel, so space is reserved before the lazy image loads */
.meaning__logo img { width: 100%; height: auto; }
.meaning__together {
  grid-column: 1 / -1; margin-top: 8px; text-align: center;
  font: 800 clamp(1.1rem, 2.2vw, 1.6rem)/1.3 var(--font-head); color: #fff; letter-spacing: -.01em;
}
.meaning__together span { color: var(--red-soft); }

/* ---------- Cards ---------- */
.card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 31, 35, .7), rgba(20, 23, 27, .7));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 30, 36, .17), transparent 46%);
}
.card:hover { transform: translateY(-5px); border-color: rgba(227, 30, 36, .5); box-shadow: 0 30px 60px -34px rgba(227, 30, 36, .55); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
.card p { margin-top: .7rem; font-size: .98rem; color: var(--silver); }
.card--meaning .kicker { font: 700 .72rem var(--font-head); letter-spacing: .24em; text-transform: uppercase; color: var(--red-soft); }
.card--meaning h3 { margin-top: .5rem; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; }

.ico {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.3rem; border-radius: 15px;
  color: var(--red-soft); background: rgba(227, 30, 36, .1); border: 1px solid rgba(227, 30, 36, .3);
  transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.ico .i { width: 26px; height: 26px; }
.card:hover .ico { background: var(--red); color: #fff; transform: rotate(-7deg) scale(1.07); }

/* ---------- Direction & values ---------- */
.dv__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.dv__cards .card { padding: clamp(28px, 3.4vw, 44px); }
.dv__cards .card p { font-size: 1.08rem; }
.dv__cards .card .bigicon { position: absolute; right: -14px; bottom: -22px; width: 150px; height: 150px; color: rgba(191, 194, 199, .06); stroke-width: 1; }

.char { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); margin-top: clamp(64px, 8vw, 110px); align-items: start; }
.char h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.015em; }
.char__list li {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem;
  padding: 1.15rem 0 1.15rem 1.7rem; border-top: 1px solid var(--line);
  font: 800 clamp(1.15rem, 2.2vw, 1.55rem)/1.25 var(--font-head); color: #fff; letter-spacing: -.01em;
}
.char__list li:last-child { border-bottom: 1px solid var(--line); }
.char__list li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.char__list .neg {
  position: relative; font-weight: 500; font-family: var(--font-body); font-size: .72em; color: var(--muted);
}
.char__list .neg::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) calc(var(--i, 0) * 120ms + .5s);
}
.char__list li.is-in .neg::after, html:not(.js) .char__list .neg::after, .no-reveal .char__list .neg::after { transform: scaleX(1); }

/* ---------- Why Magen 360 ---------- */
.why__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 60px; }
.why__grid > * { grid-column: span 4; }
.why__grid > .card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(20px, 3vw, 40px); align-items: center; }
.card--wide .ico { margin: 0; width: 72px; height: 72px; border-radius: 20px; }
.card--wide .ico .i { width: 34px; height: 34px; }
.card--wide h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 clamp(10px, 2vw, 26px); align-items: stretch; margin-top: clamp(72px, 9vw, 120px); }
.vs__title { grid-column: 1 / -1; margin-bottom: 36px; text-align: center; }
.vs__title h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.vs__col { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius); border: 1px solid var(--line); }
.vs__col--old { background: rgba(255, 255, 255, .015); }
.vs__col--new {
  background: linear-gradient(180deg, rgba(227, 30, 36, .14), rgba(29, 31, 35, .55) 45%);
  border-color: rgba(227, 30, 36, .45); box-shadow: 0 40px 90px -50px rgba(227, 30, 36, .7);
}
.vs__head { margin-bottom: 1rem; font: 800 .8rem/1 var(--font-head); letter-spacing: .24em; text-transform: uppercase; }
.vs__col--old .vs__head { color: var(--muted); }
.vs__col--new .vs__head { color: var(--red-soft); }
.vs li { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.vs__col--old li { color: var(--muted); }
.vs__col--old .i { color: #6C7078; }
.vs__col--new li { color: #fff; font-weight: 600; }
.vs__col--new .i { color: var(--red-soft); stroke-width: 2.4; }
.vs li.is-none { font-style: italic; }
.js .vs li { opacity: 0; transform: translateX(-18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .25s); }
.js .vs__col--new li { transform: translateX(18px); }
.js .vs.is-in li { opacity: 1; transform: none; }
.vs__badge {
  align-self: center; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  font: 800 .8rem var(--font-head); letter-spacing: .1em; color: #fff; background: var(--black);
  border: 1px solid var(--line-2); box-shadow: 0 0 0 8px var(--bg);
}
.vs__foot { grid-column: 1 / -1; margin: 36px auto 0; max-width: 62ch; text-align: center; font-size: 1.06rem; }

/* ---------- Services explorer ---------- */
.svc { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 60px; align-items: start; }
.svc__rail {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border-radius: var(--radius); background: rgba(20, 23, 27, .65); border: 1px solid var(--line);
}
.svc__ind {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 13px; pointer-events: none;
  background: linear-gradient(135deg, rgba(227, 30, 36, .26), rgba(227, 30, 36, .07));
  border: 1px solid rgba(227, 30, 36, .5);
  transition: transform .55s var(--ease-io), width .55s var(--ease-io), height .55s var(--ease-io);
}
.tab {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 17px 18px; border-radius: 13px; color: var(--muted); transition: color .3s;
}
.tab__num { flex: none; min-width: 2ch; font: 800 .82rem/1 var(--font-head); letter-spacing: .14em; transition: color .3s; }
.tab__title { font: 700 .98rem/1.3 var(--font-head); }
.tab__short { display: none; }
.tab:hover, .tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"] .tab__num { color: var(--red-soft); }

.svc__stage {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(29, 31, 35, .85), rgba(15, 18, 21, .9));
}
.svc__stage::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(227, 30, 36, .16), transparent 70%);
}
.panel { position: relative; padding: clamp(26px, 4vw, 54px); }
.js .panel[hidden] { display: none; }
.js .panel.is-active { animation: panelIn .7s var(--ease) both; }
.panel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel__num {
  font: 900 clamp(3.6rem, 8vw, 6.4rem)/.9 var(--font-head); letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(191, 194, 199, .22), rgba(191, 194, 199, .02));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.panel__icon { width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); color: var(--red-soft); flex: none; }
.panel h3 { margin-top: 1.6rem; font-size: clamp(1.5rem, 2.7vw, 2.25rem); font-weight: 800; letter-spacing: -.015em; }
.panel__text { margin-top: 1.1rem; max-width: 64ch; font-size: 1.04rem; }
.panel__lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; margin-top: 2rem; }
.panel__lists--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.panel__list h4 { margin-bottom: .8rem; font: 700 .74rem/1.3 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); }
.panel__list p { font-size: .98rem; }
.checks li { display: flex; align-items: flex-start; gap: .75rem; padding: .42rem 0; color: #E3E5E8; font-size: .99rem; line-height: 1.5; }
.checks .i { color: var(--red-soft); margin-top: .12em; stroke-width: 2.4; width: 1.1em; height: 1.1em; }
.panel__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }

/* line-art icons that draw themselves in */
.draw path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.js .draw path { stroke-dashoffset: 1.05; }
.js .is-in .draw path, .js .panel.is-active .draw path { animation: draw 1.5s var(--ease) forwards; }
.draw path:nth-child(2) { animation-delay: .12s !important; }
.draw path:nth-child(3) { animation-delay: .24s !important; }
.draw path:nth-child(4) { animation-delay: .36s !important; }
.draw path:nth-child(5) { animation-delay: .48s !important; }
.draw path:nth-child(6) { animation-delay: .6s !important; }
.draw path:nth-child(7) { animation-delay: .72s !important; }

/* ---------- Who we protect ---------- */
.clients__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.reach { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto; }
.reach__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line-2); translate: -50% -50%; }
.reach__ring:nth-child(1) { width: 100%; height: 100%; }
.reach__ring:nth-child(2) { width: 66%; height: 66%; border-color: rgba(227, 30, 36, .4); }
.reach__ring:nth-child(3) { width: 34%; height: 34%; border-color: rgba(227, 30, 36, .6); background: rgba(227, 30, 36, .06); }
.reach__ring span {
  position: absolute; left: 50%; top: 0; translate: -50% -50%; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line-2);
  font: 700 .6rem/1.3 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--silver);
}
.reach__ring:nth-child(3) span { border-color: rgba(227, 30, 36, .6); color: #fff; }
.reach__pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(227, 30, 36, .7); opacity: 0; animation: reach 5s cubic-bezier(.2, .6, .3, 1) infinite; }
.reach__pulse:nth-of-type(2) { animation-delay: 2.5s; }
.reach__dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(227, 30, 36, .25); }

.clients__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.clients__grid > * { grid-column: span 3; }
.clients__grid > :nth-child(n+5) { grid-column: span 4; }

/* ---------- Promise ---------- */
.promise {
  text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 45%, rgba(227, 30, 36, .13), transparent 72%), var(--bg);
  border-block: 1px solid var(--line);
}
.promise__words { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.pw .draw { width: clamp(60px, 7vw, 84px); height: clamp(60px, 7vw, 84px); margin: 0 auto 1.3rem; color: var(--red-soft); }
.pw h3 { font: 900 clamp(1.5rem, 3.6vw, 2.9rem)/1.05 var(--font-head); letter-spacing: -.02em; text-transform: uppercase; }
.pw h3 small { display: block; font-size: .5em; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin-bottom: .6rem; }
.promise__quote { max-width: 30ch; margin: clamp(48px, 7vw, 84px) auto 0; font: 700 clamp(1.25rem, 2.5vw, 1.9rem)/1.4 var(--font-head); color: #fff; letter-spacing: -.01em; }
.promise__quote em { font-style: normal; color: var(--red-soft); }
.promise__body { max-width: 66ch; margin: 1.8rem auto 0; font-size: 1.08rem; }
.promise__body strong { color: #fff; font-weight: 700; }
.promise .btn { margin-top: 2.4rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); margin-top: 60px; align-items: start; }
.qform {
  position: relative; overflow: hidden; padding: clamp(26px, 3.6vw, 42px); border-radius: 26px;
  background: linear-gradient(160deg, #16191D, #101316); border: 1px solid var(--line-2);
}
.qform::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--wa), transparent); }
.qform h3 { display: flex; align-items: center; gap: .8rem; font-size: 1.3rem; font-weight: 800; }
.qform h3 .i { color: var(--wa); width: 1.5em; height: 1.5em; }
.qform > p { margin-top: .7rem; }
.qform label { display: block; margin-top: 1.5rem; font: 700 .72rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.field {
  display: block; width: 100%; margin-top: 12px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(11, 13, 16, .85); color: #fff;
  font: 400 1rem/1.6 var(--font-body); resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field::placeholder { color: rgba(191, 194, 199, .5); }
.field:focus { outline: none; border-color: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }
.qform textarea.field { min-height: 150px; }
.qform__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qform__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 1.4rem; }
.qform__hint { font-size: .86rem; color: var(--muted); }
.qform__status { margin: 0; font-size: .92rem; color: var(--red-soft); }
.qform__status:not(:empty) { margin-top: 1rem; }
.qform__status a { color: var(--wa); text-decoration: underline; text-underline-offset: 3px; }
.qform .is-shake, .wa-form.is-shake { animation: shake .45s var(--ease); }

.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 600 .78rem/1.2 var(--font-head); letter-spacing: .02em; color: var(--silver);
  transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--wa); color: #fff; background: rgba(37, 211, 102, .1); transform: translateY(-2px); }

.contact__list { display: grid; gap: 14px; }
.cline {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px;
  background: rgba(20, 23, 27, .7); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease), background-color .4s;
}
a.cline:hover { border-color: rgba(227, 30, 36, .55); transform: translateX(6px); background: rgba(29, 31, 35, .8); }
.cline .ico { margin: 0; flex: none; }
.cline:hover .ico { background: var(--red); color: #fff; }
.cline small { display: block; font: 700 .72rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--red-soft); }
.cline b { display: block; margin-top: .5rem; font: 700 1.08rem/1.35 var(--font-head); color: #fff; overflow-wrap: anywhere; }
.cline .i--go { margin-left: auto; color: var(--muted); flex: none; transition: transform .4s var(--ease), color .3s; }
a.cline:hover .i--go { transform: translateX(4px); color: #fff; }
.legal-card { padding: 4px 4px 0; font-size: .92rem; color: var(--muted); }
.legal-card b { color: #fff; font-weight: 700; }

#contact { padding-bottom: clamp(64px, 8vw, 110px); }
.nowrap { white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); background: var(--black); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.footer__logo { width: clamp(130px, 14vw, 170px); height: auto; margin-bottom: 2rem; }   /* clear space below the logo = height of the "M" */
.footer__tag { font: 800 .8rem/1.4 var(--font-head); letter-spacing: .26em; text-transform: uppercase; color: var(--red-soft); }
.footer h4 { margin-bottom: 1.2rem; font: 700 .72rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.footer li + li { margin-top: .7rem; }
.footer a { color: var(--silver); transition: color .3s; }
.footer a:hover { color: #fff; }
.footer address { display: grid; gap: .7rem; }
.social { display: inline-flex; align-items: center; gap: 14px; margin-top: 1.6rem; font: 600 .88rem/1.3 var(--font-head); letter-spacing: .02em; }
.social__ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); color: #fff;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.social__ico .i { width: 18px; height: 18px; }
.social:hover .social__ico { background: #1877F2; border-color: #1877F2; transform: translateY(-2px); }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.totop {
  display: inline-flex; align-items: center; gap: .6rem; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 700 .72rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--silver);
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.totop:hover { border-color: var(--red); color: #fff; transform: translateY(-3px); }

/* ---------- WhatsApp widget ---------- */
.wa-fab {
  position: fixed; z-index: 100; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; isolation: isolate;
  background: var(--wa); color: #fff;
  box-shadow: 0 0 22px 4px rgba(37, 211, 102, .55), 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease);
  animation: pop .9s var(--ease) 1.8s backwards;   /* "backwards" so the hover scale is not overridden afterwards */
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:active { transform: scale(.96); }
.wa-fab::before, .wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; pointer-events: none;   /* decorative: must never catch clicks meant for the button beside it */
  animation: waRing 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.wa-fab::after { animation-delay: 1.3s; }
.wa-fab__glow {
  position: absolute; inset: -18px; border-radius: 50%; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 211, 102, .6), transparent 70%);
  animation: waBreath 2.6s ease-in-out infinite;
}
.wa-fab .i { width: 34px; height: 34px; animation: wiggle 7s ease-in-out 4s infinite; transition: opacity .3s, transform .4s var(--ease); }
.wa-fab .i--close { position: absolute; width: 26px; height: 26px; opacity: 0; transform: rotate(-90deg) scale(.6); animation: none; stroke-width: 2.4; }
.wa-fab.is-open .i--wa { opacity: 0; transform: rotate(90deg) scale(.6); animation: none; }
.wa-fab.is-open .i--close { opacity: 1; transform: none; }
.wa-fab.is-open::before, .wa-fab.is-open::after, .wa-fab.is-open .wa-fab__glow { animation-play-state: paused; opacity: 0; }
.wa-fab__dot {
  position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--black); z-index: 2; transition: transform .3s var(--ease), opacity .3s;
}
.wa-fab.is-open .wa-fab__dot, .wa-fab.is-seen .wa-fab__dot { transform: scale(0); opacity: 0; }

/* ---------- Facebook button: stacked above the WhatsApp button, smaller and calmer so WhatsApp stays the main action ---------- */
.fb-fab {
  position: fixed; z-index: 100;                                                   /* above the WhatsApp ripples (same level, later in the page) */
  right: calc(max(20px, env(safe-area-inset-right)) + 8px);                        /* centred over the 64px WhatsApp button */
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px + 12px);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #1877F2; color: #fff;                                                /* Facebook's own blue, so it is recognised at a glance */
  box-shadow: 0 10px 24px -8px rgba(24, 119, 242, .7), 0 6px 16px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s, visibility 0s;
  animation: pop .9s var(--ease) 2.1s backwards;                                   /* "backwards" so the hover scale is not overridden */
}
.fb-fab .i { width: 22px; height: 22px; }
.fb-fab:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 16px 30px -8px rgba(24, 119, 242, .85), 0 8px 20px rgba(0, 0, 0, .5); }
.fb-fab:active { transform: scale(.95); }
.fb-fab::after {                                                                    /* label that slides out on hover and keyboard focus */
  content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 8px 13px; border-radius: 10px; white-space: nowrap;
  background: #fff; color: var(--black); font: 600 .78rem/1.2 var(--font-head);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fb-fab:hover::after, .fb-fab:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
/* step aside while the WhatsApp chat or the mobile menu is open (classes are toggled by main.js) */
.wa-open .fb-fab, .menu-open .fb-fab {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s, visibility 0s linear .3s;
}

.wa-tip {
  position: fixed; z-index: 99; right: max(96px, calc(env(safe-area-inset-right) + 96px)); bottom: max(32px, calc(env(safe-area-inset-bottom) + 32px));
  max-width: 230px; padding: 12px 38px 12px 16px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--black); font: 600 .85rem/1.35 var(--font-head); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.wa-tip.is-show { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.wa-tip button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #555; }
.wa-tip button:hover { background: #eee; }
.wa-tip button .i { width: 14px; height: 14px; stroke-width: 2.4; }

/* Flex column: header, input and note stay put while only the chat area scrolls, so the input is never pushed
   out of view on short screens or when the on-screen keyboard is open. --kb / --vvh are set by main.js on iOS. */
.wa-panel {
  position: fixed; z-index: 101; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 80px);
  width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: #101316; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.96); transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.wa-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa-panel.is-kb { bottom: calc(var(--kb) + 12px); max-height: calc(var(--vvh) - 24px); }   /* keyboard open: sit right above it, use all visible height */
.wa-panel > * { flex: none; }
.wa-panel__head {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px;
  background: linear-gradient(135deg, #0E3B2A, #0B2A20); border-bottom: 1px solid rgba(37, 211, 102, .25);
}
.wa-panel__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--black); border: 1px solid rgba(255, 255, 255, .15); display: grid; place-items: center; flex: none; overflow: hidden; }
.wa-panel__avatar img { width: 38px; height: 38px; }
.wa-panel__head b { display: block; font: 800 1rem/1.2 var(--font-head); color: #fff; }
.wa-panel__head span { display: flex; align-items: center; gap: .45rem; margin-top: 3px; font-size: .78rem; color: #A5E6C0; }
.wa-panel__head span .i { width: 14px; height: 14px; }
.wa-panel__close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: background-color .3s; }
.wa-panel__close:hover { background: rgba(255, 255, 255, .12); }
.wa-panel__close .i { width: 18px; height: 18px; stroke-width: 2.2; }
.wa-panel__body { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 6px; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 18px 18px; }
.wa-bubble {
  position: relative; max-width: 92%; padding: 12px 15px; border-radius: 4px 16px 16px 16px;
  background: #1D2125; color: #E8EAED; font-size: .93rem; line-height: 1.5;
  animation: bubbleIn .6s var(--ease) both;
}
.wa-bubble + .wa-bubble { margin-top: 8px; animation-delay: .25s; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 6px; }
.wa-chips .chip { font-size: .73rem; padding: 7px 12px; }
.wa-form { display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px 6px; }
.wa-form textarea {
  flex: 1; min-height: 46px; max-height: 120px; padding: 12px 14px; border-radius: 16px; resize: none;
  border: 1px solid var(--line-2); background: rgba(11, 13, 16, .9); color: #fff; font: 400 1rem/1.45 var(--font-body);   /* 16px: iPhones zoom the page on focus for anything smaller */
  transition: border-color .3s, box-shadow .3s;
}
.wa-form textarea::placeholder { color: rgba(191, 194, 199, .5); }
.wa-form textarea:focus { outline: none; border-color: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.wa-send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--black); transition: transform .35s var(--ease), background-color .3s, box-shadow .3s;
  box-shadow: 0 8px 22px -8px rgba(37, 211, 102, .9);
}
.wa-send:hover { transform: scale(1.08) rotate(-8deg); background: #3BE07B; }
.wa-send .i { width: 21px; height: 21px; stroke-width: 2; margin-left: -2px; }
.wa-note { padding: 6px 18px 18px; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.wa-status { margin: 0; padding: 0 18px; font-size: .82rem; color: var(--red-soft); }
.wa-status:not(:empty) { padding-top: 4px; padding-bottom: 4px; }
.wa-status.is-ok, .qform__status.is-ok { color: #A5E6C0; }
.wa-status a { color: var(--wa); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Keyframes ---------- */
@keyframes revealUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } }
@keyframes revealLeft { from { opacity: 0; transform: translate3d(-36px, 0, 0); } }
@keyframes revealRight { from { opacity: 0; transform: translate3d(36px, 0, 0); } }
@keyframes revealScale { from { opacity: 0; transform: scale(.94); } }
@keyframes navIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(18px) scale(.9); } 70% { transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { opacity: 0; transform: scale(.52); } 14% { opacity: .75; } 100% { opacity: 0; transform: scale(1); } }
@keyframes reach { 0% { opacity: 0; transform: scale(.1); } 15% { opacity: .8; } 100% { opacity: 0; transform: scale(1); } }
@keyframes blip { 0% { opacity: 1; transform: scale(1.9); } 14% { opacity: .95; transform: scale(1); } 100% { opacity: .12; transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8%, 6%, 0) scale(1.15); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes waRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes waBreath { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-12deg); } 93% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .fcard { display: none; }   /* the scope is too small for the cards to clear the logo */
}

@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .brand { gap: 14px; }
  .brand img { width: 44px; height: 44px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 20px); }
  .hero__bg::before { animation: none; }   /* a large drifting gradient is the costliest effect on low-end phones; a static glow looks the same */
  /* snappier entrance on phones: the headline (largest text) appears right away instead of after the desktop choreography */
  .hero__eyebrow { animation-delay: .05s; }
  .line > span { animation-duration: .8s; animation-delay: .05s; }
  .line + .line > span { animation-delay: .15s; }
  .hero__sub { animation-duration: .7s; animation-delay: .25s; }
  .hero__cta { animation-duration: .7s; animation-delay: .35s; }
  .hero__note { animation-duration: .7s; animation-delay: .45s; }
  .hero__visual { animation-duration: 1s; animation-delay: .05s; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { order: -1; margin-bottom: -6px; }
  .radar { width: min(78vw, 400px); }
  .fcard { display: none; }
  .scrollcue { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .about__grid, .char, .clients__intro, .contact__grid { grid-template-columns: 1fr; }
  .meaning { grid-template-columns: 1fr; }
  .meaning__logo { order: -1; max-width: 360px; width: 100%; margin-inline: auto; }
  .dv__cards { grid-template-columns: 1fr; }

  .why__grid > * { grid-column: span 6; }
  .vs { grid-template-columns: 1fr; gap: 16px 0; }
  .vs__badge { margin: -4px auto; z-index: 2; }

  .svc { grid-template-columns: 1fr; }
  .svc__rail { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px; }
  .svc__rail::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; scroll-snap-align: center; padding: 14px 16px; gap: 10px; }
  .tab__title { display: none; }
  .tab__short { display: inline; font: 700 .88rem/1.2 var(--font-head); white-space: nowrap; }

  .clients__grid > *, .clients__grid > :nth-child(n+5) { grid-column: span 6; }
  .clients__grid > :nth-child(7) { grid-column: 1 / -1; }
  .reach { width: min(100%, 300px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .eyebrow { letter-spacing: .17em; font-size: .72rem; gap: .7rem; }
  .footer { padding-bottom: 150px; }   /* keeps the last lines clear of the floating WhatsApp and Facebook buttons */
  .eyebrow::before { width: 24px; }
  .stat__num { font-size: clamp(2rem, 9vw, 2.6rem); }
  .why__grid > *, .clients__grid > *, .clients__grid > :nth-child(n+5) { grid-column: 1 / -1; }
  .why__grid > .card--wide { grid-template-columns: 1fr; }
  .card--wide .ico { margin-bottom: 1.3rem; }
  .panel__lists, .panel__lists--3 { grid-template-columns: 1fr; }
  .promise__words { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .wa-tip { display: none; }
  .wa-panel { right: 12px; left: 12px; width: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 78px); }
  .wa-fab { width: 60px; height: 60px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .fb-fab { right: calc(max(14px, env(safe-area-inset-right)) + 6px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px + 10px); }   /* centred over the 60px WhatsApp button */
}

@media (max-width: 420px) {
  .brand__name { letter-spacing: .18em; font-size: .92rem; }
  /* contact cards: reclaim width for the text so the phone number and email read cleanly on the smallest phones */
  .cline { padding: 16px; gap: 14px; }
  .cline .ico { width: 44px; height: 44px; border-radius: 13px; }
  .cline .ico .i { width: 22px; height: 22px; }
  .cline .i--go { display: none; }
  .cline b { font-size: 1rem; }
}

/* Short screens (phones held sideways): tighter menu so every link and the contact lines fit,
   and a compact chat panel so the input stays visible above the keyboard */
@media (max-height: 560px) {
  .menu li a { font-size: 1.6rem; padding: 6px 0; }
  .menu__foot { margin-top: 16px; }
  .wa-panel__head { padding: 8px 12px; gap: 10px; }
  .wa-panel__avatar { width: 36px; height: 36px; }
  .wa-panel__avatar img { width: 26px; height: 26px; }
  .wa-panel__head b { font-size: .92rem; }
  .wa-form { padding: 8px 12px 8px; }
  .wa-panel.is-kb .wa-note { display: none; }
}

/* ---------- Touch devices: comfortable tap targets, tap feedback, no sticky hover ---------- */
a, button, [role="tab"] { -webkit-tap-highlight-color: rgba(227, 30, 36, .2); touch-action: manipulation; }

@media (pointer: coarse) {
  .btn--sm, .totop, .chip { min-height: 44px; }
  .chip { display: inline-flex; align-items: center; }
  .wa-panel__close { width: 44px; height: 44px; }
  .footer li + li { margin-top: 0; }
  .footer li a, .footer address a, .menu__foot a { display: flex; align-items: center; min-height: 44px; }
}

@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); box-shadow: none; }
  .card:hover::before { opacity: 0; }
  .card:hover .ico { background: rgba(227, 30, 36, .1); color: var(--red-soft); transform: none; }
  .btn--primary:hover, .btn--ghost:hover, .btn--wa:hover, .chip:hover, .totop:hover, a.cline:hover { transform: none; }
  .fb-fab:hover, .social:hover .social__ico { transform: none; }
  .fb-fab::after { display: none; }   /* no hover label on touch screens */
}

/* pressed state (after the hover reset above so it wins on touch) */
.btn:active, .chip:active { transform: scale(.97); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal:not(.is-in), .js .vs li { opacity: 1; transform: none; }
  .js .draw path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
  .radar__sweep, .wa-fab::before, .wa-fab::after, .wa-fab__glow { animation: none; }
  .blip { opacity: .7; }
}
