/* =========================================================
   Synapse — Static Export
   Pixel-faithful conversion of the Lovable design.
   Organized for easy conversion into a WordPress theme.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --background: oklch(0.96 0.012 80);
  --foreground: oklch(0.16 0.008 50);
  --surface: oklch(0.94 0.014 78);
  --card: oklch(0.99 0.006 80);
  --muted: oklch(0.95 0.008 70);
  --muted-foreground: oklch(0.5 0.015 60);
  --border: oklch(0.9 0.01 60);

  --orange: oklch(0.68 0.18 47);
  --orange-2: oklch(0.62 0.17 45);
  --warm-ink: oklch(0.22 0.02 50);

  --ink: oklch(0.16 0.008 50);
  --cream: oklch(0.96 0.012 80);

  --gradient-synapse: linear-gradient(135deg, oklch(0.74 0.17 60) 0%, oklch(0.68 0.18 47) 50%, oklch(0.58 0.17 38) 100%);
  --gradient-spark: linear-gradient(120deg, oklch(0.78 0.15 65), oklch(0.66 0.19 45));
  --gradient-aurora: linear-gradient(135deg, oklch(0.68 0.18 47) 0%, oklch(0.5 0.04 250) 100%);
  --gradient-dark: radial-gradient(ellipse at top, oklch(0.22 0.025 50) 0%, oklch(0.14 0.018 50) 60%, oklch(0.1 0.012 50) 100%);

  --shadow-soft: 0 1px 2px oklch(0.2 0.05 50 / 0.05), 0 8px 24px oklch(0.2 0.05 50 / 0.08);
  --shadow-elevated: 0 4px 12px oklch(0.2 0.05 50 / 0.1), 0 24px 48px oklch(0.2 0.05 50 / 0.14);
  --shadow-glow: 0 0 60px oklch(0.68 0.18 47 / 0.4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; margin: 0; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }
.section-sm { padding: 5rem 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--orange);
}
.eyebrow-muted { color: rgba(255,255,255,0.6); }
.text-gradient {
  background-image: var(--gradient-synapse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted-foreground); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, oklch(0.78 0.22 75), oklch(0.68 0.22 55));
  box-shadow: 0 12px 50px oklch(0.7 0.22 65 / 0.55);
}
.btn-primary:hover { transform: scale(1.02); }
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); }
.btn-white {
  background: #fff;
  color: oklch(0.12 0.015 50);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  padding: 1rem 1.75rem;
}
.btn-outline-white {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}
.btn-outline-dark:hover { background: var(--foreground); color: var(--background); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: padding .4s ease;
}
.site-header.scrolled { padding: 0.75rem 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: all .4s ease;
}
.site-header.scrolled .header-inner {
  border-color: oklch(0.16 0.008 50 / 0.1);
  background: oklch(0.96 0.012 80 / 0.85);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.site-header.scrolled .brand { color: var(--ink); }
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 2rem; height: 2rem;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 999px;
}
.site-header.scrolled .brand-mark {
  background: var(--ink);
  border-color: transparent;
}
.site-header.scrolled .brand-mark::before { background: var(--background); }
.brand-dot {
  position: relative;
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: oklch(0.72 0.2 45);
  box-shadow: 0 0 10px oklch(0.72 0.2 45);
}
.site-header.scrolled .brand-dot { box-shadow: none; }
.brand-logo {
  height: 2rem;
  width: auto;
  display: block;
}
.site-header.scrolled .brand-logo,
body.inner .site-header .brand-logo {
  content: url('../images/synapse-logo-black.svg');
}

.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  transition: color .2s ease;
}
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a { color: oklch(0.16 0.008 50 / 0.65); }
.site-header.scrolled .main-nav a:hover { color: var(--ink); }

.nav-cta {
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav-cta:hover { background: oklch(0.78 0.16 55); color: #fff; }
.site-header.scrolled .nav-cta { background: var(--ink); color: var(--background); }
.site-header.scrolled .nav-cta:hover { background: var(--orange); color: #fff; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: 999px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.site-header:not(.scrolled) .menu-toggle { color: #fff; }
.site-header.scrolled .menu-toggle { color: var(--ink); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: oklch(0.12 0.018 50);
  color: #fff;
  z-index: 60;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform .4s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}
.mobile-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 2rem;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 9rem 0 10rem;
  color: #fff;
}
.hero-base { position: absolute; inset: 0; background: oklch(0.14 0.03 60); pointer-events: none; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top left, oklch(0.55 0.18 70 / 0.35), transparent 60%); }
.hero-signals { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10rem;
  background: linear-gradient(to top, oklch(0.12 0.03 60), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}
.hero-eyebrow .line { display: inline-block; width: 2.5rem; height: 1px; background: rgba(255,255,255,0.35); }
.hero-eyebrow .dot { width: 0.4rem; height: 0.4rem; border-radius: 999px;
  background: oklch(0.78 0.28 50); box-shadow: 0 0 18px oklch(0.78 0.28 50); }

.hero-grid { display: grid; gap: 3rem; align-items: end; grid-template-columns: 1fr; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-size: clamp(3rem, 8.5vw, 9rem);
}
.hero h1 .italic-line {
  font-style: italic;
  font-weight: 300;
  background-image: linear-gradient(120deg, oklch(0.9 0.18 90) 0%, oklch(0.78 0.22 70) 55%, oklch(0.72 0.2 55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.hero h1 span { display: block; }
.hero-lead {
  margin-top: 2.5rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-card {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
}
.hero-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
}
.hero-card .pulse {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: oklch(0.78 0.18 55);
  box-shadow: 0 0 14px oklch(0.78 0.18 55);
}
.hero-card h3, .hero-card-tagline {
  margin-top: 1rem;
  font-size: 1.4rem; line-height: 1.2;
  font-family: var(--font-display); font-weight: 600; color: rgba(255,255,255,0.9);
}
.hero-card-stats {
  margin-top: 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-card-stats .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.hero-card-stats .lbl { margin-top: 0.25rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); }

/* ---------- Logo Strip ---------- */
.logo-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid oklch(0.16 0.008 50 / 0.1);
  border-bottom: 1px solid oklch(0.16 0.008 50 / 0.1);
  padding: 3rem 0;
  background: var(--background);
}
.logo-strip-intro {
  text-align: center;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em;
  color: oklch(0.16 0.008 50 / 0.5);
  margin-bottom: 2rem;
}
.marquee-wrap { position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8rem; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--background), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--background), transparent); }
.marquee {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  color: oklch(0.16 0.008 50 / 0.4);
  letter-spacing: -0.02em;
  transition: color .2s ease;
}
.marquee span:hover { color: var(--ink); }
.marquee .sep { color: oklch(0.16 0.008 50 / 0.15); margin-left: 4rem; }
.marquee--logos { gap: 5rem; align-items: center; }
.marquee--logos .logo-item { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.marquee--logos .logo-item img { height: 40px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(100%); opacity: .5; transition: filter .25s ease, opacity .25s ease; display: block; }
.marquee--logos .logo-item:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Brand Statement ---------- */
.brand-statement {
  position: relative; overflow: hidden;
  padding: 7rem 0; text-align: center;
}
.brand-statement .blob {
  position: absolute; width: 20rem; height: 20rem; border-radius: 999px;
  filter: blur(60px); opacity: 0.2; pointer-events: none;
}
.brand-statement .blob.tl { left: -10rem; top: 5rem; background: var(--gradient-spark); }
.brand-statement .blob.br { right: -10rem; bottom: 5rem; background: var(--gradient-aurora); }
.brand-statement h2 {
  margin: 1.25rem auto 0; max-width: 60rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
}
.brand-statement .lead {
  margin: 2rem auto 0; max-width: 48rem;
  font-size: 1.15rem; line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- Framework (Dark grid of pillars) ---------- */
.framework {
  position: relative; overflow: hidden;
  padding: 7rem 0;
  background: var(--gradient-dark);
  color: #fff;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.section-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.section-head h2 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
}
.pillars {
  margin-top: 5rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.pillar {
  position: relative; overflow: hidden;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  transition: background .4s ease, border-color .4s ease;
}
.pillar:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: var(--gradient-synapse);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
}
.pillar-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.pillar h3 { font-size: 1.4rem; }
.pillar p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); }
.pillar-num { margin-top: 1.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.4); }

