/* ==========================================================================
   ChalkPix — Redesign v6 (dark theme, finalization pass)
   - Hover tooltips are now a single JS-positioned element measured against
     real layout (getBoundingClientRect), so they cannot overlap sibling
     rows regardless of how the rail wraps.
   - Featured Work: 3D rotating carousel (same mechanic as the old badge
     carousel). Why ChalkPix: simplified to a static grid (same visual
     language as Problems).
   - Solutions hub-grid tightened; every node now has a hover popup.
   - Process steps carry real descriptive copy.
   ========================================================================== */

:root {
  --bg: #0a0d12;
  --bg-panel: #10141c;
  --bg-panel-raised: #151a24;
  --line: #232a37;
  --line-soft: #1a202b;
  --ink: #eef1f5;
  --ink-dim: #9aa4b2;
  --ink-faint: #5c6675;
  --signal: #4fd6ff;
  --signal-dim: #4fd6ff20;
  --violet: #7c6fff;
  --gradient: linear-gradient(90deg, var(--violet), var(--signal));
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 16px 40px -16px rgba(0,0,0,0.55);
  --shadow-lg: 0 30px 80px -24px rgba(0,0,0,0.6);
  --icon-glow: 0 0 0 1px rgba(79,214,255,0.1), 0 0 16px -1px rgba(79,214,255,0.45), 0 0 30px -6px rgba(79,214,255,0.3);
  --icon-glow-hover: 0 0 0 1px rgba(79,214,255,0.22), 0 0 20px 0px rgba(79,214,255,0.65), 0 0 38px -4px rgba(79,214,255,0.45);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --pad: clamp(24px, 5vw, 64px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0; color: var(--ink);
  background: radial-gradient(ellipse 1300px 850px at 50% -5%, #0c1730 0%, transparent 62%),
              linear-gradient(180deg, #05070a 0%, #070c14 40%, #05080f 75%, #05070a 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: default;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--signal); display: inline-block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
h3 { font-size: 17px; line-height: 1.3; }
p { color: var(--ink-dim); margin: 0; }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-dim); max-width: 640px; margin-top: 18px; }
.section-header { max-width: 680px; margin: 0 auto 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .eyebrow::before { display: none; }
.section-header.centered .lede { margin-left: auto; margin-right: auto; }
.section-header.tight { margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600;
  font-size: 14.5px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line);
  cursor: pointer; white-space: nowrap; transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  background: var(--bg-panel); color: var(--ink);
}
.btn-primary { background: var(--gradient); color: #05070a; border: none; box-shadow: 0 10px 24px -10px rgba(79,214,255,0.35); will-change: transform; }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; justify-content: center; flex-shrink: 0; }

#bg-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.nav, main, .footer { position: relative; z-index: 1; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,13,18,0.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--gradient); color: #05070a; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.brand-mark-img { height: 32px; width: auto; display: block; }
.brand-wordmark-img { height: 18px; width: auto; display: block; }
.nav-mid { display: flex; gap: 30px; }
.nav-mid a { font-size: 14px; color: var(--ink-dim); position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-mid a:hover { color: var(--ink); }
.nav-mid a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-mid a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }
@media (max-width: 899px) { .nav-mid { display: none; } }

.section { padding: 112px var(--pad); }
.section-tight { padding-top: 64px; }
.section-alt { background: rgba(16,20,28,0.42); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(2px); }
.section-compact { padding-top: 76px; padding-bottom: 80px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 168px var(--pad) 96px; overflow: hidden; }
.hero-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.05; position: relative; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; transform: translateY(110%); }
.hero-sweep { position: absolute; top: 0; bottom: 0; left: -20%; width: 45%; background: linear-gradient(100deg, transparent, rgba(79,214,255,0.15), transparent); transform: translateX(-120%) skewX(-12deg); pointer-events: none; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.configurator { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; position: relative; box-shadow: var(--shadow-lg); overflow: hidden; height: 616px; }
.configurator-iframe { width: 100%; height: 100%; border: none; display: block; background: transparent; }

/* ==========================================================================
   PROBLEMS WE SOLVE
   ========================================================================== */

.problem-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; perspective: 1100px; }
@media (max-width: 700px) { .problem-row { grid-template-columns: 1fr; } }
.problem-item { position: relative; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; opacity: 0; transition: border-color 0.3s ease; }
.problem-item:hover { border-color: var(--signal); }
.problem-item .pi-watermark { position: absolute; right: 14px; top: -6px; font-family: var(--font-display); font-size: 92px; font-weight: 700; color: var(--bg-panel-raised); line-height: 1; z-index: 0; user-select: none; }
.problem-item .pi-icon { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; color: var(--signal); background: var(--bg-panel-raised); box-shadow: var(--icon-glow); }
.problem-item h3 { position: relative; z-index: 1; margin-bottom: 8px; font-size: 17px; }
.problem-item p { position: relative; z-index: 1; font-size: 14px; }

/* Reused for "Why ChalkPix" simplified grid */
.badge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .badge-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .badge-row { grid-template-columns: 1fr; } }
.badge-item { position: relative; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; opacity: 0; transition: border-color 0.3s ease; }
.badge-item:hover { border-color: var(--signal); }
.badge-item .bi-icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; color: var(--signal); background: var(--bg-panel-raised); box-shadow: var(--icon-glow); }
.badge-item h3 { font-size: 15.5px; }

