/* ============================================================
   Nexvia — Stylesheet
   Source of truth: ../BRIEF.md  ·  Brand spec: ../design/
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --nx-blue:       #185FA5;
  --nx-blue-hover: #0C447C;
  --nx-blue-light: #85B7EB;
  --nx-blue-bg:    #E6F1FB;
  --nx-teal:       #1D9E75;
  --nx-teal-hover: #0F6E56;
  --nx-teal-light: #9FE1CB;
  --nx-teal-bg:    #E1F5EE;
  --nx-navy:       #042C53;
  --nx-midnight:   #060E1F;
  --nx-cream:      #F1EFE8;
  --nx-charcoal:   #1A1A1A;
  --nx-gray:       #888780;
  --nx-border:     #E0E0E0;

  /* Functional aliases */
  --bg:            #FDFDFB;
  --bg-alt:        var(--nx-cream);
  --bg-card:       #FFFFFF;
  --text:          var(--nx-charcoal);
  --text-muted:    var(--nx-gray);
  --text-subtle:   #555555;
  --border:        var(--nx-border);
  --border-light:  #EDEDED;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration: 200ms;
  --duration-slow: 400ms;

  /* Layout */
  --max-w: 1180px;
  --pad: clamp(1.25rem, 4vw, 2rem);

  /* Radius */
  --r-sm: 6px;
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.4px; color: var(--text); }
h1 { font-size: clamp(28px, 5vw, 48px); letter-spacing: -0.5px; line-height: 1.1; }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.3px; }
h4 { font-size: 18px; letter-spacing: -0.2px; }

p { color: var(--text); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

a { transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--nx-blue); }

::selection { background: var(--nx-blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--nx-midnight); color: var(--nx-cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--nx-cream); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--nx-teal);
  margin-bottom: 14px;
}

.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-subtle); max-width: 60ch; }

