@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme tokens: dark site (decided 29 Oct 2026). Page chrome reads these.
   Product artwork letterboxes, the WordPress-admin report card, the
   browser-window art cards and the before/after panels keep literal colours
   on purpose, because they depict other interfaces. */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-alt: #0e1627;
  --surface: #111a2e;
  --surface-2: #17223a;
  --surface-90: rgba(17, 26, 46, 0.9);
  --surface-60: rgba(17, 26, 46, 0.6);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --card-line: rgba(96, 165, 250, 0.22);
  --fg: #f8fafc;
  --text: #e2e8f0;
  --text-2: #b6c0cf;
  --muted: #94a3b8;
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --tint: rgba(59, 130, 246, 0.16);
  --tint-strong: rgba(59, 130, 246, 0.24);
  --ok: #4ade80;
}

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

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(to bottom, #0b1220 0, #0e1627 40%, #0b1220 100%);
  color: var(--fg);
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 50;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 0.9),
    rgba(11, 18, 32, 0.86),
    rgba(11, 18, 32, 0.78),
    rgba(11, 18, 32, 0.62)
  );
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
  transition: padding 0.25s ease;
}

.site-header-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(20px);
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(129, 140, 248, 0.45);
}

.site-header-scrolled .site-header-inner {
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #38bdf8,
    #6366f1,
    #a855f7,
    #f97316,
    #38bdf8
  );
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--bg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-link-active {
  background: var(--tint);
  color: var(--link);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5);
}

.nav-link:hover {
  background: var(--tint-strong);
  color: var(--fg);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-divider {
  width: 1px;
  height: 1.1rem;
  margin: 0 0.35rem;
  background: var(--line-strong);
  flex-shrink: 0;
}

.nav-link-cta {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4),
    0 14px 26px rgba(15, 23, 42, 0.25);
}

.nav-link-cta:hover {
  background: linear-gradient(to right, #60a5fa, #22d3ee);
}

/* Mobile Menu Toggle */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 30;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(20px);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-nav-link {
  animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-link:nth-child(6) {
  animation-delay: 0.35s;
}

.mobile-nav-link:hover {
  background: var(--tint);
  text-decoration: none;
}

.mobile-nav-link-cta {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: #f9fafb;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.25);
  margin-top: 1rem;
}

.mobile-nav-link-cta:hover {
  background: linear-gradient(to right, #60a5fa, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
}

/* Hero */

.section-hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: var(--fg);
  font-weight: 700;
}

.hero-lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.hero-lede-emph {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--fg);
  font-weight: 500;
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #3b82f6, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(to right, #60a5fa, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.3);
}

.btn-primary-large {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-large {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: var(--surface-90);
  color: var(--fg);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.44);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.58);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-meta {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 0.8rem;
  max-width: 40rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-location {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-location svg {
  flex-shrink: 0;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-card {
  width: 100%;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 1.3rem;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 55%),
    var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.51);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ok);
  font-weight: 500;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Stats Bar */

.stats-bar {
  padding: 2.5rem 0;
  background: var(--surface-60);
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}

/* Sections */

.section {
  padding: 3.7rem 0 3.3rem;
}

.section-alt {
  padding: 3.7rem 0 3.3rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 55%),
    var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: var(--fg);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* Bento Grid / Projects */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.51);
}

.project-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1b2743, #1a2140);
}

.project-card-featured .project-image {
  aspect-ratio: auto;
  min-height: 320px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image-full {
  background: #fafbfe;
}

.project-image-full img {
  object-fit: contain;
}

/* Letterbox bars match the GhostChat OG artwork's own background */
.project-image-dark {
  background: #0e0e24;
}

/* Letterbox bars match the KaspaWoo card artwork's mint background */
.project-image-kaspa {
  background: #ebf6f4;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.mini-projects {
  margin-top: 2.2rem;
}

.mini-projects-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* "Also building" has three cards: three across on wide screens */
@media (min-width: 1000px) { .mini-projects-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mini-project-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.4rem;
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.29);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
  text-decoration: none;
}