/* ==========================================================================
   OUR SOLUTIONS — compact hub-and-spoke grid (deterministic thirds)
   ========================================================================== */

.hub-grid { position: relative; width: 100%; max-width: 780px; margin: 0 auto; aspect-ratio: 3 / 1.85; }
.hub-connectors { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-connectors line { stroke: var(--signal); stroke-width: 0.7; opacity: 0.32; animation: hubHeartbeat 2.6s ease-in-out infinite; }
.hub-connectors line:nth-child(2) { animation-delay: 0.05s; }
.hub-connectors line:nth-child(3) { animation-delay: 0.1s; }
.hub-connectors line:nth-child(4) { animation-delay: 0.02s; }
.hub-connectors line:nth-child(5) { animation-delay: 0.08s; }
.hub-connectors line:nth-child(6) { animation-delay: 0.03s; }
.hub-connectors line:nth-child(7) { animation-delay: 0.11s; }
.hub-connectors line:nth-child(8) { animation-delay: 0.06s; }
@keyframes hubHeartbeat {
  0%, 100% { opacity: 0.28; stroke-width: 0.7; }
  12% { opacity: 0.95; stroke-width: 1.1; }
  22% { opacity: 0.4; stroke-width: 0.75; }
  32% { opacity: 0.8; stroke-width: 1; }
  42% { opacity: 0.28; stroke-width: 0.7; }
}
@media (prefers-reduced-motion: reduce) { .hub-connectors line { animation: none; opacity: 0.35; } }

.hub-connectors .pulse-dot { fill: var(--signal); filter: drop-shadow(0 0 3px rgba(79,214,255,0.9)); }
@media (prefers-reduced-motion: reduce) { .hub-connectors .pulse-dot { display: none; } }

.hub-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; width: 30%; max-width: 165px; opacity: 0; transition: opacity 0.5s ease; cursor: pointer; }
.hub-node.in { opacity: 1; }
.hub-node .hn-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--signal); box-shadow: var(--icon-glow); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.hub-node:hover .hn-icon { transform: translateY(-3px); border-color: var(--signal); box-shadow: var(--icon-glow-hover); }
.hub-node h3 { font-size: 12.5px; line-height: 1.25; }