/* ---------- Services ---------- */
.services-head {
  display: flex; flex-direction: column; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.services-grid {
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card);
  display: grid; grid-template-columns: 1fr;
}
.service-card {
  position: relative;
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease;
}
.service-card:hover { background: var(--surface); }
.service-card:last-child { border-bottom: none; }
.service-card .num { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted-foreground); }
.service-card h3 { font-size: 1.25rem; line-height: 1.3; }
.service-card p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted-foreground); max-width: 30rem; }
.service-card .arrow {
  margin-top: 0.25rem; flex-shrink: 0;
  width: 1.25rem; height: 1.25rem; color: var(--muted-foreground);
  transition: transform .25s ease, color .25s ease;
}
.service-card:hover .arrow { transform: translate(2px, -2px); color: var(--foreground); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--surface); padding: 7rem 0; }
.portfolio-head {
  display: flex; flex-direction: column; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  transition: all .2s ease;
}
.filter-btn:hover { color: var(--foreground); }
.filter-btn.active { background: var(--foreground); color: var(--background); border-color: transparent; }
.portfolio-grid {
  margin-top: 3.5rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-auto-rows: 280px;
}
.work-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.work-card a { display: block; position: absolute; inset: 0; }
.work-card img {
  position: absolute; inset: 0;
  width: 100%; height: auto;
  object-fit: cover;
  transition: transform .7s ease;
}
.work-card:hover img { transform: scale(1.05); }
.work-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    oklch(0.12 0.015 50 / 0.95),
    oklch(0.12 0.015 50 / 0.3),
    transparent);
}
.work-card .info {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}
.work-card .cat {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: oklch(0.82 0.14 65);
}
.work-card h3 { margin-top: 0.5rem; font-size: 1.4rem; font-family: var(--font-display); }
.work-card p { margin-top: 0.25rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.work-card .more {
  margin-top: 1rem; font-size: 0.9rem; font-weight: 500;
  opacity: 0; transition: opacity .25s ease;
}
.work-card:hover .more { opacity: 1; }
.work-card.span-2 { grid-column: span 1; }

.view-all { margin-top: 3.5rem; display: flex; justify-content: center; }
.portfolio-empty { margin-top: 3rem; text-align: center; color: var(--muted-foreground); display: flex; flex-direction: column; align-items: center; padding: 3rem 0; }

/* ---------- Ribbon Band ---------- */
.ribbon-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 6rem 0;
}
.arc-decor {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: repeating-radial-gradient(
    circle at 100% 0%,
    transparent 0, transparent 38px,
    oklch(0.16 0.008 50 / 0.07) 38px, oklch(0.16 0.008 50 / 0.07) 39px
  );
}
.ribbon {
  position: relative; overflow: hidden;
  padding: 1.25rem 0;
  margin: 0 -3rem;
}
.ribbon-ink { background: var(--ink); color: var(--cream); transform: rotate(-5deg); }
.ribbon-orange { background: var(--orange); color: oklch(0.97 0.01 80); transform: rotate(4deg); margin-top: 0.75rem; }
.ribbon-track {
  display: flex; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.ribbon-track.reverse { animation: marquee 28s linear infinite reverse; }
.ribbon-track span {
  margin: 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ribbon-track .star { margin-left: 2rem; opacity: 0.6; }

/* ---------- Case Studies ---------- */
.case-studies { padding: 7rem 0; }
.case {
  display: grid; gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-top: 2.5rem;
}
.case .img-wrap {
  position: relative; overflow: hidden;
  border-radius: 1rem;
}
.case .img-wrap img { width: 100%; height: auto; display: block; }
.case .img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, oklch(0.62 0.22 260 / 0.2), transparent);
}
.case .tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.case h3 { margin-top: 0.75rem; font-size: 1.75rem; line-height: 1.2; }
.case dl { margin-top: 2rem; border-left: 2px solid var(--border); padding-left: 1.5rem; }
.case dl div + div { margin-top: 1.25rem; }
.case dt {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--gradient-synapse);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.case dd { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Process ---------- */
.process {
  position: relative; overflow: hidden;
  padding: 7rem 0;
  background: var(--gradient-dark);
  color: #fff;
}
.process-orb {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 999px;
  background: var(--gradient-synapse);
  filter: blur(80px); opacity: 0.2; pointer-events: none;
}
.process-list {
  margin-top: 5rem;
  display: grid; gap: 1px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  grid-template-columns: 1fr;
}
.process-step {
  position: relative;
  background: oklch(0.12 0.05 265);
  padding: 1.75rem;
  transition: background .25s ease;
}
.process-step:hover { background: oklch(0.16 0.06 265); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300;
  background: var(--gradient-synapse);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.process-step h3 { margin-top: 1rem; font-size: 1.25rem; }
.process-step p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.process-step::after {
  content: ""; position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient-synapse); transition: width .5s ease;
}
.process-step:hover::after { width: 100%; }

/* ---------- About ---------- */
.about { padding: 7rem 0; }
.about-grid { display: grid; gap: 4rem; grid-template-columns: 1fr; }
.about h2 { margin-top: 1.25rem; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; }
.about .copy { margin-top: 2rem; display: grid; gap: 1.25rem; font-size: 1.05rem; line-height: 1.65; color: var(--muted-foreground); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card {
  position: relative; overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease;
}
.stat-card:hover { box-shadow: var(--shadow-elevated); }
.stat-card .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.75rem;
  background: var(--gradient-synapse);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card .lbl { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted-foreground); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface); padding: 7rem 0; }
