/* SafCY public site. Brand tokens are overridden from CMS settings via :root inline style. */
:root {
  --primary: #0043ff;
  --accent: #01d46b;
  --bg: #050c24;
  --surface: #0a1538;
  --text: #e8edff;
  --muted: color-mix(in srgb, var(--text) 64%, transparent);
  --line: color-mix(in srgb, var(--primary) 22%, transparent);
  --line-soft: rgba(120, 150, 255, .10);
  --glow: color-mix(in srgb, var(--primary) 45%, transparent);
  --font-head: 'Space Grotesk';
  --font-body: 'Inter';
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head), sans-serif; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }
[data-lucide], svg.lucide { width: 1.1em; height: 1.1em; stroke-width: 2; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
main { position: relative; z-index: 1; }

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
.bg-orb { position: fixed; z-index: 0; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: var(--primary); top: -180px; left: -140px; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: var(--accent); bottom: -200px; right: -120px; opacity: .18; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(120px, 80px) scale(1.15); } }

/* ---------- announcement + header ---------- */
.announce {
  position: relative; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 85%, #000), var(--primary), color-mix(in srgb, var(--primary) 85%, #000));
  background-size: 200% 100%; animation: shimmer 8s linear infinite;
}
.announce:hover span:not(.pulse-dot) { text-decoration: underline; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.site-header {
  position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 12px var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--font-body), sans-serif;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; overflow: hidden; white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(255,255,255,.35), transparent 60%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow), 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: #06112e; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255,255,255,.5); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  font: 600 12px/1.4 var(--font-head), sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.eyebrow.accent-blue { color: #7aa0ff; background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