.mini-project-image {
  margin: -1.2rem -1.4rem 0.9rem;
  border-radius: 1.1rem 1.1rem 0 0;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--bg);
}

.mini-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-project-card {
  overflow: hidden;
}

.mini-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.mini-project-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--fg);
}

.mini-project-card p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-2);
}

.mini-project-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--link);
}

@media (max-width: 720px) {
  .mini-projects-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
  background: var(--surface-90);
  font-weight: 600;
}

.badge-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-content {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.project-content h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--fg);
  font-weight: 700;
}

.project-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.project-description strong {
  color: var(--link);
  font-weight: 600;
}

.project-description a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-description a:hover {
  color: var(--link-hover);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--link-hover);
  font-weight: 500;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}

.project-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.project-highlights + .project-links {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.highlight-item strong {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 600;
}

.highlight-item span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Professional work */

.experience-grid {
  display: grid;
  gap: 1.2rem;
}

.experience-card {
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.experience-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--fg);
  font-weight: 700;
}

.experience-role {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--text-2);
}

.experience-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link);
  white-space: nowrap;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.list li {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-2);
  padding-left: 1rem;
}

.list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--link);
  font-weight: 600;
}

[dir="rtl"] .list li {
  padding-left: 0;
  padding-right: 1rem;
}

[dir="rtl"] .list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .section-header,
[dir="rtl"] .prose {
  text-align: right;
}

/* Stack section */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.stack-group h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--fg);
  font-weight: 600;
}

.stack-group p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.deep-capabilities {
  margin-top: 2.1rem;
}

.deep-capabilities h3 {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
  color: var(--fg);
  font-weight: 600;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  color: var(--link-hover);
  background: var(--tint);
  font-weight: 500;
}

/* Philosophy */

.blockquote {
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    var(--surface);
  padding: 1.6rem 1.5rem 1.4rem;
  max-width: 640px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
}

.blockquote-main {
  margin: 0 0 0.5rem;
  font-size: 1.07rem;
  color: var(--fg);
  font-weight: 600;
}

.blockquote-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* Contact */

.section-contact {
  padding: 4rem 0;
  background:
    radial-gradient(circle at top center, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.16), transparent 55%),
    var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.51);
  text-align: center;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-header h2 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  color: var(--fg);
  font-weight: 700;
}

.contact-header p {
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
}

.contact-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-meta-item svg {
  flex-shrink: 0;
  color: var(--link);
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.testimonial-author strong {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 2.6rem 0 1.9rem;
  background: rgba(11, 18, 32, 0.8);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col-brand .brand {
  margin-bottom: 0.8rem;
}

.footer-col-brand p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 26rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem !important;
  color: var(--ok) !important;
  font-weight: 500;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }

  .footer-col-brand {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-col-brand {
    grid-column: span 1;
  }
}

.footer-meta {
  color: var(--text-2);
  font-weight: 500;
}

@media (min-width: 881px) {
  .hero-photo {
    width: 220px;
    height: 220px;
  }

  .hero-photo-card {
    max-width: 360px;
    padding: 1.75rem;
  }
}

/* Responsive */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-aside {
    justify-content: center;
  }

  .hero-photo-card {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card-featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .project-card-featured .project-image {
    min-height: 220px;
  }

  .experience-card {
    padding: 1.3rem 1.2rem;
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Five nav items: hand over to the hamburger below 881px so labels never wrap. */
@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding-inline: 0;
    gap: 0.7rem;
  }

  .section-hero {
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .section {
    padding-inline: 0;
  }

  .section-alt {
    padding-inline: 0;
  }

  .bento-grid {
    gap: 1rem;
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blockquote {
    padding-inline: 1.1rem;
  }

  .contact-card {
    padding: 2rem 1.5rem 1.8rem;
  }

  .contact-header h2 {
    font-size: 1.5rem;
  }

  .contact-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-meta {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section-hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .project-highlights {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ==========================================================================
   Services + case studies
   ========================================================================== */

/* Subpage hero */

.page-hero {
  padding: 3.2rem 0 2.6rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  max-width: 20ch;
}

.page-hero-wide h1 {
  max-width: 26ch;
}

.page-hero .hero-lede {
  max-width: 46rem;
}

.page-hero .hero-grid {
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--link);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.45rem;
  color: #475569;
}

.breadcrumb li:last-child::after {
  content: none;
}

/* Services grid */

.section-services {
  padding: 3.7rem 0 3.3rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
    linear-gradient(to bottom, rgba(17, 26, 46, 0.75), #0e1627);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

a.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.51);
  text-decoration: none;
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.16));
  color: var(--link);
}

.service-card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link);
}

.service-card-feature {
  border-color: rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.13), transparent 60%),
    var(--surface);
}