.testimonial-grid { margin-top: 4rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.testimonial {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease;
}
.testimonial:hover { box-shadow: var(--shadow-elevated); }
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  background: var(--gradient-synapse);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.testimonial blockquote {
  margin: 0.25rem 0 0; flex: 1;
  font-size: 1.1rem; line-height: 1.6; color: var(--foreground);
}
.testimonial figcaption {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.testimonial .name { font-family: var(--font-display); font-weight: 500; }
.testimonial .company { font-size: 0.9rem; color: var(--muted-foreground); }

/* ---------- CTA ---------- */
.cta-section { padding: 5rem 0; }
.cta-card {
  position: relative; overflow: hidden;
  padding: 5rem 2rem;
  border-radius: 2.5rem;
  background: oklch(0.14 0.03 60);
  color: #fff;
  text-align: center;
}
.cta-card .hero-base,
.cta-card .hero-glow,
.cta-card .hero-signals,
.cta-card .hero-fade { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cta-card .hero-signals { mix-blend-mode: screen; }
.cta-card .hero-fade { inset: auto 0 0 0; height: 8rem; background: linear-gradient(to top, oklch(0.12 0.03 60), transparent); }
.cta-card h2 { position: relative; z-index: 1; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; }
.cta-card p { position: relative; z-index: 1; margin: 1.5rem auto 0; max-width: 32rem; font-size: 1.1rem; color: rgba(255,255,255,0.7); }
.cta-card .actions { position: relative; z-index: 1; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: oklch(0.1 0.012 50);
  color: #fff;
}
.site-footer .grid-bg { opacity: 0.3; }
.footer-inner { position: relative; padding: 5rem 0; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.footer-brand img { height: 3rem; width: auto; }
.footer-brand .tag { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 300; font-size: 1.5rem;
  background: var(--gradient-synapse); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .desc { margin-top: 0.75rem; max-width: 20rem; font-size: 0.85rem; line-height: 1.65; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}
.footer-col ul { margin-top: 1.25rem; display: grid; gap: 0.75rem; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-meta {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ---------- Contact form ---------- */
.contact-page { padding-top: 8rem; }
.contact-grid { display: grid; gap: 4rem; grid-template-columns: 1fr; margin-top: 4rem; }
.contact-form { display: grid; gap: 1.25rem; }
.contact-form .btn,
.contact-form input[type="submit"],
.contact-form button[type="submit"] { justify-self: start; width: auto; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  font-family: inherit; font-size: 1rem;
  color: var(--foreground);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px oklch(0.68 0.18 47 / 0.15);
}
.field textarea { min-height: 8rem; resize: vertical; }
.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info h3 { font-size: 1.25rem; }
.contact-info a { color: var(--orange); }
.form-status { font-size: 0.9rem; color: var(--orange); min-height: 1.25rem; }

/* Inner-page nav adjustments: dark text by default */
body.inner .site-header .brand { color: var(--ink); }
body.inner .site-header .header-inner { border-color: oklch(0.16 0.008 50 / 0.1); background: oklch(0.96 0.012 80 / 0.85); backdrop-filter: blur(20px); box-shadow: var(--shadow-soft); }
body.inner .site-header .main-nav a { color: oklch(0.16 0.008 50 / 0.65); }
body.inner .site-header .main-nav a:hover { color: var(--ink); }
body.inner .site-header .brand-mark { background: var(--ink); border-color: transparent; }
body.inner .site-header .brand-mark::before { background: var(--background); }
body.inner .site-header .brand-dot { box-shadow: none; }
body.inner .site-header .nav-cta { background: var(--ink); color: var(--background); }
body.inner .site-header .nav-cta:hover { background: var(--orange); color: #fff; }
body.inner .site-header .menu-toggle { color: var(--ink); }

.page-hero {
  padding: 8rem 0 4rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -0.03em;
}
.page-hero p { margin-top: 1.5rem; max-width: 40rem; font-size: 1.1rem; color: var(--muted-foreground); }

/* ── Clients page ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.client-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: oklch(0.16 0.008 50 / 0.2);
  transform: translateY(-3px);
}
.client-card img {
  width: 100%;
  max-width: 140px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .5;
  transition: filter .25s ease, opacity .25s ease;
  display: block;
  margin: 0 auto;
}
.client-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Ensure hero content sits above absolute background layers */
.hero > .container-wide { position: relative; z-index: 2; }
.hero-base, .hero-glow, .hero-signals, .hero-fade { z-index: 0; }


/* ---------- Work index ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 3rem; }
.work-filters button {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted-foreground); font-size: .875rem;
  cursor: pointer; transition: all .2s ease; font-family: inherit;
}
.work-filters button:hover { color: var(--ink); }
.work-filters button.active { background: var(--ink); color: var(--background); border-color: transparent; }

.work-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-auto-rows: 280px;
}
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid .span-2 { grid-column: span 2; }
  .work-grid .span-2-row { grid-column: span 2; grid-row: span 2; }
}
.work-item {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow-soft);
}
.work-item a { position: absolute; inset: 0; display: block; z-index: 2; }
.work-item img {
  position: absolute; inset: 0; width: 100%; height: auto; object-fit: cover;
  transition: transform .7s ease;
}
.work-item:hover img { transform: scale(1.05); }
.work-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.12 0.015 50 / 0.95), oklch(0.12 0.015 50 / 0.3) 50%, transparent);
}
.work-item .content {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
}
.work-item .cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: oklch(0.82 0.14 65); }
.work-item h2 { margin-top: .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.work-item .sum { margin-top: .25rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.work-item .view {
  margin-top: 1rem; font-size: .875rem; font-weight: 500;
  opacity: 0; transition: opacity .25s ease;
}
.work-item:hover .view { opacity: 1; }

/* ---------- Work detail ---------- */
.work-detail-hero { padding: 8rem 0 3rem; background: var(--background); }
.work-detail-hero .meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.work-detail-hero .meta span strong { color: var(--ink); font-weight: 500; }
.work-detail-hero h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 60rem; }
.work-detail-hero .lead { margin-top: 2rem; max-width: 50rem; font-size: 1.15rem; line-height: 1.6; color: var(--muted-foreground); }
.work-cover { padding: 2rem 0; }
.work-cover img { width: 100%; height: auto; border-radius: 1.5rem; box-shadow: var(--shadow-soft); }
.work-body { padding: 4rem 0; }
.work-body .grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .work-body .grid { grid-template-columns: 2fr 1fr; gap: 5rem; } }
.work-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .75rem; }
.work-body .block { margin-bottom: 2.5rem; }
.work-body p { color: var(--muted-foreground); line-height: 1.7; }
.work-side { display: grid; gap: 2rem; align-content: start; }
.work-side .card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.work-side h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); margin-bottom: .75rem; }
.work-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.work-side li { padding: .35rem .75rem; border-radius: 999px; background: var(--background); border: 1px solid var(--border); font-size: .8rem; }
.work-side .ext-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--orange); font-weight: 500; }
.work-next { padding: 4rem 0 6rem; border-top: 1px solid var(--border); }
.work-next a { display: block; padding: 2rem; border-radius: 1.5rem; background: var(--card); border: 1px solid var(--border); transition: all .25s ease; }
.work-next a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.work-next .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }
.work-next .title { margin-top: .5rem; font-family: var(--font-display); font-size: 1.75rem; }