h1 em, h2 em, h3 em, .section-title em, .page-title em {
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #7aa0ff) 60%, #7aa0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 40px 0 80px; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.section-intro { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section-intro.left { max-width: 560px; }
.section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-row .section-head { margin-bottom: 0; }
.lead { font-size: 19px; color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 60px 0 100px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.typed {
  background: linear-gradient(100deg, var(--accent), #7aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret { display: inline-block; width: .08em; height: .9em; margin-left: .06em; background: var(--accent); vertical-align: -.08em; animation: blink 1s steps(1) infinite; box-shadow: 0 0 14px var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin-top: 26px; font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-actions.center { justify-content: center; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.shield-wrap { position: relative; width: 340px; height: 400px; display: grid; place-items: center; }
.shield-wrap.small { width: 260px; height: 300px; }
.hero-mark { position: relative; z-index: 2; width: 62%; filter: drop-shadow(0 0 40px var(--glow)); animation: float 6s ease-in-out infinite; }
.shield-wrap.small .hero-mark { width: 70%; }
@keyframes float { 50% { transform: translateY(-14px); } }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); inset: 0; margin: auto; }
.ring.r1 { width: 100%; height: 86%; animation: spin 30s linear infinite; border-style: dashed; }
.ring.r2 { width: 130%; height: 112%; animation: spin 50s linear infinite reverse; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.ring.r3 { width: 160%; height: 138%; border-color: var(--line-soft); }
.ring.r1::after, .ring.r2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.ring.r2::after { background: #7aa0ff; box-shadow: 0 0 16px #7aa0ff; }
@keyframes spin { to { transform: rotate(360deg); } }
.scanline {
  position: absolute; z-index: 3; left: 12%; right: 12%; height: 2px; top: 20%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 20px var(--accent);
  animation: scan 3.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 16%; opacity: 0; } 10%, 90% { opacity: 1; } 50% { top: 80%; } }
.float-badge {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  font: 600 13px/1 var(--font-head), sans-serif; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px #000;
}
.float-badge i { width: 16px; height: 16px; color: var(--accent); flex: none; }
.fb-1 { top: 4%;   left: -22%;  animation: float 5s ease-in-out infinite; }
.fb-2 { top: 10%;  right: -24%; animation: float 6.5s ease-in-out infinite reverse; }
.fb-3 { top: 44%;  left: -34%;  animation: float 7s ease-in-out infinite; }
.fb-4 { top: 50%;  right: -34%; animation: float 5.5s ease-in-out infinite reverse; }
.fb-5 { bottom: 6%;  left: -18%;  animation: float 6s ease-in-out infinite reverse; }
.fb-6 { bottom: 0;   right: -20%; animation: float 7.5s ease-in-out infinite; }
@media (max-width: 1280px) { .fb-2 { right: -10%; } .fb-4 { right: -16%; } .fb-6 { right: -8%; } }

.scroll-hint { position: absolute; z-index: 2; bottom: 28px; left: 50%; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translate(-50%, 14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee-section { position: relative; z-index: 1; padding: 30px 0 10px; }
.marquee-label { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  font: 600 16px/1 var(--font-head), sans-serif; color: color-mix(in srgb, var(--text) 80%, transparent);
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
}
.marquee-item svg { color: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--surface) 70%, transparent));
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--primary) 22%, transparent), transparent 45%);
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }
.card:hover { border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.icon-ring {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 22px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #000));
  box-shadow: 0 12px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.accent-green .icon-ring { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); color: #04112f; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 50%, transparent); }
.icon-sq { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; flex: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }

.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card .card-num { position: absolute; top: 26px; right: 30px; font: 700 54px/1 var(--font-head), sans-serif; color: transparent; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .3s; }
.service-card:hover .card-num { -webkit-text-stroke-color: var(--accent); }
.card-tagline { color: var(--text) !important; font-weight: 500; margin-bottom: 12px; }
.mini-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.mini-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: color-mix(in srgb, var(--text) 82%, transparent); }
.mini-list svg { color: var(--accent); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.card-link svg { transition: transform .3s var(--ease); }
.service-card:hover .card-link svg { transform: translate(3px, -3px); }

/* ---------- stats ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
}
.stat { padding: 38px 28px; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat-num { font: 700 clamp(38px, 4.5vw, 56px)/1 var(--font-head), sans-serif; letter-spacing: -.03em; }
.stat-suffix { color: var(--accent); }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- split / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-list { display: grid; gap: 22px; }
.feature { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: var(--radius); transition: background .3s; }
.feature:hover { background: rgba(255,255,255,.03); }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { color: var(--muted); }
.why-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(440px, 90vw); aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line); animation: spin 40s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px solid var(--line-soft); }
.orbit-center { position: absolute; inset: 0; margin: auto; width: 42%; animation: spin 40s linear infinite reverse; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 50%, transparent)); }
.orbit-node { position: absolute; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); animation: spin 40s linear infinite reverse; box-shadow: 0 10px 30px -10px #000; }
.orbit-node.n1 { top: -29px; left: calc(50% - 29px); }
.orbit-node.n2 { right: -29px; top: calc(50% - 29px); color: #7aa0ff; }
.orbit-node.n3 { bottom: -29px; left: calc(50% - 29px); }
.orbit-node.n4 { left: -29px; top: calc(50% - 29px); color: #7aa0ff; }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; }
.process-line { position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: var(--line-soft); overflow: hidden; }
.process-line span { position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: travel 3s linear infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.process-step { position: relative; text-align: center; }
.step-icon { position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 22px; font-size: 26px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); box-shadow: 0 0 0 8px var(--bg); }
.step-icon b { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-head), sans-serif; background: var(--primary); color: #fff; }
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 15px; }

/* ---------- entry lanes, gap, layers, case studies ---------- */
.lane-card { display: flex; flex-direction: column; min-height: 100%; }
.lane-card:nth-child(even) .icon-ring { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); color: #04112f; }
.lane-audience { font: 600 12px/1.3 var(--font-body), sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.lane-card p { margin-bottom: 24px; }
.lane-card:hover .card-link svg { transform: translate(3px, -3px); }
.gap-card { display: flex; flex-direction: column; gap: 16px; }
.gap-card p { font-size: 17px; }
.gap-label { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--font-head), sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ff6b6b; }
.gap-card.answer { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.gap-card.answer .gap-label { color: var(--accent); }
.gap-stat { margin-top: auto; font: 700 24px/1.2 var(--font-head), sans-serif; color: var(--text); }
.layer-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px; }
.layer-card h3 { font-size: 19px; margin-bottom: 6px; }
.layer-card p { font-size: 15px; }
.layer-num { position: absolute; top: 18px; right: 22px; font: 700 13px/1 var(--font-head), sans-serif; color: color-mix(in srgb, var(--text) 35%, transparent); }
.case-card { display: flex; flex-direction: column; }
.case-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.case-card p { margin-bottom: 20px; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { margin: 0; }
.quote-mark { width: 40px !important; height: 40px !important; color: var(--accent); opacity: .5; }
.quote blockquote { margin: 16px 0 24px; font-size: 19px; line-height: 1.55; color: var(--text); }
.quote figcaption { display: flex; gap: 14px; align-items: center; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--muted); }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; font: 700 15px/1 var(--font-head), sans-serif; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 76px; height: 76px; font-size: 24px; }
.avatar.xl { width: 112px; height: 112px; font-size: 36px; margin: 0 auto 24px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ---------- posts ---------- */
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-cover { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; overflow: hidden; }
.post-cover-gen { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%), var(--surface); }
.post-cover-gen img { width: 22%; opacity: .9; transition: transform .6s var(--ease); }
.post-card:hover .post-cover-gen img { transform: scale(1.12) rotate(-4deg); }
.cover-bits { position: absolute; inset: 0; padding: 14px; font: 600 26px/1.4 'JetBrains Mono', monospace; color: rgba(255,255,255,.07); word-spacing: 10px; overflow: hidden; }
.post-cover .chip { position: absolute; top: 14px; left: 14px; }
.post-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 20px; line-height: 1.25; transition: color .2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { margin-top: 10px; font-size: 15px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.post-meta .dot { opacity: .5; }
.post-meta.big { margin-top: 30px; font-size: 15px; }
.post-meta.big b { display: block; color: var(--text); }
.post-meta.big small { display: block; font-size: 13px; }
.post-card-big { grid-column: span 2; flex-direction: row; }
.post-card-big .post-cover { aspect-ratio: auto; width: 55%; min-height: 320px; }
.post-card-big .post-card-body { padding: 36px; justify-content: center; }
.post-card-big h3 { font-size: 30px; }
.chip { display: inline-flex; padding: 5px 12px; border-radius: 999px; font: 600 12px/1.3 var(--font-body), sans-serif; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); backdrop-filter: blur(8px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 36px; padding: 80px 60px; text-align: center; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); box-shadow: 0 40px 100px -40px var(--glow); }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.cta-mark { position: absolute; right: -60px; top: -40px; width: 340px; opacity: .14; animation: float 8s ease-in-out infinite; }
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); color: #fff; }
.cta-band h2 em { background: none; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.cta-band p { margin: 18px auto 34px; color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding: 110px 0 70px; text-align: center; overflow: hidden; }
.page-hero.compact { padding: 80px 0 30px; }
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.035em; }
.page-sub { margin: 22px auto 0; max-width: 640px; font-size: 19px; color: var(--muted); }
.page-sub.left { margin-left: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin-bottom: 28px; transition: color .2s, gap .2s; }
.back-link:hover { color: var(--accent); gap: 12px; }