.hub-center { left: 50%; top: 50%; width: 38%; max-width: 190px; z-index: 2; }
.hub-center .hn-icon { width: 76px; height: 76px; background: var(--gradient); color: #05070a; border: none; box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5); animation: hubIconBeat 2.6s ease-in-out infinite; }
@keyframes hubIconBeat {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5), 0 0 0 0 rgba(79,214,255,0.35); }
  12% { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.7), 0 0 0 8px rgba(79,214,255,0.14); }
  22% { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5), 0 0 0 0 rgba(79,214,255,0); }
  32% { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.65), 0 0 0 5px rgba(79,214,255,0.1); }
  42% { box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5), 0 0 0 0 rgba(79,214,255,0); }
}
@media (prefers-reduced-motion: reduce) { .hub-center .hn-icon { animation: none; } }
.hub-center h3 { font-size: 15px; font-family: var(--font-display); }
.hub-center span.tag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.hub-grid-mobile { display: none; }
@media (max-width: 820px) {
  .hub-grid { display: none; }
  .hub-grid-mobile { display: block; }
  .hub-mobile-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 28px; cursor: pointer; }
  .hub-mobile-center .hn-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--gradient); color: #05070a; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(79,214,255,0.5), var(--icon-glow); }
  .hub-mobile-spokes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .hub-mobile-spokes .hn-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--signal); margin: 0 auto 8px; box-shadow: var(--icon-glow); }
  .hub-mobile-spokes .spoke { text-align: center; cursor: pointer; }
  .hub-mobile-spokes h3 { font-size: 12px; }
}

/* ==========================================================================
   Shared "rail" pattern — Industries
   ========================================================================== */

.rail { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 18px; }
.rail::before { content: ""; position: absolute; top: 34px; left: 4%; right: 4%; height: 1px; background: var(--line); z-index: 0; }
@media (max-width: 700px) { .rail::before { display: none; } }
.rail-item { position: relative; z-index: 1; flex: 1 1 140px; max-width: 160px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; cursor: pointer; }
.rail-item.in { opacity: 1; transform: translateY(0); }
.rail-item .ri-icon { width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-panel); display: flex; align-items: center; justify-content: center; color: var(--signal); box-shadow: var(--icon-glow); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.rail-item:hover .ri-icon, .rail-item.popup-open .ri-icon { transform: translateY(-3px); border-color: var(--signal); box-shadow: var(--icon-glow-hover); }
.rail-item h3 { font-size: 14px; }

/* ==========================================================================
   Shared hover tooltip — single JS-positioned element, measured against
   real layout on every show, so it can never overlap sibling content.
   ========================================================================== */

.hover-tooltip {
  position: fixed; z-index: 300; width: 240px; background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.hover-tooltip.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hover-tooltip::before { content: ""; position: absolute; width: 12px; height: 12px; background: var(--bg-panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); left: var(--arrow-left, 50%); transform: translateX(-50%) rotate(45deg); }
.hover-tooltip.arrow-top::before { top: -6px; }
.hover-tooltip.arrow-bottom::before { bottom: -6px; left: var(--arrow-left, 50%); transform: translateX(-50%) rotate(225deg); }
.hover-tooltip.arrow-left::before { left: -6px; top: var(--arrow-top, 50%); transform: translateY(-50%) rotate(-45deg); }
.hover-tooltip.arrow-right::before { right: -6px; left: auto; top: var(--arrow-top, 50%); transform: translateY(-50%) rotate(135deg); }
.ht-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: 6px; }
.ht-text { font-size: 12.5px; color: var(--ink-dim); }

/* ==========================================================================
   FEATURED WORK — horizontal auto-scrolling marquee, 3 cards visible.
   Adding a new project = adding one .work-card to the track; the JS
   measures actual widths at runtime so nothing else needs updating.
   ========================================================================== */

.work-marquee {
  position: relative; overflow: hidden; max-width: 980px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.work-track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.work-card { flex: 0 0 300px; width: 300px; height: 320px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; transition: border-color 0.3s ease; }
.work-card:hover { border-color: var(--signal); }
.work-media { position: relative; flex: 1; background: var(--bg-panel-raised); display: flex; align-items: center; justify-content: center; min-height: 0; }
.work-media svg { width: 55%; height: 55%; }
.media-badge { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--bg-panel); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; color: var(--ink-dim); z-index: 2; }
.media-placeholder-tag { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-faint); border: 1px dashed var(--line); padding: 3px 6px; border-radius: 5px; z-index: 2; background: var(--bg-panel); }
.work-body { padding: 18px 20px 20px; }
.work-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.work-body p { font-size: 13px; margin-bottom: 12px; }
.work-demo-link { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--signal); }
.work-demo-link:hover { text-decoration: underline; }