/* ---------- Work detail — enhancements ---------- */
.work-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted-foreground); margin-bottom: 2rem;
}
.work-breadcrumb a { color: var(--muted-foreground); text-decoration: none; transition: color .2s; }
.work-breadcrumb a:hover { color: var(--orange); }
.work-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.work-cat-pill {
  display: inline-flex; align-items: center; padding: .3rem .9rem;
  border-radius: 999px; background: oklch(0.72 0.2 45 / 0.1); color: var(--orange);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 500;
  border: 1px solid oklch(0.72 0.2 45 / 0.25);
}
.work-meta-strip {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.work-meta-item .wm-label {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--muted-foreground); margin-bottom: .4rem;
}
.work-meta-item .wm-value {
  display: block; font-family: var(--font-display); font-size: 1rem;
  font-weight: 500; color: var(--ink);
}
.work-cover-full { overflow: hidden; }
.work-cover-full img { width: 100%; height: 50vh; object-fit: cover; display: block; }
@media (min-width: 768px) { .work-cover-full img { height: 65vh; } }
.block-num {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--orange); margin-bottom: .75rem; font-weight: 500;
}
.color-swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.color-swatch {
  width: 2rem; height: 2rem; border-radius: .35rem;
  transition: transform .2s ease; cursor: default;
}
.color-swatch:hover { transform: scale(1.1); }