/* Long-form content */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.35rem;
  color: var(--fg);
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.03rem;
  color: var(--fg);
  font-weight: 600;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--link-hover);
}

.prose .list {
  margin-bottom: 1.2rem;
  gap: 0.5rem;
}

.prose .list li {
  line-height: 1.65;
}

/* Numbered process steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-2);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 700;
}

.steps li strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

/* Metric cards */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.metric-card {
  padding: 1.2rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* Callout */

.callout {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--card-line);
  border-left: 3px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.callout p + p {
  margin-top: 0.7rem;
}

/* Data table */

.data-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
}

.data-table td {
  color: var(--text-2);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  color: var(--fg);
  font-weight: 600;
}

.data-table .delta {
  color: var(--ok);
  font-weight: 600;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
}

.faq-item {
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.29);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  color: var(--fg);
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* Engagement models */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem;
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.engagement-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--fg);
  font-weight: 700;
}

.engagement-card > p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.65;
  color: var(--text-2);
}

.engagement-meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.engagement-meta strong {
  display: block;
  color: var(--link);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* CTA band */

.cta-band {
  margin-top: 2.4rem;
  padding: 2rem 1.8rem;
  border-radius: 1.3rem;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.16), transparent 60%),
    var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  color: var(--fg);
  font-weight: 700;
}

.cta-band p {
  margin: 0 auto 1.4rem;
  max-width: 34rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-2);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Related links */

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.related-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: var(--surface-90);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--link-hover);
  transition: background 0.16s ease, transform 0.16s ease;
}

.related-links a:hover {
  background: var(--tint);
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 880px) {
  .service-grid,
  .engagement-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .service-grid,
  .engagement-grid,
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }


  .page-hero {
    padding-top: 2.2rem;
  }

  .cta-band {
    padding: 1.6rem 1.2rem;
  }

  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Section nav — in-page section links, desktop only.
   Lives inside .site-header so it inherits the sticky positioning and needs
   no top-offset maths when the header shrinks on scroll. Collapsed until the
   reader is past the hero, then revealed by .section-nav-visible. */

.section-nav {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.25s ease, opacity 0.2s ease, border-color 0.25s ease;
}

@media (min-width: 881px) {
  .section-nav {
    display: block;
  }
}

.section-nav-visible {
  max-height: 4rem;
  opacity: 1;
  border-top-color: var(--line-strong);
}

.section-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem 1.4rem;
  padding: 0.6rem 0;
}

.section-nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.section-nav-link:hover {
  color: var(--link);
}

.section-nav-link-active {
  color: var(--link);
  font-weight: 600;
  border-bottom-color: var(--link);
}

@media (prefers-reduced-motion: reduce) {
  .section-nav {
    transition: none;
  }
}

/* WordPress care page (/care/) — its own look, scoped to body.care-page */

.care-page .care-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(114, 174, 230, 0.16) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(1200px 500px at 85% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(135deg, #0b1526 0%, #0b1a1a 55%, #1a1410 100%);
}

.care-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.wp-card {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 0.9rem;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  font-size: 0.86rem;
  transform: rotate(-1.2deg);
}

.wp-card-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: #1d2327;
  color: #f0f0f1;
  font-weight: 600;
}