.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; } .gap { gap: 16px; } .gap-lg { gap: 24px; } .gap-xl { gap: 32px; }
.center { text-align: center; }
.center-flex { display: flex; flex-direction: column; align-items: center; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Tagline (Design. Build. Automate.) ---------- */
.tagline {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.tagline .t-design   { color: var(--nx-blue); }
.tagline .t-build    { color: var(--nx-teal); }
.tagline .t-automate { color: var(--nx-gray); }

/* Wordmark text usage (when not using SVG) */
.wm { font-weight: 500; letter-spacing: -0.5px; }
.wm .nex { color: var(--nx-blue); }
.wm .via { color: var(--nx-teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--nx-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--nx-blue-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid #D0D0D0;
}
.btn-secondary:hover { background: #F5F5F5; color: var(--text); border-color: #C0C0C0; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  height: 38px;
}
.btn-ghost:hover { color: var(--nx-blue); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.section-dark .btn-primary { background: var(--nx-teal); }
.section-dark .btn-primary:hover { background: var(--nx-teal-hover); }
.section-dark .btn-secondary { color: var(--nx-cream); border-color: rgba(255,255,255,0.18); }
.section-dark .btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* Arrow on hover */
.btn .arr { transition: transform var(--duration) var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253,253,251,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo svg { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav-links a {
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--nx-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--nx-blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
}
.menu-toggle:hover { background: #F5F5F5; }
.menu-toggle .bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  margin: 3px 0;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}
body[data-menu="open"] .menu-toggle .bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body[data-menu="open"] .menu-toggle .bar:nth-child(2) { opacity: 0; }
body[data-menu="open"] .menu-toggle .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 30;
  padding: 32px var(--pad);
  display: none;
  flex-direction: column;
  gap: 24px;
}
.mobile-panel a { font-size: 22px; font-weight: 500; color: var(--text); }
.mobile-panel a:hover { color: var(--nx-blue); }
body[data-menu="open"] .mobile-panel { display: flex; }
body[data-menu="open"] { overflow: hidden; }

@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px) clamp(48px, 8vw, 96px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.hero-logo svg.chev { width: 56px; height: 56px; flex-shrink: 0; }
.hero-logo .wm { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.8px; line-height: 1; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(15px, 1.6vw, 18px); max-width: 56ch; color: var(--text-subtle); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-tagline { margin-top: 10px; }

@media (max-width: 600px) {
  .hero-logo { gap: 12px; }
  .hero-logo svg.chev { width: 40px; height: 40px; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* Hero loading animation — runs on every page load, no JS gate. */
.anim-chev, .anim-fade { opacity: 0; }

@keyframes flyInChev1 {
  0%   { opacity: 0; transform: translateX(-380px) scale(0.5); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes flyInChev2 {
  0%   { opacity: 0; transform: translateX(-380px) scale(0.5); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.anim-chev-1 { animation: flyInChev1 750ms var(--ease-out) 150ms forwards; }
.anim-chev-2 { animation: flyInChev2 750ms var(--ease-out) 400ms forwards; }
.anim-wm     { animation: fadeUp 550ms ease-out 950ms forwards; }
.anim-h1     { animation: fadeUp 550ms ease-out 1200ms forwards; }
.anim-lead   { animation: fadeUp 550ms ease-out 1400ms forwards; }
.anim-ctas   { animation: fadeUp 550ms ease-out 1600ms forwards; }
.anim-tag    { animation: fadeUp 550ms ease-out 1750ms forwards; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .anim-chev, .anim-fade { opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}
.card:hover {
  border-color: var(--nx-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--nx-blue-bg);
  color: var(--nx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.card .card-icon.teal { background: var(--nx-teal-bg); color: var(--nx-teal); }
.card .card-icon.navy { background: rgba(4,44,83,0.08); color: var(--nx-navy); }
.card h3 { font-size: 20px; }
.card p  { color: var(--text-subtle); font-size: 15px; }
.card .price-line {
  margin-top: 6px;
  font-size: 13px;
  color: var(--nx-charcoal);
}
.card .price-line strong { color: var(--nx-blue); font-weight: 500; }
.card a.card-link {
  margin-top: auto;
  font-size: 14px;
  color: var(--nx-blue);
  font-weight: 500;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.card a.card-link:hover .arr { transform: translateX(4px); }

/* Work card (image-led) */
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
  text-decoration: none;
  color: var(--text);
}
.work-card:hover { border-color: var(--nx-blue); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.work-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--nx-blue-bg) 0%, var(--nx-teal-bg) 100%);
  position: relative;
  overflow: hidden;
}
.work-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.5) 50%, transparent 51%);
  background-size: 40px 40px;
  opacity: 0.15;
}
.work-card .thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--nx-blue);
  font-weight: 500;
  letter-spacing: 0.4px;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.work-card .thumb img + .thumb-label { display: none; }
.work-card .meta { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.work-card .tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--nx-teal);
}
.work-card h3 { font-size: 19px; }
.work-card .outcome { color: var(--text-subtle); font-size: 14px; }
.work-card .tech { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.work-card .tech span {
  font-size: 11px;
  background: #F5F5F5;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  color: var(--text-muted);
}

/* ---------- How we work (timeline) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--nx-blue);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-subtle); font-size: 14px; }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { display: none; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
  .step-num { margin-bottom: 0; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial blockquote {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-blue) 0%, var(--nx-teal) 100%);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial .who-meta { display: flex; flex-direction: column; }
.testimonial .who-meta strong { font-weight: 500; font-size: 14px; }
.testimonial .who-meta span { font-size: 13px; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--nx-midnight);
  color: rgba(241,239,232,0.78);
  padding: 56px 0 28px;
}
.site-footer h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(241,239,232,0.55);
  margin-bottom: 14px;
}
.site-footer a { color: rgba(241,239,232,0.78); transition: color var(--duration); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .wm { font-size: 24px; }
.footer-brand p { font-size: 14px; max-width: 32ch; margin-top: 10px; color: rgba(241,239,232,0.55); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(241,239,232,0.45);
}
.footer-bottom a { color: rgba(241,239,232,0.6); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,0.35);
  z-index: 50;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  color: #fff;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 600px) {
  .wa-float { width: 48px; height: 48px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ---------- Stats (case studies) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.stat .num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--nx-blue);
  letter-spacing: -0.4px;
  line-height: 1;
}
.stat .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Case study layout ---------- */
.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--nx-teal);
}
.case-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.case-hero-img {
  background: linear-gradient(135deg, var(--nx-blue-bg) 0%, var(--nx-teal-bg) 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  margin-block: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-blue);
  font-size: 14px;
  letter-spacing: 0.4px;
}
.case-section { margin-block: 40px; }
.case-section h2 { margin-bottom: 12px; }
.case-section p, .case-section li { font-size: 16px; line-height: 1.65; color: var(--text); }
.case-section ul { padding-left: 1.2em; list-style: disc; }
.case-section li { margin-bottom: 6px; color: var(--text-subtle); }
.tech-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-list span {
  font-size: 12px;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

/* Testimonial proof image (Instagram screenshot) */
.testimonial-proof {
  margin-top: 14px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.testimonial-proof img {
  width: 100%;
  display: block;
  height: auto;
}
.testimonial-proof figcaption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-alt);
}

/* Founder photo block (about page) */
.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-block: 32px 48px;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--nx-blue-bg) 0%, var(--nx-teal-bg) 100%);
  position: relative;
  border: 1px solid var(--border);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-photo .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 500;
  color: var(--nx-blue);
  letter-spacing: -1px;
}
.founder h3 { font-size: 22px; }
.founder .role { font-size: 13px; color: var(--text-muted); letter-spacing: 0.4px; text-transform: uppercase; margin-top: 4px; }
.founder p { color: var(--text-subtle); margin-top: 14px; }
.founder .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.founder .links a {
  font-size: 13px;
  color: var(--nx-blue);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: border-color var(--duration), background var(--duration);
}
.founder .links a:hover { border-color: var(--nx-blue); background: var(--nx-blue-bg); }
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; gap: 20px; }
  .founder-photo { max-width: 240px; margin: 0 auto; }
}

/* Real-image hero (overrides the gradient placeholder when image exists) */
.case-hero-img.real-img {
  background: var(--nx-midnight);
  padding: 0;
  overflow: hidden;
}
.case-hero-img.real-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Screenshot grid for case study walkthrough */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.shot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shot img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--nx-midnight);
}
.shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shot figcaption strong {
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}
@media (max-width: 600px) { .shot-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier h4 { font-size: 16px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.3px; }
.tier .price { font-size: 22px; font-weight: 500; color: var(--nx-blue); letter-spacing: -0.3px; }
.tier p { font-size: 14px; color: var(--text-subtle); }
.tier.popular { border-color: var(--nx-blue); position: relative; }
.tier.popular::before {
  content: 'Popular';
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--nx-blue);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
@media (max-width: 800px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- Service detail block ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-block: 48px;
  border-bottom: 1px solid var(--border-light);
}
.svc-block:last-of-type { border-bottom: 0; }
.svc-block h2 { font-size: clamp(24px, 3vw, 32px); }
.svc-block .lead { margin-top: 12px; }
.svc-block ul.included { margin-top: 16px; padding-left: 1.1em; list-style: disc; color: var(--text-subtle); }
.svc-block ul.included li { margin-bottom: 6px; }
@media (max-width: 800px) { .svc-block { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- FAQ ---------- */
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--nx-blue); font-size: 22px; transition: transform var(--duration); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 8px 0 18px; color: var(--text-subtle); border-bottom: 1px solid var(--border); }

/* ---------- Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.form-group label .req { color: #D14343; }
.form-group .help { font-size: 12px; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  font-size: 15px;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.form-group textarea {
  height: auto;
  min-height: 120px;
  padding: 14px;
  font-family: inherit;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--nx-blue);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: #F5F5F5;
  color: var(--text);
  border-radius: var(--r-pill);
  font-size: 13px;
  border: 1px solid transparent;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
}
.chip:hover { background: var(--nx-blue-bg); color: var(--nx-blue); }
.chip[aria-pressed="true"] { background: var(--nx-blue); color: #fff; border-color: var(--nx-blue); }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--nx-blue); }

.form-info {
  background: var(--nx-teal-bg);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--nx-navy);
  margin-bottom: 16px;
  display: none;
}
.form-info.show { display: block; }

.form-status { font-size: 13px; margin-top: 12px; }
.form-status.ok { color: var(--nx-teal); }
.form-status.err { color: #D14343; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Three-paths (contact) ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.path {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.path:hover { border-color: var(--nx-blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.path .icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--nx-blue-bg);
  color: var(--nx-blue);
  display: flex; align-items: center; justify-content: center;
}
.path.wa .icon { background: #E1F8E9; color: #25D366; }
.path .icon svg { width: 22px; height: 22px; }
.path h3 { font-size: 18px; }
.path p { font-size: 14px; color: var(--text-subtle); }
.path .btn { margin-top: auto; }
@media (max-width: 800px) { .paths-grid { grid-template-columns: 1fr; } }

/* ---------- Filter chips (work page) ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* ---------- 404 / centered states ---------- */
.center-block {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip-link:focus {
  left: 8px;
  background: var(--nx-blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r);
  z-index: 100;
}