/* ============================================================
   Project Detail — pd-* components
   ============================================================ */

/* ── Hero ── */
.pd-hero {
  background: var(--background);
  padding: 8rem 0 3.5rem;
}
.pd-eyebrow { margin-bottom: 1.5rem; }
.pd-pill {
  display: inline-flex; align-items: center;
  padding: .3rem 1rem; border-radius: 999px;
  background: oklch(0.68 0.18 47 / 0.1);
  border: 1px solid oklch(0.68 0.18 47 / 0.3);
  color: var(--orange); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .18em; font-weight: 500;
}
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink); max-width: 52rem;
}
.pd-lead {
  margin-top: 1.5rem; max-width: 44rem;
  font-size: 1.125rem; line-height: 1.7;
  color: var(--muted-foreground);
}
.pd-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2rem 3rem; margin-top: 3rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.pd-meta-item { display: flex; flex-direction: column; gap: .35rem; }
.pd-meta-label {
  font-size: .65rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted-foreground);
}
.pd-meta-value {
  font-family: var(--font-display); font-size: .95rem;
  font-weight: 500; color: var(--ink);
}
.pd-meta-cta { margin-left: auto; }
.pd-live-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink); font-size: .85rem; font-weight: 500;
  transition: all .2s ease;
  background: var(--card);
}
.pd-live-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ── Cover ── */
.pd-cover { padding: 1.5rem 0 2rem; background: var(--background); }
.pd-cover img {
  width: 100%; height: auto; display: block;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 16 / 9; object-fit: cover;
}

/* ── Body grid ── */
.pd-body { padding: 5rem 0 4rem; }
.pd-grid {
  display: grid; gap: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr 22rem; gap: 5rem; align-items: start; }
  .pd-sidebar { position: sticky; top: 7rem; }
}

/* ── Main blocks ── */
.pd-block { margin-bottom: 3.5rem; }
.pd-block-label {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--orange); font-weight: 500;
  margin-bottom: .9rem;
}
.pd-block-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15; margin: 0 0 1.25rem;
}
.pd-content { color: var(--muted-foreground); line-height: 1.75; }
.pd-content p,
.pd-content h1, .pd-content h2, .pd-content h3,
.pd-content h4, .pd-content h5, .pd-content h6 { font-size: 1rem; font-weight: 400; font-family: inherit; color: var(--muted-foreground); line-height: 1.75; margin-bottom: 1rem; }
.pd-content h5 { font-weight: 700; }
.pd-content p:last-child,
.pd-content h1:last-child, .pd-content h2:last-child, .pd-content h3:last-child,
.pd-content h4:last-child, .pd-content h5:last-child, .pd-content h6:last-child { margin-bottom: 0; }
.pd-content a { color: var(--orange); text-decoration: none; }
.pd-content a:hover { opacity: .75; }

/* ── Sidebar cards ── */
.pd-sidebar { display: grid; gap: 1.25rem; }
.pd-card {
  padding: 1.5rem; border: 1px solid var(--border);
  border-radius: 1.25rem; background: var(--card);
  box-shadow: var(--shadow-soft);
}
.pd-card-heading {
  font-size: .65rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted-foreground); margin: 0 0 1rem;
}
.pd-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-tags span {
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--background); border: 1px solid var(--border);
  font-size: .8rem; color: var(--ink);
}

/* Colors */
.pd-colors { display: flex; flex-wrap: wrap; gap: .6rem; }
.pd-color {
  position: relative; width: 3rem; height: 3rem;
  border-radius: .6rem; overflow: hidden; cursor: default;
  transition: transform .2s ease; box-shadow: 0 1px 4px oklch(0.2 0.05 50 / 0.15);
}
.pd-color:hover { transform: scale(1.12); }
.pd-color-label {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: .2rem;
  font-size: .45rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s ease;
  font-family: var(--font-display);
}
.pd-color:hover .pd-color-label { opacity: 1; }

/* Fonts */
.pd-fonts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.pd-fonts li {
  padding: .6rem 1rem; border-radius: .6rem;
  border: 1px solid var(--border); background: var(--background);
  font-size: 1rem; font-family: var(--font-display); font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}

/* Live site CTA card */
.pd-card-cta { background: var(--surface); }

/* ── Gallery ── */
/* ── Gallery grid ── */
.pd-gallery { padding: 2rem 0 5rem; }
.pd-section-label {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted-foreground); margin-bottom: 2rem;
}
.pd-gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-gallery-item--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .pd-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-gallery-item--wide { grid-column: span 2; }
}
.pd-gallery-item {
  position: relative; margin: 0; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--card);
  cursor: zoom-in;
}
.pd-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* aspect-ratio: 4 / 3; */
  transition: transform .55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pd-gallery-item--wide img { /* aspect-ratio: 16 / 9; */ }
.pd-gallery-item:hover img { transform: scale(1.05); }