/* ---------- about ---------- */
.prose { font-size: 17.5px; line-height: 1.8; color: color-mix(in srgb, var(--text) 86%, transparent); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; color: var(--text); scroll-margin-top: 100px; }
.prose h3 { font-size: 23px; margin-top: 1.6em; color: var(--text); scroll-margin-top: 100px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-left: 0; padding: 18px 24px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 14px 14px 0; font-size: 19px; color: var(--text); }
.prose code { font: 14.5px 'JetBrains Mono', ui-monospace, monospace; padding: 2px 7px; border-radius: 6px; background: rgba(122,160,255,.12); color: #a9c0ff; }
.prose pre { padding: 20px; border-radius: 14px; overflow-x: auto; background: #020617; border: 1px solid var(--line-soft); }
.prose pre code { background: none; padding: 0; color: #c9d6ff; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; font-size: 14px; } .prose th, .prose td { min-width: 140px; } }
.story-visual { display: grid; place-items: center; }
.mv-card .lead { font-size: 20px; color: var(--text); }
.mv-card { padding: 44px; }
.value-card h3 { margin-top: 20px; font-size: 20px; }
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--primary), transparent); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-dot { position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 16px var(--accent); }
.tl-when { font: 600 13px/1 var(--font-head), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 22px; margin: 10px 0 6px; }
.tl-item p { color: var(--muted); }
.team-card { text-align: center; }
.team-photo { width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); font: 700 34px/1 var(--font-head), sans-serif; transform: rotate(-4deg); transition: transform .4s var(--ease); }
.team-card:hover .team-photo { transform: rotate(0) scale(1.05); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.role { color: var(--accent) !important; font-weight: 500; margin-bottom: 10px; }
.team-link { display: inline-flex; margin-top: 16px; color: var(--muted); }
.team-link:hover { color: var(--accent); }

/* ---------- services ---------- */
.check-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { color: var(--accent); margin-top: 4px; }
.service-row.flip .split > :first-child { order: 2; }
.service-visual { position: relative; min-height: 380px; display: grid; place-items: center; border-radius: 36px; border: 1px solid var(--line-soft); overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 65%), var(--surface); }
.service-visual.accent-green { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 65%), var(--surface); }
.service-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.svc-orb { position: relative; width: 140px; height: 140px; border-radius: 40px; display: grid; place-items: center; font-size: 60px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #000)); box-shadow: 0 0 0 16px color-mix(in srgb, var(--primary) 12%, transparent), 0 0 0 34px color-mix(in srgb, var(--primary) 6%, transparent), 0 30px 80px -10px var(--glow); animation: float 6s ease-in-out infinite; }
.svc-orb.big { width: 180px; height: 180px; font-size: 80px; }
.accent-green .svc-orb { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); color: #04112f; box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 34px color-mix(in srgb, var(--accent) 6%, transparent), 0 30px 80px -10px color-mix(in srgb, var(--accent) 50%, transparent); }
.svc-chips { position: absolute; inset: 0; }
.svc-chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; white-space: nowrap; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.svc-chip svg { color: var(--accent); }
.svc-chip:nth-child(1) { top: 12%; left: 6%; }
.svc-chip:nth-child(2) { top: 22%; right: 6%; }
.svc-chip:nth-child(3) { bottom: 22%; left: 8%; }
.svc-chip:nth-child(4) { bottom: 10%; right: 8%; }
.service-hero { text-align: left; }
.service-body { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.service-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.service-aside .check-list { margin: 16px 0 0; font-size: 15px; }
.accent-card { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, var(--surface)), var(--surface)); }
.engage-card .card-tagline { color: var(--accent) !important; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line-soft); background: color-mix(in srgb, var(--surface) 70%, transparent); transition: border-color .3s; }
.faq-item[open] { border-color: var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 26px; font: 600 18px/1.4 var(--font-head), sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 26px 24px; color: var(--muted); }