.wp-logo {
  display: inline-flex;
  color: #72aee6;
}

.wp-card-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7aaad;
}

.wp-card-rows {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1rem;
}

.wp-card-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f1;
  color: #3c434a;
}

.wp-card-rows li:last-child {
  border-bottom: 0;
}

.wp-card-rows strong {
  color: #1d2327;
  font-weight: 600;
}

.wp-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.wp-dot-ok {
  background: #00a32a;
  box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.14);
}

.wp-dot-warn {
  background: #dba617;
  box-shadow: 0 0 0 3px rgba(219, 166, 23, 0.16);
}

.wp-card-foot {
  padding: 0.7rem 1rem;
  background: #f6f7f7;
  border-top: 1px solid #dcdcde;
  color: #2271b1;
  font-weight: 600;
  font-size: 0.8rem;
}

.care-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(114, 174, 230, 0.18), rgba(0, 163, 42, 0.14));
  color: #72aee6;
}

.care-page .stats-bar .stat-number {
  color: #72aee6;
}

.care-page #he {
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 163, 42, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #0b1a14, #0b1220);
}

@media (max-width: 880px) {
  .care-hero-grid {
    grid-template-columns: 1fr;
  }

  .wp-card {
    transform: none;
    max-width: 26rem;
  }
}

/* Page themes — each hero gets its own tint + texture and an example card */

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.theme-home .section-hero,
.theme-svc .page-hero,
.theme-pay .page-hero,
.theme-ai .page-hero {
  position: relative;
  overflow: hidden;
}

