/* ===== Self-hosted Poppins (no third-party requests) ===== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ===== Brand tokens (from the aforarif.com logo) ===== */
:root {
  --brand: #6F2DBD;
  --brand-dark: #561F96;
  --brand-deep: #2A0F4D;
  --brand-light: #C9A8F0;
  --brand-soft: #F3ECFC;
  --brand-tint: #FAF7FE;
  --ink: #1A1A1A;
  --text: #4B5563;
  --muted: #8B93A1;
  --line: #E9E3F3;
  --white: #FFFFFF;
  --green: #22C55E;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(111, 45, 189, 0.10);
  --shadow-lg: 0 24px 60px rgba(111, 45, 189, 0.22);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: currentColor; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.08rem; font-weight: 600; }
p + p { margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-tint { background: var(--brand-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.accent { color: var(--brand); }
.strong { color: var(--ink); font-weight: 600; }
.meta { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; margin-top: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--white); font-weight: 600; font-size: .95rem; font-family: inherit;
  padding: 14px 26px; border-radius: 12px; border: 2px solid var(--brand); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; }
.logo-word { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.logo-word span { color: var(--brand); }
.logo-light .logo-word { color: var(--white); }
.logo-light .logo-word span { color: var(--brand-light); }

/* ===== Header ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .92rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--brand); transition: width .2s; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 90px; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(111,45,189,.14), transparent 45%), radial-gradient(circle at 5% 95%, rgba(111,45,189,.08), transparent 40%), var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lead { font-size: 1.08rem; margin: 1.25rem 0 1.75rem; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.search-box {
  display: flex; align-items: center; gap: 12px; max-width: 540px; margin-bottom: 1.75rem; height: 58px; flex: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 8px 28px rgba(111,45,189,.12); transition: border-color .2s, box-shadow .2s;
}
.search-box:hover { border-color: var(--brand); box-shadow: 0 10px 34px rgba(111,45,189,.20); }
.search-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; }
.search-text { flex: 1; min-width: 0; height: 1.5em; line-height: 1.5em; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
#typed { overflow: hidden; text-overflow: clip; }
.caret { flex: none; width: 2px; height: 1.2em; background: var(--brand); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-btn { flex: none; background: var(--brand); color: var(--white); font-weight: 600; font-size: .88rem; padding: 10px 20px; border-radius: 999px; }

.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 1.75rem; font-size: .85rem; color: var(--muted); }
.soc { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.soc svg { width: 18px; height: 18px; }
.soc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.soc-linkedin { color: #0A66C2; } .soc-upwork { color: #14A800; } .soc-fiverr { color: #1DBF73; }

.hero-visual { display: flex; flex-direction: column; align-items: center; }
.photo-wrap { position: relative; width: 100%; max-width: 400px; }
.photo-bg { position: absolute; left: 0; right: 0; bottom: 0; top: 14%; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg); }
.photo-wrap picture { position: relative; display: block; }
.photo { position: relative; width: 100%; height: auto; border-radius: 0 0 28px 28px; -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
.badge { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(42,15,77,.16); animation: float 5s ease-in-out infinite; }
.badge strong { color: var(--brand); font-size: 1.45rem; line-height: 1; font-weight: 700; }
.badge > span { font-size: .72rem; line-height: 1.3; font-weight: 500; }
.badge-1 { top: 22%; left: -8%; }
.badge-2 { top: 48%; right: -8%; animation-delay: -1.7s; }
.badge-3 { bottom: 10%; left: -4%; animation-delay: -3.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-location { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; margin-top: 18px; max-width: 370px; }
.hero-location svg { flex: none; margin-top: 4px; fill: none; stroke: var(--brand); stroke-width: 2; }

/* ===== Results band ===== */
.results { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%); color: var(--white); padding: 44px 0; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.result { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid rgba(255,255,255,.22); }
.result strong { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.result > span { font-size: .88rem; opacity: .85; }

/* ===== Brands ===== */
.brands { padding: 36px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.brands-title { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.brand-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.brand-list li { font-weight: 700; font-size: 1.15rem; color: #A9A3B5; letter-spacing: -.01em; transition: color .2s; }
.brand-list li:hover { color: var(--brand); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 1.75rem; }
.about-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .25s, transform .25s; }
.info-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.info-card p { font-size: .9rem; margin-top: 2px; }
.icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Services ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 18px 0 10px; }
.card-feature { background: linear-gradient(160deg, var(--white) 40%, var(--brand-soft)); border-color: #DCCBF3; }
.mini-list { list-style: none; display: grid; gap: 7px; }
.mini-list li { position: relative; padding-left: 20px; font-size: .88rem; line-height: 1.55; }
.mini-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ===== Case studies ===== */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #DCCBF3; }
.case-wide { grid-column: 1 / -1; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.case-head h3 { font-size: 1.3rem; }
.case > p { font-size: .92rem; }
.case-channels { display: flex; gap: 8px; }
.case-channels svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.metrics { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin: 22px 0 0; }
.metrics li { background: var(--brand-tint); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.metrics strong { color: var(--brand); font-size: 1.4rem; line-height: 1.2; }
.metrics span { font-size: .78rem; margin-top: 2px; }
.metrics-text strong { font-size: 1.05rem; }
.case-foot { margin-top: auto; padding-top: 18px; font-size: .85rem !important; color: var(--ink); font-weight: 500; }
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; counter-reset: none; }
.pipeline li { position: relative; background: var(--brand-tint); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: translateY(-50%) rotate(45deg); }
.pipeline span { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.pipeline strong { color: var(--ink); font-size: .92rem; }
.pipeline em { font-style: normal; font-size: .8rem; color: var(--brand); font-weight: 500; }

/* ===== Experience ===== */
.exp-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.exp-intro { position: sticky; top: 100px; }
.lead-box { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lead-box h3 { margin-bottom: 14px; }
.lead-item { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.lead-item strong { color: var(--ink); font-size: .92rem; font-weight: 600; }
.lead-item span { font-size: .86rem; }
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-light)); }
.timeline li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; transition: box-shadow .25s; }
.timeline li:hover { box-shadow: var(--shadow); }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--brand); }
.when { font-size: .78rem; font-weight: 600; color: var(--brand); }
.timeline h3 { margin: 4px 0 2px; }
.where { font-size: .86rem; color: var(--ink); font-weight: 500; }
.timeline li p:last-child { font-size: .88rem; margin-top: 6px; }

/* ===== Certificates & tools ===== */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cert::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); opacity: .7; }
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert > div:last-child { position: relative; z-index: 1; }
.cert p { font-size: .88rem; margin-top: 2px; }
.cert-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); color: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.cert-icon svg { width: 24px; height: 24px; }
.cert-icon .ico-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tools { margin-top: 64px; text-align: center; }
.tools-title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tool-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tool-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink); background: var(--white); transition: border-color .2s, color .2s; }
.tool-list li:hover { border-color: var(--brand); color: var(--brand); }
.tool-list svg { width: 16px; height: 16px; color: var(--brand); }
.ti { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }

/* ===== Testimonials ===== */
.testimonials { columns: 3 300px; column-gap: 20px; }
.quote { break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-size: 4.5rem; line-height: 1; color: var(--brand-soft); font-family: Georgia, serif; }
.stars { color: #F5B301; letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.quote blockquote { font-size: .92rem; color: var(--ink); position: relative; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.quote figcaption > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.4; flex: 1; min-width: 0; }
.quote figcaption strong { color: var(--ink); font-size: .95rem; }
.quote figcaption a { font-size: .82rem; }
.quote figcaption em { font-style: normal; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 1.75rem; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--ink); font-weight: 500; }
.ci { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ci-wa svg { fill: #25D366; stroke: none; }
.hire-title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.hire-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hire { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; background: var(--white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hire svg { width: 18px; height: 18px; }
.hire:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.hire-linkedin svg { color: #0A66C2; } .hire-upwork svg { color: #14A800; } .hire-fiverr svg { color: #1DBF73; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--brand-tint); color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.contact-form .invalid { border-color: #DC2626; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-note.error { color: #DC2626; }

/* ===== Footer ===== */
.footer { background: var(--brand-deep); color: rgba(255,255,255,.72); padding: 48px 0 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand p { margin-top: 10px; font-size: .86rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; font-size: .82rem; text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .caret, .pulse { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .nav-links { gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 12px 30px rgba(0,0,0,.06);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; }
  .hero { padding: 116px 0 70px; }
  .hero-grid, .about-grid, .contact-grid, .exp-grid { grid-template-columns: 1fr; gap: 44px; }
  .exp-intro { position: static; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .cases { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}
@media (max-width: 600px) {
  .cards, .certs { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li:nth-child(2)::after { display: none; }
  .case, .contact-form, .lead-box { padding: 22px; }
  .search-btn { display: none; }
  .search-box { padding: 14px 20px; }
  .photo-wrap { max-width: 300px; }
  .badge { padding: 8px 10px; }
  .badge strong { font-size: 1.15rem; }
  .badge > span { font-size: .66rem; }
  .badge-1 { left: -6%; }
  .badge-2 { right: -6%; }
  .brand-list { gap: 10px 24px; }
  .brand-list li { font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ===== Brand logo slider ===== */
.marquee { position: relative; overflow: hidden; }
/* Edge fades as overlays (cheaper than mask-image, keeps scrolling smooth on iPhone) */
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--white), rgba(255,255,255,0)); }
.marquee-track { list-style: none; display: flex; width: max-content; padding: 6px 0; align-items: center; will-change: transform; animation: marquee var(--marquee-duration, 40s) linear infinite; }
/* Pause on hover only where a real mouse exists (taps on phones won't freeze it) */
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.logo-item { display: inline-flex; align-items: center; flex: none; height: 56px; margin-right: 64px; font-weight: 700; font-size: 1.12rem; color: #2E2A36; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s; }
@media (hover: hover) { .logo-item:hover { transform: scale(1.06); } }
.logo-item.wordmark { font-weight: 600; }

/* ===== About highlights + Education ===== */
.highlights { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.highlights li { background: linear-gradient(160deg, var(--white) 40%, var(--brand-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.highlights li:first-child { grid-column: 1 / -1; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); border: 0; }
.highlights li:first-child strong, .highlights li:first-child span { color: #fff; }
.highlights li:first-child span { opacity: .85; }
.highlights strong { color: var(--brand); font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
.highlights li:first-child strong { font-size: 1.2rem; }
.highlights span { font-size: .86rem; }
.edu { margin-top: 72px; }
.edu-title { font-size: 1.35rem; margin-bottom: 20px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.edu-grid .info-card { padding: 24px; }
.edu-grid .info-card:hover { transform: translateY(-4px); }
.info-card-wide { grid-column: 1 / -1; }
.meta-top { margin: 0 0 8px; }
.info-card .sub { color: var(--ink); font-weight: 500; font-size: .9rem; margin: 2px 0 10px; }
.info-card .mini-list { margin-top: 4px; }
.lead-items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.lead-items .lead-item { border-top: 0; padding: 0; }

/* ===== Phone refinements ===== */
@media (max-width: 920px) {
  .lead-items { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.85rem; line-height: 1.22; }
  h2 { font-size: 1.5rem; }
  .eyebrow { font-size: .72rem; }
  .lead { font-size: .97rem; margin: 1rem 0 1.4rem; }
  .search-box { height: 52px; padding: 0 18px; gap: 10px; margin-bottom: 1.25rem; }
  .search-icon { width: 18px; height: 18px; }
  .search-text { font-size: .9rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { padding: 12px 10px; font-size: .86rem; border-radius: 10px; }
  .about-cta .btn { padding: 12px 20px; font-size: .9rem; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .highlights li { padding: 16px; }
  .highlights strong { font-size: 1.2rem; }
  .edu { margin-top: 52px; }
  .edu-grid { grid-template-columns: 1fr; }
  .edu-grid .info-card { flex-direction: column; gap: 12px; padding: 20px; }
  .logo-item { font-size: 1rem; }
  .logo-item { margin-right: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ===== Back to top button ===== */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(111,45,189,.35);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .to-top { width: 46px; height: 46px; } }
