/* =========================================================
   Advald — Media Buying Agency
   Premium dark/light performance-marketing theme
   ========================================================= */

:root {
  /* Palette */
  --navy-900: #070b14;
  --navy-800: #0a0f1c;
  --navy-700: #0f1626;
  --navy-600: #16203a;
  --navy-500: #1f2c4d;

  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #dde4ee;
  --gray-400: #9aa6bd;
  --gray-500: #6b7793;
  --ink: #0c1322;

  /* Accent */
  /* Accent — Advald brand teal (from logo gradient) */
  --accent: #1fb39a;
  --accent-600: #14917e;
  --accent-soft: rgba(31, 179, 154, 0.14);

  /* Tokens */
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --shadow: 0 20px 50px -20px rgba(7, 11, 20, 0.45);
  --shadow-card: 0 12px 30px -16px rgba(7, 11, 20, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--gray-400); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--navy-900); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #04201c; box-shadow: 0 10px 24px -10px rgba(31,179,154,.6); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--gray-200); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* On dark backgrounds */
.section-dark .btn-ghost, .hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.25); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: 16px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--accent); }
.accent-text { color: var(--accent-600); }
.hero .accent-text { color: var(--accent); }

.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.section-lead { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--gray-500); max-width: 62ch; }
.section-dark .section-lead { color: var(--gray-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--gray-200); box-shadow: 0 6px 20px -16px rgba(7,11,20,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-mark { color: var(--accent-600); font-size: 18px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--gray-500); position: relative; transition: color .2s; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--accent-600); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 6px; padding: 0 var(--pad);
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s;
  border-top: 1px solid transparent;
}
.mobile-menu.open { max-height: 540px; padding: 14px var(--pad) 26px; border-color: var(--gray-200); }
.mobile-menu a { padding: 15px 4px; font-weight: 600; font-size: 16px; color: var(--gray-500); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a:active { color: var(--ink); }
.mobile-menu a.btn { margin-top: 16px; padding: 15px 22px; color: #04201c; border: 0; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-600), transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: clamp(70px, 12vh, 130px) 0 60px;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  top: -150px; right: -120px; filter: blur(20px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-title { font-size: clamp(33px, 7vw, 76px); font-weight: 800; line-height: 1.05; }
.hero-sub { margin: 22px auto 0; font-size: clamp(16px, 2vw, 20px); color: var(--gray-400); max-width: 56ch; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-trust { margin-top: 46px; display: grid; grid-template-columns: repeat(3, auto); gap: 30px 52px; justify-content: center; }
.hero-trust strong { font-family: var(--font-display); font-size: clamp(24px, 5vw, 30px); color: var(--white); display: block; }
.hero-trust span { font-size: 13px; color: var(--gray-400); }

/* Typing effect on the headline's last word */
.type-word { white-space: nowrap; }
.type-caret {
  display: inline-block; width: 3px; height: 0.92em; margin-left: 6px;
  background: var(--accent); border-radius: 2px; vertical-align: text-bottom;
  transform: translateY(2px); animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Animated mesh — full-bleed hero background behind the content */
.hero-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; pointer-events: none;
  opacity: .28;
  /* fade the mesh out toward the bottom so it sits quietly behind text */
  -webkit-mask-image: radial-gradient(130% 100% at 70% 30%, #000 35%, transparent 92%);
          mask-image: radial-gradient(130% 100% at 70% 30%, #000 35%, transparent 92%);
}

.logo-strip { position: relative; z-index: 1; margin-top: 60px; display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; opacity: .6; }
.logo-strip span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--gray-200); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 110px) 0; }
.section-dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 34px 32px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
/* Accent bar that sweeps in on hover */
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 15px; color: var(--accent-600); margin-bottom: 20px;
  background: linear-gradient(145deg, var(--accent-soft), rgba(31,179,154,.02));
  border: 1px solid rgba(31,179,154,.25);
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.service-icon svg { width: 24px; height: 24px; display: block; }
.service-card:hover .service-icon { background: var(--accent); color: #04201c; border-color: transparent; transform: translateY(-2px); }
.service-card h3 { font-size: 21px; margin: 0 0 10px; }
.service-card p { font-size: 15px; color: var(--gray-500); }
/* Capabilities as a clean two-column checklist */
.service-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.service-tags li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--gray-500); }
.service-tags li::before {
  content: ''; flex-shrink: 0; width: 14px; height: 14px; background-color: var(--accent-600);
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Sources */
.sources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.source-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(33,52,84,.55), rgba(13,20,36,.55));
  border: 1px solid rgba(120,160,200,.14);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: 0 18px 40px -26px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.source-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(31,179,154,.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.source-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 50px -28px rgba(0,0,0,.7); }
.source-card:hover::before { opacity: 1; }
.source-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.source-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; flex-shrink: 0; color: var(--accent);
  background: linear-gradient(145deg, var(--accent-soft), rgba(255,255,255,.02));
  border: 1px solid rgba(31,179,154,.28);
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.source-icon svg { width: 22px; height: 22px; display: block; }
.source-card:hover .source-icon { background: var(--accent); color: #04201c; border-color: transparent; transform: translateY(-1px); }
.source-card h3 { font-size: 19px; }
.source-desc { font-size: 14.5px; color: var(--gray-400); margin: 0 0 20px; min-height: 42px; }

/* Channels as a clean checklist with hairline dividers */
.source-card ul { display: grid; gap: 0; }
.source-card li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; font-weight: 500; color: var(--gray-200);
  padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s, padding-left .2s;
}
.source-card li:last-child { border-bottom: 0; }
.source-card li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; background-color: var(--accent);
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.source-card li:hover { color: var(--white); padding-left: 8px; }

/* Process — connected node flow echoing the hero mesh */
.process-flow { position: relative; }
.process-nodes {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  position: relative; counter-reset: step;
}
/* The connecting line behind the nodes (aligned to dot centers) */
.process-nodes::before {
  content: ''; position: absolute; top: 29px; left: 10%; right: 10%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(31,179,154,.45), rgba(64,224,200,.55), rgba(31,179,154,.45), transparent);
}
/* A pulse that travels the line like a click moving through the network */
.process-nodes::after {
  content: ''; position: absolute; top: 24px; left: 10%; width: 12px; height: 12px; border-radius: 50%; z-index: 1;
  background: var(--accent); box-shadow: 0 0 14px 4px rgba(31,179,154,.7);
  animation: flowPulse 5s var(--ease) infinite;
}
@keyframes flowPulse {
  0%   { left: 10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 90%; opacity: 0; }
}
.pnode { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pnode-dot {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--accent-600);
  background: radial-gradient(circle at 50% 38%, var(--accent-soft), var(--white));
  border: 1.5px solid rgba(31,179,154,.45); box-shadow: 0 0 0 6px rgba(31,179,154,.06);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.process-flow:hover .pnode:hover .pnode-dot,
.pnode:hover .pnode-dot { transform: translateY(-3px); background: var(--accent); color: #04201c; box-shadow: 0 0 0 8px rgba(31,179,154,.12), 0 0 18px rgba(31,179,154,.5); }
.pnode h3 { font-size: 18px; margin-bottom: 6px; }
.pnode p { font-size: 14px; color: var(--gray-500); }

/* Tracking — centered over a decorative mesh */
.section-mesh { position: relative; overflow: hidden; }
.section-mesh > .container { position: relative; z-index: 1; }
.sources-mesh {
  opacity: .42;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 0%, #000 0%, transparent 95%);
          mask-image: radial-gradient(125% 100% at 50% 0%, #000 0%, transparent 95%);
}
.track-mesh {
  opacity: .18;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 50%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 75% at 50% 50%, #000 0%, transparent 78%);
}
.track-wrap { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.track-wrap .section-lead { margin-left: auto; margin-right: auto; }
.track-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; justify-content: center; }
.track-tags span {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--gray-200);
  transition: border-color .2s, background .2s, color .2s, transform .25s var(--ease);
}
.track-tags span:hover { border-color: var(--accent); color: var(--white); background: var(--accent-soft); transform: translateY(-2px); }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industries span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 2vw, 18px);
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gray-200);
  transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.industries span:hover { background: var(--navy-800); color: var(--white); border-color: transparent; transform: translateY(-3px); }

