/* ════════════════════════════════════════════════════════════════════
   Veedo Digital — website styles
   Brand: Direction A (Datagrid V). Navy primary, azure interactive,
   teal accent. Manrope throughout.
═══════════════════════════════════════════════════════════════════════ */

:root {
  --navy:     #16325C;
  --navy-700: #1d4170;
  --azure:    #0078D4;
  --teal:     #00A3A3;
  --gray:     #D9E2EC;
  --charcoal: #1F2937;
  --white:    #FFFFFF;
  --bg:       #F6F8FB;
  --bg-2:     #EEF3F9;
  --ink-1:    #1F2937;
  --ink-2:    #475569;
  --ink-3:    #64748B;
  --ink-4:    #94A3B8;
  --rule:     #E2E8F0;
  --dark:     #0B1424;
  --dark-2:   #0E1A2F;

  --maxw: 1240px;
  --pad: 32px;
  --font: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md: 0 4px 12px rgba(16,24,40,0.06), 0 12px 32px rgba(16,24,40,0.06);
  --shadow-lg: 0 24px 60px rgba(16,24,40,0.12);

  /* Geometry tokens — driven by the Geometry tweak. */
  --r-btn: 10px;
  --r-card: 16px;
  --r-input: 10px;
  --r-ico: 12px;
  --r-cell: 2px;   /* the mark's data cells */
}

/* ══════════════════════════════════════════════════════════════════════
   TWEAK VARIANTS — reshape the whole feel from three controls.
   Applied as data-attributes on <html>. Base CSS above is the default
   (Signature · Comfortable · Soft), so an untweaked page needs nothing.
═══════════════════════════════════════════════════════════════════════ */

/* ── Palette mood ─────────────────────────────────────────────────── */
/* Monochrome: one restrained cool accent, azure and teal collapse to a
   single refined steel-blue — serious, institutional, low-key. */
html[data-palette="mono"] {
  --azure: #2A6099;
  --teal:  #2A6099;
}
/* Vivid: brighter, higher-chroma azure + teal — energetic, digital-first. */
html[data-palette="vivid"] {
  --azure: #008CFF;
  --teal:  #00C4C4;
}
/* Recolor the mark's apex cell + hero glow strength so the palette change
   reads everywhere, not just on elements already bound to the tokens. */
.mark svg rect:last-of-type,
.hero-motif rect:last-of-type { fill: var(--teal); }
html[data-palette="vivid"] .hero-grid-fade {
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(0,140,255,0.34), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(0,196,196,0.24), transparent 55%);
}
html[data-palette="mono"] .hero-grid-fade {
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(42,96,153,0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(42,96,153,0.14), transparent 55%);
}

/* ── Density ──────────────────────────────────────────────────────── */
/* Compact: tighter rhythm, denser corporate deck feel. */
html[data-density="compact"] { --pad: 26px; }
html[data-density="compact"] .section { padding: 74px 0; }
html[data-density="compact"] .hero { padding: 84px 0 92px; }
html[data-density="compact"] .services-grid,
html[data-density="compact"] .team-grid { gap: 18px; margin-top: 44px; }
html[data-density="compact"] .section-head p { font-size: 18px; margin-top: 16px; }
html[data-density="compact"] .svc-body { padding: 20px; }
html[data-density="compact"] .stats { margin-top: 56px; padding-top: 40px; }
html[data-density="compact"] .process-grid { margin-top: 48px; }
html[data-density="compact"] .about-cols { gap: 56px; }
/* Editorial: generous, magazine-like rhythm. */
html[data-density="editorial"] { --pad: 40px; }
html[data-density="editorial"] .section { padding: 160px 0; }
html[data-density="editorial"] .hero { padding: 160px 0 170px; }
html[data-density="editorial"] .services-grid,
html[data-density="editorial"] .team-grid { gap: 32px; margin-top: 88px; }
html[data-density="editorial"] .section-head p { font-size: 22px; margin-top: 28px; }
html[data-density="editorial"] .stats { margin-top: 104px; padding-top: 72px; }
html[data-density="editorial"] .process-grid { margin-top: 96px; }
html[data-density="editorial"] .about-cols { gap: 104px; }

/* ── Geometry ─────────────────────────────────────────────────────── */
html[data-geometry="sharp"] { --r-btn: 0px; --r-card: 0px; --r-input: 0px; --r-ico: 0px; }
html[data-geometry="rounded"] { --r-btn: 999px; --r-card: 24px; --r-input: 14px; --r-ico: 16px; }