/* Hover overlay */
.pd-gallery-overlay {
  position: absolute; inset: 0;
  background: oklch(0.12 0.015 50 / 0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.pd-gallery-item:hover .pd-gallery-overlay {
  background: oklch(0.12 0.015 50 / 0.45);
}
.pd-gallery-zoom {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: oklch(1 0 0 / 0.15);
  border: 1px solid oklch(1 0 0 / 0.3);
  color: #fff;
  opacity: 0; transform: scale(0.7);
  transition: opacity .25s ease, transform .25s ease;
}
.pd-gallery-item:hover .pd-gallery-zoom {
  opacity: 1; transform: scale(1);
}

/* ── Lightbox ── */
.lb {
  position: fixed; inset: 0; z-index: 9999;
  background: oklch(0.08 0.01 50 / 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lb:not([hidden]) { opacity: 1; }
.lb[hidden] { display: none; }

.lb-stage {
  display: flex; align-items: center; justify-content: center;
  max-width: calc(100vw - 10rem); max-height: calc(100vh - 6rem);
  position: relative;
}
.lb-img {
  max-width: 100%; max-height: calc(100vh - 6rem);
  border-radius: .75rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  object-fit: contain; display: block;
  transition: opacity .38s cubic-bezier(0.4, 0, 0.2, 1),
              transform .38s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-img.lb-exit-left  { opacity: 0; transform: translateX(-60px); }
.lb-img.lb-exit-right { opacity: 0; transform: translateX(60px); }
.lb-img.lb-enter-left  { opacity: 0; transform: translateX(-60px); transition: none; }
.lb-img.lb-enter-right { opacity: 0; transform: translateX(60px);  transition: none; }

.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
  z-index: 1;
}
.lb-close:hover { background: oklch(1 0 0 / 0.2); }

.lb-prev,
.lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 999px;
  background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
  z-index: 1;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover { background: oklch(1 0 0 / 0.18); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { background: oklch(1 0 0 / 0.18); transform: translateY(-50%) translateX(2px); }
.lb-prev:disabled,
.lb-next:disabled { opacity: 0.25; pointer-events: none; }

.lb-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.45); font-family: var(--font-display);
}

@media (max-width: 640px) {
  .lb-stage { max-width: 100vw; max-height: calc(100vh - 8rem); }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
  .lb-prev, .lb-next { width: 2.5rem; height: 2.5rem; }
}

/* ── Mobile section ── */
.pd-mobile { padding: 3rem 0 5rem; background: var(--surface); }
.pd-mobile-inner {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pd-mobile-inner { grid-template-columns: auto 1fr; } }
.pd-phone { display: flex; justify-content: center; }
.pd-phone-frame {
  width: min(220px, 60vw); border-radius: 2.5rem;
  border: 6px solid var(--ink); overflow: hidden;
  box-shadow: var(--shadow-elevated);
  background: #000;
}
.pd-phone-frame video { width: 100%; display: block; }

/* ── Videos (banners / filters) ── */
.pd-videos { padding: 3rem 0 5rem; }
.pd-videos-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pd-videos-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-video-wrap {
  border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border); background: var(--ink);
}
.pd-video-wrap video { width: 100%; display: block; }

/* ── Embed (youtube / animation) ── */
.pd-embed { padding: 3rem 0 5rem; }
.pd-embed-wrap {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--border); background: var(--ink);
  box-shadow: var(--shadow-elevated);
}
.pd-embed-wrap iframe,
.pd-embed-wrap video {
  width: 100%; display: block; min-height: 360px;
  aspect-ratio: 16 / 9; border: none;
}

/* ── Next / Prev navigation ── */
.pd-nav-projects { padding: 4rem 0 6rem; border-top: 1px solid var(--border); }
.pd-nav-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .pd-nav-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-nav-item {
  position: relative; display: flex; align-items: flex-end;
  min-height: 220px; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--ink);
  background-image: var(--thumb, none);
  background-size: cover; background-position: center;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.pd-nav-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.pd-nav-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.12 0.015 50 / 0.92), oklch(0.12 0.015 50 / 0.35) 60%, transparent);
}
.pd-nav-content {
  position: relative; z-index: 1; padding: 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.pd-nav-dir {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .18em;
  color: oklch(1 0 0 / 0.55);
}
.pd-nav-title {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 500; color: #fff; line-height: 1.2;
  letter-spacing: -0.02em;
}
.pd-nav-item--next .pd-nav-content { align-items: flex-end; text-align: right; }
.pd-nav-item--next .pd-nav-dir { flex-direction: row-reverse; }

/* ============================================================
   Section spacing safeguards (prevent CTA glueing to footer)
   ============================================================ */
.cta,
.cta-section { padding: 5rem 0 6rem; }
@media (min-width: 640px) {
  .cta,
  .cta-section { padding: 7rem 0 8rem; }
}
.site-footer { margin-top: 0; }
.site-footer .footer-inner { padding-top: 5rem; padding-bottom: 5rem; }

/* Subtle layered radial overlays — match the original Lovable footer depth */
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 20% 0%, oklch(0.18 0.04 60 / 0.6), transparent 60%),
    radial-gradient(50% 70% at 90% 100%, oklch(0.16 0.05 40 / 0.5), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Keep background layers absolute; only lift real content above them */
.site-footer .grid-bg,
.site-footer .synapse-lines { position: absolute; inset: 0; z-index: 0; }
.site-footer > .container { position: relative; z-index: 1; }

/* CTA card background layers — guarantee they stay behind content */
.cta-card .hero-base,
.cta-card .hero-glow,
.cta-card .hero-signals,
.cta-card .hero-fade { z-index: 0; }
.cta-card > h2,
.cta-card > p,
.cta-card > .actions { position: relative; z-index: 1; }

/* ============================================================
   Hero entrance animations
   ============================================================ */
@keyframes synFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes synFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes synScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.hero .hero-eyebrow,
.hero h1 > span,
.hero .hero-lead,
.hero .hero-actions,
.hero .hero-card {
  opacity: 0;
  animation: synFadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero .hero-eyebrow         { animation-delay: 0.05s; }
.hero h1 > span:nth-child(1){ animation-delay: 0.15s; }
.hero h1 > span:nth-child(2){ animation-delay: 0.25s; }
.hero h1 > span:nth-child(3){ animation-delay: 0.35s; }
.hero .hero-lead            { animation-delay: 0.5s; }
.hero .hero-actions         { animation-delay: 0.65s; }
.hero .hero-card            { animation: synScaleIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards; }

/* ============================================================
   Scroll reveal (IntersectionObserver toggles .in-view)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-reveal-delay="1"].in-view { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"].in-view { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"].in-view { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"].in-view { transition-delay: 0.32s; }

/* ============================================================
   Hover micro-interactions
   ============================================================ */
.btn { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.work-item { transition: transform 0.5s ease, box-shadow 0.5s ease; }
.work-item img { transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.work-item:hover img { transform: scale(1.05); }
.work-item .view { opacity: 0; transition: opacity 0.3s ease; }
.work-item:hover .view { opacity: 1; }

.pillar, .service, .process-step, .testimonial, .case-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pillar:hover, .service:hover, .case-card:hover {
  transform: translateY(-2px);
}

.footer-col a { transition: color 0.2s ease, transform 0.2s ease; }
.footer-col a:hover { color: #fff; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-eyebrow,
  .hero h1 > span,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero .hero-card,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Animated synapse lines — used inside CTA card and footer */
.synapse-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.site-footer .synapse-lines { opacity: 0.22; }
.synapse-lines path {
  stroke-dasharray: 8 14;
  animation: synLineFlow 14s linear infinite;
}
.synapse-lines path:nth-child(2) { animation-duration: 18s; animation-direction: reverse; }
.synapse-lines path:nth-child(3) { animation-duration: 22s; }
@keyframes synLineFlow {
  to { stroke-dashoffset: -440; }
}

/* ============================================================
   Support Page
   ============================================================ */

.support-hero { padding: 7rem 0 5rem; background: var(--background); border-bottom: 1px solid var(--border); }
.support-hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: center; }

.social-proof { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.social-proof .stars { display: flex; gap: 2px; color: var(--orange); }
.social-proof .star { width: 1rem; height: 1rem; }
.social-proof-text { font-size: 0.85rem; color: var(--muted-foreground); font-style: italic; }

.support-hero-title { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.support-hero-desc { margin-top: 1.5rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); }
.support-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.trust-badges { margin-top: 3rem; display: flex; align-items: center; gap: 1.5rem; }
.trust-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.trust-label { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.2rem; }
.trust-divider { width: 1px; height: 2.5rem; background: var(--border); }

.support-hero-visual { display: flex; justify-content: center; }
.performance-card {
  width: 100%; max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
  position: relative;
  animation: synFloat 5s ease-in-out infinite;
}
@keyframes synFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.performance-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.performance-card-icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--gradient-synapse);
  border-radius: 0.85rem;
}
.performance-card-head h3 { font-size: 1.05rem; font-family: var(--font-display); }
.performance-card-head p { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.15rem; }
.progress-bars { display: grid; gap: 1.1rem; }
.progress-header { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--ink); }
.progress-value { font-weight: 600; color: var(--orange); }
.progress-track { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--gradient-synapse);
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.premium-badge {
  margin-top: 1.75rem;
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: oklch(0.74 0.17 60 / 0.12);
  color: var(--orange);
}

/* ---- Process (light variant) ---- */
.support-process { padding: 7rem 0; background: var(--surface); }
.support-process-grid { margin-top: 4rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.support-process-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.support-process-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-3px); }
.support-process-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.85rem; color: #fff; margin-bottom: 1.25rem;
}
.support-process-icon svg { width: 1.4rem; height: 1.4rem; }
.support-process-num { position: absolute; top: 2rem; right: 2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--border); }
.support-process-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.support-process-card p { font-size: 0.92rem; line-height: 1.65; color: var(--muted-foreground); }
.support-section-cta { margin-top: 3.5rem; display: flex; justify-content: center; }