/* Check badge (used in contact points) */
.check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #04201c;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-points { margin-top: 28px; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--gray-200); font-weight: 500; }
.contact-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--gray-200); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.08); }
.field select option { color: var(--ink); }
.field input.invalid { border-color: #ff6b6b; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); min-height: 20px; }

/* Footer — visually separated from the contact section above */
.site-footer {
  background: #04060c; color: var(--gray-400); padding: 72px 0 30px;
  border-top: 1px solid rgba(120,160,200,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; }
.footer-col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 13px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .process-nodes::after { animation: none; opacity: 0; }
  .type-caret { animation: none; opacity: .6; }
  * { transition-duration: .01ms !important; }
}

/* Vertical pulse for the stacked process flow */
@keyframes flowPulseV {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Responsive ---------- */

/* Tablet and below */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .nav-actions .btn-primary { display: none; }

  /* Process flow becomes a vertical timeline */
  .process-nodes { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .process-nodes::before { top: 0; bottom: 0; left: 30px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(31,179,154,.45), rgba(64,224,200,.55), rgba(31,179,154,.45), transparent); }
  .process-nodes::after { top: 0; left: 25px; animation: flowPulseV 5s var(--ease) infinite; }
  .pnode { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; row-gap: 2px; text-align: left; padding: 16px 0; }
  .pnode-dot { grid-row: 1 / span 2; align-self: center; margin-bottom: 0; }
  .pnode h3 { align-self: end; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Tighter vertical rhythm */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .section-lead { margin-top: 14px; }

  /* Hero */
  .hero { padding: 52px 0 48px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 26px; gap: 12px; }
  .hero-cta .btn { width: 100%; }            /* full-width tap targets */
  .hero-trust { margin-top: 36px; gap: 18px; }
  .hero-mesh { opacity: .22; }
  .logo-strip { margin-top: 44px; gap: 12px 24px; }
  .logo-strip span { font-size: 14px; }

  /* One-column card grids */
  .services-grid, .sources-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
  .source-card { padding: 26px 22px; }
  .source-desc { min-height: 0; }

  /* Industries centered */
  .industries { justify-content: center; }

  /* Contact */
  .contact-form { grid-template-columns: 1fr; gap: 16px; }

  /* Footer: brand on its own row, links in two tidy columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding-inline: 18px; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .btn { padding: 13px 22px; }
}