/* ════════════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ── Reusable bits ──────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--azure);
  margin: 0;
}
.eyebrow.on-dark { color: var(--teal); }

.section { padding: 120px 0; }
.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.06; color: var(--navy);
  margin: 18px 0 0;
}
.section-head p {
  font-size: 20px; line-height: 1.6; color: var(--ink-2);
  margin: 22px 0 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  padding: 13px 22px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: background .16s, box-shadow .16s, color .16s, transform .16s;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: #008f8f; box-shadow: 0 8px 24px rgba(0,163,163,0.28); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--gray); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
.btn-ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.btn-ghost.on-dark:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,0.06); color: #fff; }

.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.mark .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.mark .wordmark .dot { color: var(--teal); }
.mark.on-dark, .mark.on-dark .wordmark { color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--rule); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: color .14s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* ════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 130px;
}
/* faint oversized chevron motif, top-right */
.hero-motif {
  position: absolute; top: -60px; right: -40px;
  opacity: 0.3; pointer-events: none;
  transform: rotate(0deg);
}
/* Each data cell drifts and shimmers on its own gentle loop — the mark
   feels alive without distracting from the headline. Staggered so the
   chevron never pulses in unison. */
@media (prefers-reduced-motion: no-preference) {
  .hero-motif rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroCellDrift 7s ease-in-out infinite;
  }
  .hero-motif rect:nth-of-type(1) { animation-delay: 0s;    }
  .hero-motif rect:nth-of-type(2) { animation-delay: 1.1s;  }
  .hero-motif rect:nth-of-type(3) { animation-delay: 2.3s;  }
  .hero-motif rect:nth-of-type(4) { animation-delay: 1.7s;  }
  .hero-motif rect:nth-of-type(5) { animation: heroApexPulse 5s ease-in-out infinite; }
}
@keyframes heroCellDrift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50%      { transform: translateY(-7px) scale(1.06); opacity: 1; }
}
@keyframes heroApexPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50%      { transform: translateY(-4px) scale(1.14); opacity: 1; }
}
.hero-grid-fade {
  position: absolute; inset: -20% -30%;
  background:
    radial-gradient(900px 500px at 30% 20%, rgba(0,120,212,0.32), transparent 60%),
    radial-gradient(800px 600px at 70% 90%, rgba(0,163,163,0.22), transparent 55%),
    radial-gradient(600px 400px at 90% 30%, rgba(22,50,92,0.55), transparent 60%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grid-fade { animation: heroGradientDrift 18s ease-in-out infinite alternate; }
}
@keyframes heroGradientDrift {
  0%   { transform: translate3d(-18%, -4%, 0); }
  50%  { transform: translate3d(4%, 5%, 0); }
  100% { transform: translate3d(18%, -3%, 0); }
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.hero h1 {
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.0;
  margin: 22px 0 0; max-width: 16ch;
}
.hero h1 .accent { color: var(--teal); }
.hero .lede {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.6;
  color: rgba(255,255,255,0.74); margin: 26px 0 0; max-width: 56ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.hero-trust .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.hero-trust .badges { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .badge {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 9px;
}
.hero-trust .badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--teal);
}

/* ════════════════════════════════════════════════════════════════════
   WHAT WE DO — services
═══════════════════════════════════════════════════════════════════════ */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px;
}
.svc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; border-radius: 22px; overflow: hidden; background: var(--dark); box-shadow: 0 18px 40px -18px rgba(11,20,36,0.45); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -20px rgba(11,20,36,0.55); }
.svc-img { position: absolute; inset: 0; z-index: -1; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,36,0) 35%, rgba(11,20,36,0.55) 62%, rgba(11,20,36,0.92) 100%); pointer-events: none; }
.svc-body { position: relative; display: flex; flex-direction: column; padding: 24px; color: #fff; }
.svc h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: #fff; margin: 0; }
.svc h3 a { color: inherit; }
.svc h3 a:hover { color: #fff; }
.svc p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.72); margin: 8px 0 20px; }
.svc-btn { align-self: stretch; background: #fff; color: var(--navy); box-shadow: none; border-radius: 999px; padding: 13px 22px; }
.svc-btn:hover { background: #fff; color: var(--azure); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.svc-ico { width: 52px; height: 52px; border-radius: var(--r-ico); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════════════
   HOW WE WORK — process
═══════════════════════════════════════════════════════════════════════ */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 72px; position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 26px; left: 26px; right: 26px;
  height: 2px; background: var(--rule);
}
.step { position: relative; padding-right: 36px; }
.step .dot {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; font-size: 18px; color: var(--navy);
  margin-bottom: 26px;
}
.step.is-accent .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.step.is-navy .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 10px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.step .meta { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.08em; margin-top: 12px; }
.process-grid::after { content: ''; position: absolute; top: 26px; left: 26px; height: 2px; width: calc(var(--p, 0) * 25%); background: linear-gradient(90deg, var(--navy), var(--teal)); transition: width 1.1s cubic-bezier(.65,0,.35,1); z-index: 0; }
.process-grid.is-anim .step .dot { background: #fff; border-color: var(--rule); color: var(--ink-3); transition: background .4s, border-color .4s, color .4s, transform .4s, box-shadow .4s; }
.process-grid.is-anim .step h3, .process-grid.is-anim .step p { transition: opacity .4s; opacity: .45; }
.process-grid.is-anim .step.is-done .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.process-grid.is-anim .step.is-done h3, .process-grid.is-anim .step.is-done p { opacity: .8; }
.process-grid.is-anim .step.is-current .dot { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 8px rgba(0,163,163,0.14); }
.process-grid.is-anim .step.is-current h3, .process-grid.is-anim .step.is-current p { opacity: 1; }
@media (max-width: 980px) { .process-grid::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .process-grid::after, .process-grid.is-anim .step .dot { transition: none; } }

/* ════════════════════════════════════════════════════════════════════
   WHO WE ARE — about
═══════════════════════════════════════════════════════════════════════ */
.journey { background: var(--dark); color: #fff; padding: 0; }
.journey-cols { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.journey-copy { padding: 96px 64px 96px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; justify-content: center; }
.journey-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #7FB3E8; margin: 0 0 32px; }
.journey-copy h2 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: #fff; margin: 0; max-width: 11ch; }
.journey-copy h2 .accent { color: var(--teal); }
.journey-lede { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.82); max-width: 40ch; margin: 36px 0 0; }
.journey-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.3); font-size: 15px; font-weight: 700; color: #fff; align-self: flex-start; transition: border-color .14s; }
.journey-link:hover { border-color: var(--teal); }
.journey-link .arrow { font-size: 18px; }
.journey-track { position: relative; padding: 96px 64px 96px 80px; display: flex; gap: 40px; }
.journey-rail { position: relative; width: 2px; background: rgba(255,255,255,0.16); flex: none; margin: 10px 0; overflow: hidden; }
.journey-bar { position: absolute; left: 0; width: 100%; height: 44px; background: var(--azure); box-shadow: 0 0 14px var(--azure); animation: journey-slide 4.5s cubic-bezier(.45,0,.35,1) infinite; }
@keyframes journey-slide { 0% { top: -44px; } 100% { top: 100%; } }
.journey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.jstep { position: relative; display: flex; flex-direction: column; }
.jdot { position: absolute; left: -46px; top: 12px; width: 11px; height: 11px; border-radius: 1px; }
.jnum { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; }
.jstep h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; color: #fff; margin: 4px 0 8px; }
.jmeta { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.journey-motif { position: absolute; right: 64px; bottom: 56px; opacity: 0.35; }
@media (max-width: 900px) {
  .journey-cols { grid-template-columns: 1fr; }
  .journey-copy { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 72px var(--pad); }
  .journey-track { padding: 64px var(--pad) 80px calc(var(--pad) + 40px); }
  .journey-list { gap: 48px; }
}

.about { background: var(--navy); color: #fff; }
.about .section-head h2 { color: #fff; }
.about-cols {
  display: grid; grid-template-columns: minmax(0, 760px); gap: 80px; align-items: center;
  margin-top: 24px;
}
.about-body p { font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.78); margin: 0 0 22px; }
.about-body p strong { color: #fff; font-weight: 700; }
.about-photo {
  border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}
.about-photo image-slot {
  width: 100%; height: 100%;
  border-radius: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 12px, rgba(255,255,255,0.09) 12px 24px);
  border: 1px solid rgba(255,255,255,0.12);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 80px; padding-top: 56px; border-top: 1px solid rgba(255,255,255,0.14);
}
.stat .num { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.stat .num .u { color: var(--teal); }
.stat .lbl { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
.member .avatar {
  aspect-ratio: 1; border-radius: var(--r-card); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; letter-spacing: -0.02em;
}
.member h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.member .role { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.member p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; }

/* ════════════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════════════ */
.contact { background: var(--bg); }
.contact-cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; margin-top: 24px; }
.contact-aside h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; color: var(--navy); margin: 18px 0 0; }
.contact-aside p { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 22px 0 0; }
.contact-points { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.cpoint { display: flex; gap: 16px; align-items: flex-start; }
.cpoint .ic {
  width: 42px; height: 42px; border-radius: var(--r-input); flex: 0 0 auto;
  background: #fff; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.cpoint .t { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cpoint .v { font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 3px; }

/* Form */
.form-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 44px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px;
}
.field label .req { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink-1);
  padding: 14px 16px; border: 1.5px solid var(--gray); border-radius: var(--r-input);
  background: var(--bg); transition: border-color .14s, box-shadow .14s, background .14s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); background: #fff;
  box-shadow: 0 0 0 4px rgba(0,120,212,0.10);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #DC2626; background: #fff; }
.field .err { display: none; font-size: 13px; color: #DC2626; margin-top: 7px; font-weight: 500; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.form-foot .note { font-size: 13px; color: var(--ink-3); max-width: 38ch; line-height: 1.5; }
.form-success {
  display: none; text-align: center; padding: 30px 20px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0,163,163,0.12);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.form-success h3 { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 0 0 10px; }
.form-success p { font-size: 17px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════ */
.footer { background: var(--dark); color: #fff; padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.55); margin: 22px 0 0; max-width: 34ch; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 20px; }
.footer-col a { display: block; font-size: 15px; color: rgba(255,255,255,0.78); padding: 7px 0; transition: color .14s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 0.08em; }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process-grid::before { display: none; }
  .about-cols { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { aspect-ratio: 16/9; max-width: 520px; }
  .about-photo { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-cols { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 1100px) { .nav-links { gap: 24px; } .nav-cta .btn-ghost { display: none; } }
@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .services-grid, .stats, .team-grid, .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
}

/* ══════════════════════════════════════════════════════════════════════
   TWEAKS PANEL — hidden until the host toolbar activates edit mode.
═══════════════════════════════════════════════════════════════════════ */
.vtweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  width: 288px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(16,24,40,0.22), 0 2px 8px rgba(16,24,40,0.10);
  font-family: var(--font);
  color: var(--ink-1);
  overflow: hidden;
  user-select: none;
}
.vtweaks[hidden] { display: none; }
.vtweaks-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--navy); color: #fff;
  cursor: grab;
}
.vtweaks-hd:active { cursor: grabbing; }
.vtweaks-hd b { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.vtweaks-hd .dotmark { display: inline-flex; gap: 5px; align-items: center; }
.vtweaks-x {
  appearance: none; border: 0; background: transparent; color: rgba(255,255,255,0.7);
  font-size: 15px; cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.vtweaks-x:hover { background: rgba(255,255,255,0.14); color: #fff; }
.vtweaks-body { padding: 18px 16px 20px; }
.vtweaks-group + .vtweaks-group { margin-top: 22px; }
.vtweaks-group > label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 9px;
}
.vseg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 4px;
  background: var(--bg-2); border-radius: 10px;
}
.vseg button {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: transparent;
  padding: 9px 6px; border-radius: 7px; line-height: 1.1;
  transition: background .14s, color .14s, box-shadow .14s;
}
.vseg button:hover { color: var(--navy); }
.vseg button[aria-pressed="true"] {
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.vtweaks-hint {
  margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-4);
}



/* ═════════════════════════════════════════════════════════════════
   SUBPAGES — service pages, blog
══════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--dark); color: #fff; padding: 72px 0 88px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(0,120,212,0.22), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { display: inline-block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.crumb:hover { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 18px 0 0; max-width: 16ch; }
.page-hero h1 .accent { color: var(--teal); }
.page-hero .lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; color: rgba(255,255,255,0.74); margin: 24px 0 0; max-width: 56ch; }
.page-hero-ico { width: 160px; height: 160px; border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; flex: none; }
.page-hero-ico svg { stroke: #fff; }
.page-intro { padding: 96px 0; }
.page-intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.page-intro-text { font-size: 22px; line-height: 1.6; color: var(--ink-1); margin: 0; max-width: 60ch; font-weight: 500; letter-spacing: -0.01em; }
.page-deliver { background: var(--bg); }
.deliver-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 56px; }
.deliver { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); padding: 32px; }
.deliver .dnum { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.1em; }
.deliver h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); margin: 14px 0 12px; }
.deliver p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.page-outcomes { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.outcomes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.outcome .onum { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.outcome .olbl { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.fit-list { list-style: none; margin: 0; padding: 0; }
.fit-list li { font-size: 18px; color: var(--ink-1); padding: 18px 0 18px 30px; border-top: 1px solid var(--rule); position: relative; }
.fit-list li:last-child { border-bottom: 1px solid var(--rule); }
.fit-list li::before { content: ''; position: absolute; left: 0; top: 28px; width: 8px; height: 8px; border-radius: 1px; background: var(--teal); }
.page-cta { padding: 0 0 120px; }
.page-cta-box { background: var(--navy); color: #fff; border-radius: var(--r-card); padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-cta-box h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin: 14px 0 0; }
.page-cta-box h2 .accent { color: var(--teal); }
.page-cta-box p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.74); margin: 18px 0 0; max-width: 50ch; }
.page-cta-box .hero-actions { margin: 0; flex-direction: column; align-items: stretch; }
.related { padding: 0 0 120px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.related-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; transition: transform .18s, box-shadow .18s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card .svc-ico { width: 44px; height: 44px; margin: 0; }
.related-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
.related-card .more, .post-card .more { font-size: 14px; font-weight: 700; color: var(--azure); margin-top: auto; }
/* Blog */
.blog-index { background: var(--bg); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); padding: 32px; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card.is-featured { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); padding: 48px; }
.post-card.is-featured h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); max-width: 22ch; }
.post-card.is-featured p { color: rgba(255,255,255,0.74); font-size: 18px; max-width: 60ch; }
.post-card.is-featured .post-date { color: rgba(255,255,255,0.5); }
.post-card.is-featured .more { color: var(--teal); }
.post-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.post-cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.post-date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.post-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); margin: 0; }
.post-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.post-hero { background: var(--dark); color: #fff; padding: 72px 0 80px; }
.post-hero .post-date { color: rgba(255,255,255,0.55); }
.post-hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 20px 0 0; max-width: 20ch; }
.post-hero .lede { font-size: 20px; line-height: 1.6; color: rgba(255,255,255,0.74); margin: 24px 0 0; max-width: 56ch; }
.post-by { margin-top: 28px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); }
.post-body { max-width: 68ch; padding: 80px 0 64px; }
.post-body p { font-size: 19px; line-height: 1.75; color: var(--ink-1); margin: 0 0 28px; }
.post-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); margin: 48px 0 16px; }
.post-body a { color: var(--azure); text-decoration: underline; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0 96px; border-top: 1px solid var(--rule); }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; }
.post-nav-link.is-next { text-align: right; }
.post-nav-link .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.post-nav-link .t { font-size: 17px; font-weight: 700; color: var(--navy); }
.post-nav-link:hover .t { color: var(--azure); }
@media (max-width: 900px) {
  .page-hero-grid, .page-intro-grid, .fit-grid, .page-cta-box, .post-nav { grid-template-columns: 1fr; }
  .page-hero-ico { display: none; }
  .deliver-grid, .related-grid, .post-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .page-cta-box { padding: 40px 28px; }
  .post-nav-link.is-next { text-align: left; }
}