/* ---- Why Us / Comparison ---- */
.support-why-us { padding: 7rem 0; background: var(--background); }
.comparison-grid { margin-top: 4rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.comparison-card { border-radius: 1.5rem; padding: 2.25rem; border: 1px solid var(--border); }
.comparison-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; margin-bottom: 1.5rem; }
.comparison-without { background: oklch(0.16 0.008 50 / 0.03); }
.comparison-with { background: oklch(0.74 0.17 60 / 0.06); border-color: oklch(0.74 0.17 60 / 0.25); }
.comparison-list { display: grid; gap: 1rem; }
.comparison-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--ink); line-height: 1.5; }
.list-icon { flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.list-icon svg { width: 0.85rem; height: 0.85rem; }
.list-icon-x { background: oklch(0.55 0.2 25 / 0.12); color: oklch(0.55 0.2 25); }
.list-icon-check { background: oklch(0.6 0.15 145 / 0.15); color: oklch(0.5 0.15 145); }
.support-closing { max-width: 42rem; margin: 3.5rem auto 0; text-align: center; color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.7; }

/* ---- Contact ---- */
.support-contact { padding: 7rem 0; background: var(--surface); }
.support-contact-wrapper { max-width: 36rem; margin: 0 auto; }
.support-contact-form { margin-top: 3rem; background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2.5rem; box-shadow: var(--shadow-soft); }

/* ---- Modals (Calendly + Auto-popup) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: oklch(0.1 0.02 50 / 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative;
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
  transform: translateY(12px) scale(0.98);
  transition: transform .25s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .2s ease;
}
.modal-close:hover { background: var(--border); }
.modal-close svg { width: 1rem; height: 1rem; }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .support-hero-grid { grid-template-columns: 1fr; }
  .support-hero-visual { order: -1; }
  .support-process-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Back to top button
   (positioned above reCAPTCHA badge which sits at bottom:14px)
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 99;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px oklch(0.68 0.18 47 / 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  pointer-events: none;
}
.back-to-top:not([hidden]) { pointer-events: auto; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: oklch(0.62 0.2 47); }
.back-to-top svg { width: 1.1rem; height: 1.1rem; }

/* =============================================================
   About Page — Career strip
   ============================================================= */
.about-career {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-career-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.about-career-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: .5rem 0 1rem;
  line-height: 1.15;
}
.about-career-inner p {
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .about-career-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   Career Page + Single Job Page
   ============================================================= */

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted-foreground); text-decoration: none; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-hidden] { opacity: .4; }