@media (max-width: 980px) { .work-marquee { max-width: 642px; } }
@media (max-width: 660px) { .work-marquee { max-width: 300px; } }

.carousel-hint { display: block; text-align: center; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }


/* ==========================================================================
   HOW WE WORK — single straight vertical spine with per-step copy
   ========================================================================== */

.process-track { position: relative; max-width: 880px; margin: 0 auto; padding: 10px 0; }
.process-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); overflow: hidden; }
.process-spine-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--gradient); }
.process-flow-dot { position: absolute; left: 50%; top: 0%; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(79,214,255,0.7); animation: flowDown 6s linear infinite; }
@keyframes flowDown { 0% { top: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.process-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; min-height: 148px; }
.process-item .node { grid-column: 2; display: flex; justify-content: center; position: relative; z-index: 2; }
.node-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-panel); border: 2px solid var(--line); transition: all 0.4s ease; }
.process-item.lit .node-dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 6px rgba(79,214,255,0.16); }

.process-side { padding: 14px 0; }
.process-side .side-inner { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.process-item.in .side-inner { opacity: 1; transform: translateY(0); }
.process-side .side-inner p { transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s; opacity: 0; transform: translateY(8px); margin-top: 8px; font-size: 13px; max-width: 280px; }
.process-item.in .side-inner p { opacity: 1; transform: translateY(0); }
.process-item .side-left { grid-column: 1; text-align: right; padding-right: 28px; }
.process-item .side-left .side-inner p { margin-left: auto; }
.process-item .side-right { grid-column: 3; text-align: left; padding-left: 28px; }
.process-item .spacer { visibility: hidden; }
.process-item .num { font-family: var(--font-mono); font-size: 12px; color: var(--signal); display: block; margin-bottom: 4px; }
.process-item h3 { font-size: 15px; }
.process-item .ps-icon { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--signal-dim); color: var(--signal); align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: var(--icon-glow); }
.side-left .ps-icon { margin-left: auto; }

@media (max-width: 700px) {
  .process-spine { left: 21px; }
  .process-flow-dot { left: 21px; }
  .process-item { grid-template-columns: 42px 1fr; min-height: auto; }
  .process-item .node { grid-column: 1; }
  .process-item .side-left, .process-item .side-right { grid-column: 2; text-align: left; padding-left: 18px; padding-right: 0; }
  .process-item .side-left .ps-icon, .process-item .side-right .ps-icon { margin-left: 0; }
  .process-item .side-left .side-inner p, .process-item .side-right .side-inner p { margin-left: 0; }
  .process-item .spacer { display: none; }
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-section { padding: 130px var(--pad) 120px; overflow: hidden; position: relative; }
.contact-glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 720px; height: 320px; background: radial-gradient(ellipse at center, rgba(124,111,255,0.18), transparent 70%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-points { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.contact-point { display: flex; gap: 14px; align-items: flex-start; }
.contact-point .cp-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-panel); display: flex; align-items: center; justify-content: center; color: var(--signal); flex-shrink: 0; box-shadow: var(--icon-glow); }
.contact-point h3 { font-size: 14.5px; margin-bottom: 3px; }
.contact-point p { font-size: 13.5px; }
.contact-form-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); }
.form-field input, .form-field select, .form-field textarea { font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--bg-panel-raised); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(79,214,255,0.16); }
.form-field textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }
.form-note { font-size: 12px; color: var(--ink-faint); margin-top: 14px; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .fs-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--signal-dim); color: var(--signal); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--icon-glow); }
.form-success h3 { font-size: 19px; margin-bottom: 8px; }
.form-success p { font-size: 14px; }
.contact-form.hide { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--line-soft); padding: 64px var(--pad) 32px; background: var(--bg-panel); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-faint); }
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: var(--ink-faint); }
.footer-bottom .socials a:hover { color: var(--signal); }

.reveal { opacity: 0; transform: translateY(28px); }

/* ===== WHATSAPP WIDGET ===== */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.whatsapp-widget svg {
  width: 30px;
  height: 30px;
}

.whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

/* Pulse ring animation */
.whatsapp-widget::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