/* ---------- blog ---------- */
.search-bar { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 36px auto 0; padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.search-bar svg { color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tag-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; font-weight: 500; transition: all .2s; }
.tag-pill small { opacity: .6; margin-left: 4px; }
.tag-pill:hover { color: var(--text); border-color: var(--line); }
.tag-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-note { text-align: center; color: var(--muted); margin-bottom: 28px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-soft); font-weight: 600; }
.pager a.active, .pager a:hover { background: var(--primary); border-color: var(--primary); }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--accent); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 12px var(--accent); }
.draft-banner { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px; background: #f5a524; color: #1a1200; font-weight: 600; font-size: 14px; }
.post-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.post-hero .container { position: relative; z-index: 1; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.post-title { font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -.03em; }
.post-hero .page-sub { margin-left: 0; }
.post-cover-img { width: 100%; border-radius: 28px; margin-bottom: 30px; border: 1px solid var(--line-soft); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 60px; justify-content: center; padding-top: 20px; padding-bottom: 40px; }
.post-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 30px; }
.post-aside h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line-soft); color: var(--muted); font-size: 14px; transition: color .2s, border-color .2s; }
.toc a.sub { padding-left: 26px; font-size: 13px; }
.toc a:hover, .toc a.active { color: var(--accent); border-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share h4 { width: 100%; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--muted); background: none; cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover, .share button.done { color: var(--accent); border-color: var(--accent); }
.author-box { display: flex; gap: 24px; align-items: flex-start; margin: 30px 0; }
.author-box small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.author-box h3 { margin: 4px 0; }
.author-box h3 a:hover { color: var(--accent); }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 34px; border-radius: var(--radius-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); border: 1px solid var(--line); margin-bottom: 30px; }
.post-cta h3 { font-size: 22px; }
.post-cta p { color: var(--muted); margin-top: 4px; }
.author-hero .role { font-size: 18px; margin-top: 10px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form-card { padding: 44px; }
.contact-form-card h2 { font-size: 28px; margin-bottom: 26px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fld input, .fld textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); font: inherit; color: var(--text);
  background: color-mix(in srgb, var(--bg) 60%, transparent); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.fld.err input, .fld.err textarea { border-color: #ff6b81; }
.fld em { color: #ff6b81; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.service-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 14px; cursor: pointer; transition: all .2s; }
.pill-radio span:hover { border-color: var(--line); }
.pill-radio input:checked + span { background: color-mix(in srgb, var(--primary) 25%, transparent); border-color: var(--primary); color: #fff; }
.pill-radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent); }
.consent { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.consent-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent.err .consent-check input { outline: 2px solid #ff6b81; outline-offset: 2px; }
.consent em { color: #ff6b81; font-size: 13px; font-style: normal; padding-left: 30px; }
.contact-form .btn { justify-self: start; }
.success { text-align: center; padding: 30px 10px; }
.success-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 28px; font-size: 40px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success p { color: var(--muted); margin: 12px 0 26px; }
.contact-aside { display: grid; gap: 20px; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 22px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.info-list a:hover { color: var(--accent); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: 40px; padding: 80px 0 30px; border-top: 1px solid var(--line-soft); background: linear-gradient(transparent, color-mix(in srgb, var(--primary) 8%, transparent)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 340px; font-size: 15px; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid a, .footer-text { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; color: color-mix(in srgb, var(--text) 82%, transparent); transition: color .2s, transform .2s; }
.footer-grid a svg, .footer-text svg { margin-top: 4px; color: var(--accent); }
.footer-grid a:hover { color: var(--accent); transform: translateX(3px); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important; border-radius: 12px; border: 1px solid var(--line-soft); }
.socials a svg { margin: 0 !important; color: currentColor !important; }
.socials a:hover { border-color: var(--accent); transform: translateY(-3px) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
.badge-secure { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-soft); }
.badge-secure img { height: 18px; width: auto; }

/* ---------- CMS helpers ---------- */
.cms-bar { position: fixed; z-index: 70; bottom: 20px; left: 20px; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(3,8,26,.92); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -10px #000; }
.cms-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cms-bar a:hover { background: rgba(255,255,255,.08); }
.cms-bar img { height: 16px; width: auto; }
.preview-flag { position: fixed; z-index: 70; top: 10px; right: 10px; padding: 6px 12px; border-radius: 999px; background: #f5a524; color: #1a1200; font: 700 11px/1 var(--font-body), sans-serif; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

/* ---------- error ---------- */
.error-hero { min-height: 70vh; display: grid; place-items: center; }
.error-code { position: relative; font: 700 clamp(100px, 20vw, 200px)/1 var(--font-head), sans-serif; letter-spacing: -.05em; background: linear-gradient(var(--text), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; color: var(--accent); opacity: .6; clip-path: inset(0 0 60% 0); animation: glitch 2.5s infinite steps(2); -webkit-text-fill-color: currentColor; }
.glitch::after { color: var(--primary); clip-path: inset(60% 0 0 0); animation-delay: -1.2s; }
@keyframes glitch { 0%, 92% { transform: none; } 94% { transform: translate(-6px, 2px); } 97% { transform: translate(5px, -2px); } }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js.no-anim .reveal { opacity: 1; transform: none; transition: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(min(var(--n, 4), 3), 1fr); }
  .process-line { display: none; }
  .service-row.flip .split > :first-child { order: 0; }
  .service-body { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; order: -1; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px; padding: 90px 24px 40px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .main-nav a { font-size: 24px; font-family: var(--font-head), sans-serif; padding: 12px 24px; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 20px; font-size: 16px !important; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-line { display: none; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .post-card-big { grid-column: auto; flex-direction: column; }
  .post-card-big .post-cover { width: 100%; min-height: 0; aspect-ratio: 16/9; }
  .post-card-big .post-card-body { padding: 24px 26px 26px; }
  .post-card-big h3 { font-size: 20px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-visual { min-height: 420px; }
  .shield-wrap { width: 240px; height: 290px; }
  .float-badge { padding: 8px 12px; font-size: 12px; }
  .fb-1 { top: -2%; left: -10%; } .fb-2 { top: 13%; right: -10%; }
  .fb-5 { bottom: 10%; left: -10%; } .fb-6 { bottom: -4%; right: -10%; }
  .fb-3, .fb-4 { display: none; }
  .cta-band { padding: 56px 24px; border-radius: 28px; }
  .card, .contact-form-card, .mv-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-cta, .author-box { flex-direction: column; align-items: flex-start; }
  .process { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px; }
  .announce { font-size: 13px; }
  .scroll-hint { display: none; }
}
/* A backdrop-filter would turn the header into the containing block of the fixed mobile menu. */
.nav-open .site-header { backdrop-filter: none; background: transparent; }
/* align article header with the body + sidebar grid */
.post-hero .container.narrow, .post .container.narrow { max-width: 1088px; }
.post-layout { max-width: 1088px; grid-template-columns: minmax(0, 1fr) 220px; }
.post-hero .page-sub { max-width: 760px; }
.post .author-box, .post .post-cta { max-width: 760px; }