/* ---- Job / career tags (meta badges) ---- */
.career-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}
.career-tag svg { width: .9rem; height: .9rem; flex-shrink: 0; }
.career-tag-date { color: var(--muted-foreground); }

/* ---- Career listings grid ---- */
.career-listings { padding: 5rem 0; }
.career-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.career-card {
  display: block;
  padding: 2rem 2.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  position: relative;
}
.career-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.career-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.career-card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 .75rem; }
.career-card-desc { font-size: .95rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1.5rem; }
.career-card-desc p { margin: 0; }
.career-card-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600;
  color: var(--orange); text-transform: uppercase; letter-spacing: .05em;
  transition: gap .2s ease;
}
.career-card:hover .career-card-cta { gap: .65rem; }
.career-card-cta svg { width: 1rem; height: 1rem; }

/* ---- Career empty state ---- */
.career-empty {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 5rem 0;
}
.career-empty svg { width: 3rem; height: 3rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.career-empty h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .75rem; }
.career-empty p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* ---- Values grid ---- */
.career-values { padding: 6rem 0; }
.career-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.career-value-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.career-value-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .75rem;
  background: oklch(0.74 0.17 60 / 0.12);
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.career-value-icon svg { width: 1.4rem; height: 1.4rem; }
.career-value-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.career-value-card p { font-size: .9rem; color: var(--muted-foreground); line-height: 1.6; }

/* ---- Single Job: hero extras ---- */
.job-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.job-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---- Single Job: content + sidebar ---- */
.job-content-section { padding: 5rem 0; }
.job-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.job-content { min-width: 0; }

/* Sidebar */
.job-sidebar-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.job-sidebar-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.job-details-list { display: flex; flex-direction: column; gap: .9rem; }
.job-details-list > div { display: flex; flex-direction: column; gap: .15rem; border-bottom: 1px solid var(--border); padding-bottom: .9rem; }
.job-details-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.job-details-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.job-details-list dd { font-size: .95rem; font-weight: 500; margin: 0; }

/* ---- Job content typography overrides ---- */
.job-content.pd-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-top: 2.25rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.job-content.pd-content h2:first-child { margin-top: 0; }
.job-content.pd-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.job-content.pd-content ul,
.job-content.pd-content ol {
  padding-left: 0;
  margin: 0 0 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.job-content.pd-content ul li,
.job-content.pd-content ol li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
  font-size: .95rem;
  line-height: 1.65;
}
.job-content.pd-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--orange);
}
.job-content.pd-content ol { counter-reset: job-ol; }
.job-content.pd-content ol li { counter-increment: job-ol; }
.job-content.pd-content ol li::before {
  content: counter(job-ol) '.';
  position: absolute; left: 0; top: 0;
  font-size: .8rem; font-weight: 700;
  color: var(--orange);
}

/* ---- Apply section ---- */
.job-apply { padding: 7rem 0; }
.job-apply-inner { max-width: 42rem; margin: 0 auto; }
.job-apply-form {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

/* CF7 field styles inside job apply form */
.job-apply-form .wpcf7-form p {
  display: grid;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.job-apply-form .wpcf7-form p:last-child { margin-bottom: 0; }
.job-apply-form .wpcf7-form input:not([type="submit"]),
.job-apply-form .wpcf7-form textarea,
.job-apply-form .wpcf7-form select {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: .75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.job-apply-form .wpcf7-form input:not([type="submit"]):focus,
.job-apply-form .wpcf7-form textarea:focus,
.job-apply-form .wpcf7-form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px oklch(0.68 0.18 47 / 0.15);
}
.job-apply-form .wpcf7-form textarea { min-height: 8rem; resize: vertical; }
.job-apply-form .wpcf7-form label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted-foreground);
  margin-bottom: .4rem;
}
.job-apply-form .wpcf7-form input[type="file"] {
  padding: .6rem 1rem;
  font-size: .9rem;
  cursor: pointer;
}
.job-apply-form .wpcf7-form button[type="submit"],
.job-apply-form .wpcf7-form input[type="submit"] {
  justify-self: start;
  width: auto;
  margin-top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: .75rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.job-apply-form .wpcf7-form button[type="submit"]:hover,
.job-apply-form .wpcf7-form input[type="submit"]:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .job-content-grid { grid-template-columns: 1fr; }
  .job-sidebar { order: -1; }
}
@media (max-width: 600px) {
  .career-card { padding: 1.5rem; }
  .career-card-title { font-size: 1.2rem; }
}