.theme-home .section-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(96, 165, 250, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(900px 480px at 88% 10%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(135deg, #0c1527 0%, #0b1220 55%, #0d1a22 100%);
}

.theme-svc .page-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(96, 165, 250, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(1000px 500px at 90% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    linear-gradient(135deg, #0c1527 0%, #0b1a1f 60%, #0b1220 100%);
}

.theme-pay .page-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(52, 211, 153, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(1000px 500px at 90% -10%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(135deg, #0b1a16 0%, #0c1527 60%, #0b1220 100%);
}

.theme-ai .page-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(167, 139, 250, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(1000px 500px at 90% -10%, rgba(236, 72, 153, 0.14), transparent 60%),
    linear-gradient(135deg, #130f26 0%, #0c1527 60%, #1a0f1a 100%);
}

.theme-pay .stats-bar .stat-number { color: #34d399; }
.theme-ai .stats-bar .stat-number { color: #c4b5fd; }
.theme-svc .stats-bar .stat-number { color: #5eead4; }

.art-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0.9rem;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  font-size: 0.85rem;
  transform: rotate(-1.2deg);
}

.art-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
}

.art-bar-light {
  background: #f8fafc;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.art-tag {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.art-dots { display: inline-flex; gap: 0.3rem; }
.art-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #475569; display: block; }
.art-dots i:nth-child(1) { background: #f87171; }
.art-dots i:nth-child(2) { background: #fbbf24; }
.art-dots i:nth-child(3) { background: #34d399; }

.art-live { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.art-live-blue { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }

.art-dark { background: #111827; border-color: #1f2937; }

.art-log { list-style: none; margin: 0; padding: 0.5rem 1rem; }
.art-log li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1f2937;
  color: #cbd5e1;
  font-size: 0.78rem;
}
.art-log li:last-child { border-bottom: 0; }
.art-log code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #e2e8f0; font-size: 0.76rem; }
.art-log em { font-style: normal; color: #94a3b8; text-align: right; }
.art-log span { font-family: ui-monospace, Menlo, monospace; font-size: 0.7rem; padding: 0.1rem 0.35rem; border-radius: 0.3rem; }
.art-log .ok { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.art-log .dup { background: rgba(148, 163, 184, 0.16); color: #94a3b8; }
.art-log .warn { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.art-dark .art-foot { background: #0b1220; border-top-color: #1f2937; color: #34d399; }

.art-chat { padding: 0.9rem 1rem; display: grid; gap: 0.55rem; }
.art-chat .msg { margin: 0; padding: 0.55rem 0.8rem; border-radius: 0.9rem; max-width: 85%; line-height: 1.45; }
.art-chat .msg-user { justify-self: end; background: #6d28d9; color: #fff; border-bottom-right-radius: 0.25rem; }
.art-chat .msg-bot { justify-self: start; background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 0.25rem; }
.msg-src, .msg-handoff { display: block; margin-top: 0.3rem; font-size: 0.68rem; font-weight: 600; }
.msg-src { color: #6d28d9; }
.msg-handoff { color: #047857; }

.art-steps { list-style: none; margin: 0; padding: 0.6rem 1rem; }
.art-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid #f1f5f9; color: #334155; }
.art-steps li:last-child { border-bottom: 0; }
.art-steps strong { color: #0f766e; }
.art-steps li.now strong { color: #1d4ed8; }

.art-foot {
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.78rem;
}

@media (max-width: 880px) {
  .split-hero { grid-template-columns: 1fr; }
  .art-card { transform: none; max-width: 26rem; }
}

/* ---------- Hebrew-browser banner (hidden unless the browser prefers Hebrew) ---------- */
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.45rem 1rem;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.88rem;
}

.lang-banner[hidden] {
  display: none;
}

.lang-banner p {
  margin: 0;
}

.lang-banner a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.lang-banner a:hover {
  text-decoration: underline;
}

.lang-banner-close {
  padding: 0.2rem 0.45rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lang-banner-close:hover {
  opacity: 1;
}

/* ---------- Proof strip (chips) ---------- */
.proof-strip-wrap {
  padding: 1.2rem 0 0.2rem;
}

.proof-strip.proof-strip-inline {
  justify-content: flex-start;
  margin: -0.4rem 0 1.8rem;
}

.tech-strip-wrap {
  padding: 0 0 1.4rem;
}

.tech-strip-label {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.proof-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--card-line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.27);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--link-hover);
}

.proof-chip svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--link);
}

/* ---------- Case-study grid ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 1.1rem;
  border: 1px solid var(--card-line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.case-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.08rem;
}

.case-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.case-card .project-tags {
  margin-top: auto;
  padding-top: 0.6rem;
}

.case-card-shot img {
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid var(--line-strong);
  margin-bottom: 0.4rem;
}

.case-metric {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-metric small {
  font-size: 1rem;
  font-weight: 600;
}

.case-metric-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

/* ---------- Testimonial avatars ---------- */
.testimonial-author.t-author {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.t-author > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-author .t-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Before / after panels (care) ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.ba-card {
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  font-size: 0.92rem;
}

.ba-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ba-before .ba-bar {
  background: #fff7ed;
  color: #9a3412;
}

.ba-after .ba-bar {
  background: #ecfdf5;
  color: #065f46;
}

.ba-dots {
  display: inline-flex;
  gap: 4px;
}

.ba-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.ba-rows {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.ba-rows li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-top: 1px solid #f1f5f9;
  line-height: 1.45;
}

.ba-rows li:first-child {
  border-top: 0;
}

.ba-rows .wp-dot {
  flex: none;
  margin-top: 0.35rem;
}

.wp-dot-bad {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ---------- Uptime bar in the report card ---------- */
.uptime {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.uptime i {
  display: block;
  width: 5px;
  height: 14px;
  border-radius: 2px;
  background: #22c55e;
}

.uptime i.warn {
  background: #f59e0b;
}

@media (max-width: 720px) {
  .case-grid,
  .ba-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Compact steps inside the care CTA box ---------- */
.cta-steps {
  list-style: none;
  counter-reset: cta-step;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin: 0.2rem 0 1.4rem;
  padding: 0;
  font-size: 0.92rem;
}

.cta-steps li {
  counter-increment: cta-step;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-steps li::before {
  content: counter(cta-step);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--link-hover);
  font-size: 0.75rem;
  font-weight: 700;
}