/* Teal full stop on large headings */
h1 .accent, h2 .accent { color: var(--teal); }

/* Service cards: brand-colour fills instead of images */
.services-grid .svc:nth-child(1) .svc-img { background: radial-gradient(120% 90% at 20% 10%, #1d4170 0%, #16325C 55%, #0B1424 100%); }
.services-grid .svc:nth-child(2) .svc-img { background: radial-gradient(120% 90% at 80% 10%, #2B93E8 0%, #0078D4 50%, #16325C 100%); }
.services-grid .svc:nth-child(3) .svc-img { background: radial-gradient(120% 90% at 30% 15%, #19C2C2 0%, #00A3A3 50%, #0B3D4A 100%); }
.services-grid .svc:nth-child(4) .svc-img { background: linear-gradient(150deg, #0078D4 0%, #16325C 70%); }
.services-grid .svc:nth-child(5) .svc-img { background: linear-gradient(150deg, #00A3A3 0%, #0078D4 60%, #16325C 100%); }
.services-grid .svc:nth-child(6) .svc-img { background: linear-gradient(160deg, #16325C 0%, #00A3A3 100%); }
.svc-img::after { background: linear-gradient(180deg, rgba(11,20,36,0) 45%, rgba(11,20,36,0.35) 100%); }

/* Sharp service cards + white marks */
.svc { border-radius: 0; }
.svc-btn { border-radius: 0; }
.svc-mark { position: absolute; top: 28px; left: 24px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255,255,255,0.35); pointer-events: none; transition: border-color .25s; }
.svc:hover .svc-mark { border-color: #fff; }

/* Bigger marks, flatter fills */
.svc-mark { width: 112px; height: 112px; }
.services-grid .svc:nth-child(1) .svc-img { background: linear-gradient(160deg, #1b3a68, #16325C); }
.services-grid .svc:nth-child(2) .svc-img { background: linear-gradient(160deg, #0a82dc, #0078D4); }
.services-grid .svc:nth-child(3) .svc-img { background: linear-gradient(160deg, #06abab, #00A3A3); }
.services-grid .svc:nth-child(4) .svc-img { background: linear-gradient(160deg, #0B1424, #0e1a2f); }
.services-grid .svc:nth-child(5) .svc-img { background: linear-gradient(160deg, #1b3a68, #16325C); }
.services-grid .svc:nth-child(6) .svc-img { background: linear-gradient(160deg, #0a82dc, #0078D4); }
.svc-img::after { background: linear-gradient(180deg, rgba(11,20,36,0) 55%, rgba(11,20,36,0.18) 100%); }

/* Compact service cards: mark sits in flow above text */
.svc { min-height: 0; justify-content: flex-start; }
.svc-mark { position: relative; top: auto; left: auto; margin: 24px 24px 0; width: 88px; height: 88px; }
.svc-mark svg { width: 56px; height: 56px; }
.svc-body { padding: 28px 24px 24px; }

/* Service cards aligned to site system: white surface, rule border, brand icon tile */
.svc { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-sm); color: var(--ink-1); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.services-grid .svc .svc-img { display: none; }
.svc-mark { margin: 32px 32px 0; width: 56px; height: 56px; border: 0; border-radius: var(--r-ico); background: var(--navy); }
.svc-mark svg { width: 28px; height: 28px; stroke-width: 1.75; }
.services-grid .svc:nth-child(3n+2) .svc-mark { background: var(--azure); }
.services-grid .svc:nth-child(3n+3) .svc-mark { background: var(--teal); }
.svc:hover .svc-mark { border-color: transparent; }
.svc-body { padding: 24px 32px 32px; color: var(--ink-1); flex: 1; }
.svc h3 { color: var(--navy); font-size: 22px; }
.svc h3 a:hover { color: var(--azure); }
.svc p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 10px 0 24px; }
.svc-btn { align-self: flex-start; margin-top: auto; background: transparent; color: var(--navy); border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--gray); padding: 11px 20px; }
.svc-btn:hover { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.blog-index + .page-cta { background: var(--bg); }

/* Blinking teal full stops */
@media (prefers-reduced-motion: no-preference) {
  h1 .accent, h2 .accent { animation: accentBlink 1.2s steps(1, end) infinite; }
}
@keyframes accentBlink { 0%, 60% { opacity: 1; } 60.01%, 100% { opacity: 0; } }

/* Official product logos on service cards */
.services-grid .svc .svc-mark.is-logo { background: #fff; border: 1px solid var(--rule); }
.svc-mark.is-logo img { width: 36px; height: 36px; object-fit: contain; display: block; }
.page-hero-ico.is-logo { background: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 24px; }
.page-hero-ico.is-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.related-card .svc-ico.is-logo { background: #fff; border: 1px solid var(--rule); }
.related-card .svc-ico.is-logo img { width: 26px; height: 26px; object-fit: contain; display: block; }

/* Hero capability chips — Azure tones */
.hero-trust { gap: 24px; }
.hero-trust .badges { gap: 12px 28px; }
.hero-trust .badge { padding: 0; font-size: 15px; color: rgba(255,255,255,0.88); background: none; box-shadow: none; }
.hero-trust .badge::before { width: 6px; height: 6px; border-radius: 1px; background: #50AAFF; }
.hero-trust .badge:nth-child(3n+2)::before { background: var(--azure); }
.hero-trust .badge:nth-child(3n)::before { background: var(--teal); }

/* Hero layout fix: content-driven height, motif kept clear of text */
.hero { min-height: 720px; padding: 120px 0 72px; }
.hero h1, .hero .lede, .hero-actions, .hero-trust { position: relative; z-index: 1; }
.hero .lede { max-width: 50ch; }
.hero-motif { top: 150px; right: var(--pad); left: auto; opacity: 0.22; z-index: 0; }
@media (max-width: 1280px) { .hero-motif { width: 320px; height: 188px; top: 170px; opacity: 0.16; } }
@media (max-width: 1080px) { .hero-motif { display: none; } }
