:root {
  --green: #22C55E;
  --teal: #14B8A6;
  --cyan: #06B6D4;
  --bg: #06091A;
  --bg2: #0B1024;
  --bg-card: rgba(13,21,45,0.85);
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(20,184,166,0.3);
  --text: #F0F4FF;
  --muted: #7B90B8;
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --grad: linear-gradient(135deg, var(--green), var(--teal), var(--cyan));
  --grad2: linear-gradient(135deg, var(--teal), var(--cyan));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* SELECTION */
::selection { background: rgba(20,184,166,0.3); color: var(--text); }

/* GLOBAL */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 32px; }

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* GRID LINES BG */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============ NAVIGATION ============ */
/* Scoped to the site nav — a bare `nav` selector would also pin the blog
   filters, breadcrumbs and pagination to the top of the viewport. */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

#main-nav.scrolled {
  background: rgba(6,9,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-team-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(13, 21, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 2px 4px;
  cursor: default;
  transition: transform 0.2s, border-color 0.2s;
}

.nav-team-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.4);
}

.nav-team-img {
  height: 34px;
  width: auto;
  border-radius: 999px;
  display: block;
  object-fit: contain;
}

.nav-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #22C55E;
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite;
}

.nav-cta {
  background-color: var(--teal);
  background-image: var(--grad2);
  color: #000 !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#main-nav .nav-cta {
  background: var(--grad) !important;
  color: #040816 !important;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

#main-nav .nav-cta:hover {
  background: linear-gradient(135deg, #2ae06c, #17cfbb, #0acbf0) !important;
  color: #000000 !important;
  box-shadow: 0 6px 26px rgba(20, 184, 166, 0.55);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--green), var(--teal));
  background-size: 250% auto;
  color: #000;
  border: none;
  animation: btnShimmer 14s linear infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20,184,166,0.35);
  animation-duration: 7s;
}

@keyframes btnShimmer {
  from { background-position: 0% center; }
  to   { background-position: 250% center; }
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(20,184,166,0.08);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: none;
  padding: 0;
  font-size: 14px;
}

.btn-ghost:hover {
  color: var(--cyan);
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal);
  margin-bottom: 24px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============ SECTION HEADER ============ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.grad-text {
  background: linear-gradient(90deg, var(--green), var(--teal), var(--cyan), var(--green));
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headlineShimmer 4s linear infinite;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(20,184,166,0.08);
}

/* ============ TAGS ============ */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  color: var(--teal);
}

.tag.dev { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: var(--green); }
.tag.automation { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2); color: var(--cyan); }
.tag.design { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.2); color: #A855F7; }

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============ GLOW ORBS ============ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.12;
}

/* ============ HOME PAGE ============ */

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--teal);
  top: -200px;
  right: -200px;
}

.hero .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--green);
  bottom: -100px;
  left: -100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-title .line-2 {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  cursor: default;
  transition: transform 0.25s;
}

.hero-stat:hover {
  transform: translateY(-3px);
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hero-stat-num .unit {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  width: 460px;
  height: 460px;
  z-index: 1;
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}

.ai-ring-1 {
  inset: 0;
  border-color: rgba(20,184,166,0.25);
  animation-duration: 20s;
}

.ai-ring-2 {
  inset: 44px;
  border-color: rgba(34,197,94,0.18);
  animation-duration: 14s;
  animation-direction: reverse;
}

.ai-ring-3 {
  inset: 96px;
  border-color: rgba(6,182,212,0.15);
  animation-duration: 26s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Orbit dots on rings */
.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 50%;
  left: -4.5px;
  transform: translateY(-50%);
}

.orbit-dot-1 { background: var(--teal); box-shadow: 0 0 10px var(--teal), 0 0 20px rgba(20,184,166,0.4); }
.orbit-dot-2 { background: var(--green); box-shadow: 0 0 10px var(--green), 0 0 20px rgba(34,197,94,0.4); left: auto; right: -4.5px; }
.orbit-dot-3 { background: var(--cyan); box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(6,182,212,0.4); top: -4.5px; left: 50%; transform: translateX(-50%); }

.ai-center {
  position: absolute;
  inset: 145px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(20,184,166,0.18), rgba(34,197,94,0.08));
  border: 1px solid rgba(20,184,166,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(20,184,166,0.08), inset 0 0 40px rgba(20,184,166,0.04);
}

/* Stat divider */
.hero-stats-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  align-self: center;
}

.ai-center-text {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
  line-height: 1.8;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

/* SCROLLING TICKER */
.ticker-wrap {
  background: var(--grad);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 16px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.ticker-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* INTRO / TRUST */
.intro-trust {
  padding: 100px 0;
  position: relative;
}

.intro-trust-copy {
  max-width: 720px;
  margin-bottom: 64px;
}

.intro-trust-copy .section-label {
  display: block;
  margin-bottom: 16px;
}

.intro-trust-copy h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.2;
}

.intro-trust-copy p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

/* Stats row */
.intro-trust-stats {
  display: flex;
  align-items: stretch;
  padding-top: 56px;
  gap: 0;
  position: relative;
}

/* Animated gradient line drawn on scroll */
.intro-trust-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.intro-trust-stats.line-visible::before {
  width: 100%;
}

.trust-stat {
  flex: 1;
  padding: 0 40px;
  position: relative;
  transition: transform 0.3s ease;
}

.trust-stat:first-child { padding-left: 0; }
.trust-stat:last-child  { padding-right: 0; }

/* Separator lines */
.trust-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(20,184,166,0.3), transparent);
  transition: opacity 0.4s;
}

.trust-stat:hover { transform: translateY(-5px); }

.trust-stat:hover + .trust-stat::after {
  opacity: 0.5;
}

.trust-stat-num {
  font-family: var(--font-head);
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--teal);
  transition: color 0.3s ease, filter 0.3s ease;
  display: inline-block;
}

.trust-stat:hover .trust-stat-num {
  color: var(--green);
  filter: drop-shadow(0 0 14px rgba(34,197,94,0.45));
}

.trust-stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  transition: color 0.3s ease;
}

.trust-stat:hover .trust-stat-label {
  color: var(--text);
}

@media (max-width: 768px) {
  .intro-trust-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding-top: 32px;
  }
  .trust-stat {
    padding: 0;
  }
  .trust-stat-num {
    font-size: clamp(30px, 7.5vw, 40px);
    margin-bottom: 6px;
  }
  .trust-stat-label {
    font-size: 13px;
  }
  .trust-stat:not(:last-child)::after { display: none; }
}

/* SERVICES SNAPSHOT */
.services-snap {
  padding: 100px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: none;
  border-top: 3px solid var(--teal);
  border-radius: 0 0 14px 14px;
  padding: 28px 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(20,184,166,0.13);
  border-top-color: var(--green);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(20,184,166,0.18);
  border-color: rgba(20,184,166,0.35);
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.35;
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 20px;
  transition: gap 0.2s, color 0.2s;
}

.service-card:hover .arrow {
  gap: 10px;
  color: var(--green);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* WHY TECH CREEDS */
.ai-advantage {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(20,184,166,0.03), transparent);
  position: relative;
  overflow: hidden;
}

/* Drifting background orb */
.ai-advantage::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.06), transparent 70%);
  top: -100px;
  right: -200px;
  animation: orbDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 80px) scale(1.15); }
}

.advantage-header {
  max-width: 640px;
  margin-bottom: 56px;
}


@keyframes headlineShimmer {
  from { background-position: 0% center; }
  to   { background-position: 250% center; }
}

.advantage-subtext {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}

/* 2×2 grid of points */
.advantage-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.advantage-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.35s, border-left-color 0.35s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.advantage-point::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(20,184,166,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.advantage-point:hover {
  border-color: var(--border-glow);
  border-left-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(20,184,166,0.1);
}

.advantage-point:hover::after { opacity: 1; }

.advantage-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.advantage-point:hover .advantage-num {
  background: rgba(20,184,166,0.2);
  border-color: var(--teal);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 0 14px rgba(20,184,166,0.4);
}

.advantage-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  transition: color 0.3s;
}

.advantage-point:hover .advantage-text h4 { color: var(--teal); }

.advantage-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA below points */
.advantage-cta {
  margin-bottom: 64px;
}

/* Tools strip */
.tools-strip {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.tools-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Marquee */
.tools-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tools-marquee:hover .tools-list { animation-play-state: paused; }

.tools-list {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: toolsScroll 28s linear infinite;
  width: max-content;
}

@keyframes toolsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(240,244,255,0.3);
  transition: color 0.25s;
  letter-spacing: 0.01em;
  cursor: default;
  padding: 6px 0;
  display: inline-block;
}

.tool-name:hover { color: var(--teal); }

.tool-sep {
  font-size: 14px;
  color: rgba(240,244,255,0.1);
  padding: 0 16px;
  user-select: none;
  display: inline-block;
}

@media (max-width: 768px) {
  .advantage-points-grid { grid-template-columns: 1fr; }
}

/* PORTFOLIO TEASER */
.portfolio-teaser {
  padding: 100px 0;
}

.portfolio-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.port-card-home {
  --pch-visual-h: 172px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.port-card-home:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 60px rgba(20,184,166,0.12);
}

/* --- visual header --- */
.port-card-bg {
  position: relative;
  height: var(--pch-visual-h);
  flex: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* faint grid texture */
.pch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 78%);
}

/* soft coloured glow */
.pch-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -90px;
  right: -60px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.16;
  filter: blur(60px);
  transition: opacity 0.4s ease;
}

.port-card-home:hover .pch-glow { opacity: 0.32; }

/* category chip */
.pch-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  background: rgba(6,9,26,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.pch-chip svg { width: 13px; height: 13px; }

/* shared mock frame */
.pch-mock {
  position: relative;
  z-index: 2;
  width: 76%;
  transform: translateY(6px);
  transition: transform 0.45s ease;
}

.port-card-home:hover .pch-mock { transform: translateY(0) scale(1.03); }

.pch-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
}

.pch-line.w30 { width: 30%; }
.pch-line.w55 { width: 55%; }
.pch-line.w65 { width: 65%; }
.pch-line.w80 { width: 80%; }

/* browser mock */
.pch-mock-browser {
  border-radius: 10px 10px 0 0;
  background: rgba(8,13,32,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}

.pch-mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.pch-dot:first-child { background: rgba(34,197,94,0.6); }

.pch-url {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
}

.pch-mock-body { padding: 12px; }

.pch-hero {
  height: 30px;
  border-radius: 6px;
  background: var(--grad2);
  opacity: 0.55;
  margin-bottom: 10px;
}

.pch-lines { display: flex; flex-direction: column; gap: 6px; }

.pch-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.pch-blocks span {
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

/* workflow mock */
.pch-mock-flow { width: 88%; }

.pch-mock-flow svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.pch-wire {
  fill: none;
  stroke: rgba(20,184,166,0.5);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  animation: pchFlow 1.6s linear infinite;
}

@keyframes pchFlow {
  to { stroke-dashoffset: -18; }
}

.pch-node circle {
  fill: rgba(8,13,32,0.85);
  stroke: rgba(20,184,166,0.65);
  stroke-width: 1.5;
}

.pch-node path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
}

.pch-node { animation: pchPulse 2.4s ease-in-out infinite; transform-origin: center; }
.pch-node-2 { animation-delay: 0.3s; }
.pch-node-3 { animation-delay: 0.6s; }
.pch-node-4 { animation-delay: 0.9s; }

@keyframes pchPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.pch-flow-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* store mock */
.pch-mock-store {
  width: 68%;
  padding: 10px 12px;
  transform: translateY(-4px);
  border-radius: 10px;
  background: rgba(8,13,32,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.pch-store-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pch-cart {
  width: 14px;
  height: 12px;
  border: 1.5px solid rgba(20,184,166,0.7);
  border-radius: 0 0 4px 4px;
  position: relative;
}

.pch-cart::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 3px;
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(20,184,166,0.7);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.pch-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pch-prod {
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.pch-prod:nth-child(1) { background: linear-gradient(135deg, rgba(34,197,94,0.28), rgba(20,184,166,0.18)); }

.pch-price {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}

/* fade the visual into the card body */
.port-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pch-visual-h);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(6,9,26,0.35) 45%, transparent 100%);
}

/* --- body --- */
.port-card-info {
  position: relative;
  z-index: 3;
  padding: 18px 22px 22px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.port-card-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.port-card-info .tag { align-self: flex-start; }

.port-card-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.pch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pch-tech {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.port-card-home:hover .pch-tech {
  color: var(--text);
  border-color: rgba(20,184,166,0.25);
}

.pch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pch-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--grad2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pch-cta i {
  font-style: normal;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.port-card-home:hover .pch-cta i { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .pch-wire, .pch-node { animation: none; }
  .port-card-home, .pch-mock, .pch-cta i { transition: none; }
}

/* FOUNDERS PREVIEW */
.founders-preview {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(11,16,36,0.5), transparent);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.founder-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  position: relative;
}

.founder-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--grad);
  z-index: -1;
}

.founder-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  background: var(--bg2);
  font-family: var(--font-head);
  position: relative;
  z-index: 1;
}

.founder-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.founder-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* FOOTER CTA */
.footer-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-box {
  background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(34,197,94,0.05));
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.footer-cta-box::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; right: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--grad);
}

.footer-cta-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.footer-cta-box p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 16px;
}

.footer-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
/* Scoped to the site footer. A bare `footer` selector also styled every
   <footer> inside cards — adding 40px of padding and a panel background. */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col ul a:hover { color: var(--teal); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-bottom: 30px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal); }

/* Regional badge beside the logo, so it is obvious at a glance which of the
   two sites you are on. */
.nav-region {
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(20, 184, 166, 0.45);
  background: rgba(20, 184, 166, 0.14);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

/* Switch back to the global site, from the mobile drawer. */
.mobile-nav-switch {
  margin-top: 18px;
  font-size: 15px !important;
  color: var(--teal) !important;
}

/* Location row: the Georgia service pages, set a size down from the main
   sections so the footer still reads in two clear tiers. */
.footer-nav-local {
  gap: 10px 22px;
  align-items: baseline;
  margin-bottom: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-nav-local a { font-size: 13px; }

.footer-nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(123, 144, 184, 0.7);
}

/* Legal row: it had no rule of its own, so the links ran together. */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--teal);
  border-color: var(--border-glow);
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.about-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.about-founders {
  padding: 80px 0;
}

.about-founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.about-founder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px 28px;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Gradient hairline across the top, revealed on hover. */
.founder-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.about-founder-card::after {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.07;
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.about-founder-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(20,184,166,0.12);
}

.about-founder-card:hover .founder-accent { opacity: 1; }
.about-founder-card:hover::after { opacity: 0.16; }

.founder-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-founder-av {
  position: relative;
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  background: linear-gradient(135deg, rgba(20,184,166,0.22), rgba(34,197,94,0.16));
  border: 1px solid rgba(20,184,166,0.32);
}

/* Rotating conic ring — subtle motion, not a spinner. */
.founder-av-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(20,184,166,0.55) 90deg, transparent 200deg);
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: founderRing 6s linear infinite;
  z-index: -1;
}

@keyframes founderRing { to { transform: rotate(360deg); } }

.about-founder-card:hover .founder-av-ring { opacity: 1; }

.founder-head h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.2;
}

/* Chip + focus travel together so the phrase never breaks mid-way. */
.founder-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.about-founder-role {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green);
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
}

.founder-focus {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.about-founder-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.founder-skills li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about-founder-card:hover .founder-skills li {
  color: var(--text);
  border-color: rgba(20,184,166,0.25);
}

.about-founder-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
  /* Explicit reset: this is a <footer> and must not inherit site-footer chrome. */
  padding: 18px 0 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.about-founder-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.about-founder-links a svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color 0.25s;
}

.about-founder-links a:hover {
  color: var(--text);
  background: rgba(20,184,166,0.12);
  border-color: rgba(20,184,166,0.45);
  transform: translateY(-2px);
}

.about-founder-links a:hover svg { color: var(--teal); }

/* Brand tints on hover so the two links stay distinguishable. */
.about-founder-links a[href*="linkedin"]:hover {
  background: rgba(10,102,194,0.16);
  border-color: rgba(56,148,230,0.5);
}
.about-founder-links a[href*="linkedin"]:hover svg { color: #57A9F0; }

.about-founder-links a[href*="upwork"]:hover {
  background: rgba(20,184,86,0.14);
  border-color: rgba(34,197,94,0.5);
}
.about-founder-links a[href*="upwork"]:hover svg { color: var(--green); }

@media (max-width: 560px) {
  .about-founder-card { padding: 26px 22px 22px; }
  .about-founder-av { width: 54px; height: 54px; font-size: 17px; }
  .founder-head { gap: 13px; }
  .founder-head h3 { font-size: 18px; }
  .founder-focus { white-space: normal; }
  .about-founder-links a { flex: 1; justify-content: center; }
}

.process-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(20,184,166,0.03), transparent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 34px; /* room for the number badges that overhang each card */
}

/* Connector runs through the centre of the number badges. */
.process-steps::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), var(--border-glow), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 22px 26px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 22px 50px rgba(20,184,166,0.10);
}

/* The number badge straddles the top edge, sitting on the connector line. */
.step-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad2);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #04121B;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 24px rgba(20,184,166,0.35);
}

.step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(20,184,166,0.10);
  border: 1px solid rgba(20,184,166,0.20);
  transition: background 0.3s ease, transform 0.3s ease;
}

.step-icon svg { width: 21px; height: 21px; }

.process-step:hover .step-icon {
  background: rgba(20,184,166,0.18);
  transform: scale(1.06);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.stack-section {
  padding: 80px 0;
}

/* Three per row keeps six cards as two full rows — auto-fit at 200px left
   five on one line and one orphan on the next. */
.stack-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack-cat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stack-cat:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 22px 50px rgba(20,184,166,0.10);
}

.stack-cat-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.stack-cat-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(20,184,166,0.10);
  border: 1px solid rgba(20,184,166,0.20);
  transition: transform 0.3s ease;
}

.stack-cat-icon svg { width: 20px; height: 20px; }
.stack-cat:hover .stack-cat-icon { transform: scale(1.07); }

/* A different accent per category so the grid reads as six distinct areas. */
.stack-cat-icon[data-tone="design"]     { color: #A855F7; background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.22); }
.stack-cat-icon[data-tone="automation"] { color: var(--green); background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.22); }
.stack-cat-icon[data-tone="ai"]         { color: var(--cyan); background: rgba(6,182,212,0.10); border-color: rgba(6,182,212,0.22); }
.stack-cat-icon[data-tone="marketing"]  { color: #F59E0B; background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }
.stack-cat-icon[data-tone="ops"]        { color: #60A5FA; background: rgba(96,165,250,0.10); border-color: rgba(96,165,250,0.22); }

.stack-cat-title {
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
}

.stack-cat-count {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Chips sit directly under the heading. Pushing them to the bottom with
   margin-top:auto left a hole in categories that have fewer tools. */
.stack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tool {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stack-cat:hover .stack-tool {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(20,184,166,0.22);
}

/* ============ SERVICES PAGE ============ */
.services-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.services-list {
  padding: 0 0 100px;
}

.service-item {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  /* Anchors from the quick nav must clear the fixed header. */
  scroll-margin-top: 110px;
}

.service-item:last-child { border-bottom: none; }

/* Alternating layout via grid order — `direction: rtl` also flipped
   punctuation inside the column, which this avoids. */
.service-item.reverse .service-item-content { order: 2; }
.service-item.reverse .service-visual { order: 1; }

.service-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.service-item h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.service-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.platform-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}

.platform-chip:hover {
  color: var(--teal);
  border-color: rgba(20,184,166,0.3);
  background: rgba(20,184,166,0.05);
}

.service-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.service-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20,184,166,0.05), transparent 70%);
  transition: background 0.4s ease;
}

/* Faint grid so the panel reads as a surface, not an empty box. */
.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  pointer-events: none;
}

.service-item:hover .service-visual {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(20,184,166,0.10);
}

.service-item:hover .service-visual::after {
  background: radial-gradient(circle at center, rgba(20,184,166,0.12), transparent 70%);
}

.service-big-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

.service-visual-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============ PORTFOLIO PAGE ============ */
.portfolio-hero {
  padding: 160px 0 64px;
  position: relative;
  overflow: hidden;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(20,184,166,0.1);
  border-color: rgba(20,184,166,0.3);
  color: var(--teal);
}

.filter-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: inherit;
  opacity: 0.75;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.port-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.port-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(20,184,166,0.1);
}

.port-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.port-card-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid texture + vignette so the mock sits on a surface, not a flat swatch. */
.port-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 35%, transparent 80%);
}

.port-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,9,26,0.55), transparent 60%);
}

/* ---- miniature preview ---- */
.pc-mock {
  position: relative;
  z-index: 1;
  width: 66%;
  transform: translateY(6px);
  transition: transform 0.45s ease;
}

.port-card:hover .pc-mock { transform: translateY(2px) scale(1.04); }

.pc-mock-browser {
  border-radius: 8px 8px 0 0;
  background: rgba(8,13,32,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  overflow: hidden;
}

.pc-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pc-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.pc-bar i:first-child { background: rgba(34,197,94,0.7); }

.pc-url {
  flex: 1;
  height: 6px;
  margin-left: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.10);
}

.pc-page { padding: 9px; }

.pc-hero {
  height: 22px;
  border-radius: 4px;
  background: var(--grad2);
  opacity: 0.6;
  margin-bottom: 7px;
}

.pc-lines { display: flex; flex-direction: column; gap: 4px; }
.pc-lines span { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); }
.pc-lines span:last-child { width: 62%; }

.pc-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.pc-blocks span {
  height: 16px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

/* storefront variant */
.pc-shop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.pc-prod {
  height: 20px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.pc-prod-lead { background: linear-gradient(135deg, rgba(34,197,94,0.35), rgba(20,184,166,0.22)); }

.pc-shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.pc-price {
  width: 34%;
  height: 5px;
  border-radius: 3px;
  background: rgba(34,197,94,0.7);
}

.pc-cart {
  width: 12px;
  height: 10px;
  border: 1.4px solid rgba(20,184,166,0.75);
  border-radius: 0 0 3px 3px;
  position: relative;
}

.pc-cart::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 2.5px;
  width: 5px;
  height: 5px;
  border: 1.4px solid rgba(20,184,166,0.75);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

/* dashboard / platform variant */
.pc-page-app { display: flex; gap: 7px; }

.pc-side {
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-side span {
  height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.14);
}

.pc-side span:first-child { background: rgba(20,184,166,0.6); }

.pc-panel { flex: 1; }

.pc-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  margin-bottom: 7px;
}

.pc-chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(20,184,166,0.45);
}

.pc-chart i:nth-child(1) { height: 40%; }
.pc-chart i:nth-child(2) { height: 62%; }
.pc-chart i:nth-child(3) { height: 48%; }
.pc-chart i:nth-child(4) { height: 100%; background: var(--green); }

/* automation workflow mock */
.pc-mock-flow { width: 78%; }
.pc-mock-flow svg { width: 100%; height: auto; display: block; overflow: visible; }

.pc-wire {
  fill: none;
  stroke: rgba(20,184,166,0.55);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  animation: pcFlow 1.8s linear infinite;
}

@keyframes pcFlow { to { stroke-dashoffset: -18; } }

.pc-node circle { fill: rgba(8,13,32,0.85); stroke: rgba(20,184,166,0.7); stroke-width: 1.6; }
.pc-node path { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* play badge for projects that have a walkthrough video */
.pc-play {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad2);
  box-shadow: 0 8px 20px rgba(20,184,166,0.4);
}

.pc-play svg { width: 15px; height: 15px; fill: #04121B; }

/* ---- thumb labels ---- */
.port-card-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(6,9,26,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.port-card-open {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.port-card:hover .port-card-open,
.port-card:focus-visible .port-card-open {
  opacity: 1;
  transform: translateX(0);
}

.port-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .pc-wire { animation: none; }
  .pc-mock, .port-card-open { transition: none; }
}

.port-card-body {
  padding: 20px 24px 24px;
}

.port-card-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.port-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.port-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.port-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ PORTFOLIO DETAIL ============ */
#portfolio-detail {
  display: none;
}

#portfolio-detail.visible {
  display: block;
}

.port-detail-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.port-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 40px;
  transition: color 0.2s;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.port-detail-back:hover { color: var(--teal); }

.port-detail-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.port-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.port-detail-content {
  padding: 0 0 100px;
}

.port-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.port-detail-video {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 40px;
  background: var(--bg2);
}

.port-detail-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.port-detail-visual {
  border-radius: 16px;
  aspect-ratio: 16/9;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.port-detail-desc h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.port-detail-desc p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.port-detail-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 100px;
}

.port-info-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.port-info-row:last-child { border-bottom: none; }

.port-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.port-info-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* ============ CONTACT PAGE ============ */
.contact-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 100px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(20,184,166,0.5);
  background: rgba(20,184,166,0.04);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted);
}

.form-select option {
  background: var(--bg2);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-info {
  padding-top: 8px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-item-icon svg { width: 20px; height: 20px; }

.contact-item-text h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0;
}

.contact-item-text a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-text a:hover {
  color: var(--green);
}

.contact-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-separator::before, .contact-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.calendly-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.calendly-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.calendly-wrap p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.founders-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.founder-contact-card {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.founder-contact-card:hover {
  border-color: var(--border-glow);
}

.founder-contact-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(34,197,94,0.15));
  border: 1px solid rgba(20,184,166,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0 auto 10px;
}

.founder-contact-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-contact-role {
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 10px;
}

.founder-contact-card a {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s;
  display: block;
}

.founder-contact-card a:hover { color: var(--teal); }

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============ PAGE TRANSITIONS ============ */
/* Applied to <body>. A transform on <body> would become the containing block for
   every position:fixed child — which silently un-sticks the nav and drops the
   mobile menu overlay below the fold — so this animates opacity only. */
.page-enter {
  animation: pageIn 0.4s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }
}

/* ============ TYPEWRITER ============ */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--teal);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-team-pill { display: none; }
  .nav-links { gap: 22px; }
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid-home { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .about-founders-grid { grid-template-columns: 1fr; }
  .stack-categories { grid-template-columns: repeat(2, 1fr); }
  .service-item { grid-template-columns: 1fr; gap: 40px; }
  .service-item.reverse { direction: ltr; }
  .service-item.reverse .service-item-content,
  .service-item.reverse .service-visual { order: unset; }
  .port-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  #main-nav { padding: 14px 0; }
  #main-nav.scrolled { padding: 12px 0; }
  .nav-links { display: none; }
  .nav-right-actions { display: none; }
  .hamburger { display: flex; }

  .container,
  .container-sm { padding: 0 20px; }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 12px; }
  .section-sub { font-size: 15px; }

  .ticker-wrap { padding: 12px 0; }
  .ticker-item { padding: 0 24px; font-size: 11px; gap: 12px; }

  .intro-trust,
  .services-snap,
  .ai-advantage,
  .portfolio-teaser,
  .founders-preview,
  .about-founders,
  .process-section,
  .stack-section { padding: 64px 0; }

  .intro-trust-copy { margin-bottom: 40px; }
  .intro-trust-copy h2 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 16px; }
  .intro-trust-copy p { font-size: 14.5px; line-height: 1.78; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .service-card { padding: 22px 20px 20px; }
  .service-card p { -webkit-line-clamp: 3; line-clamp: 3; }

  .advantage-header { margin-bottom: 36px; }
  .advantage-points-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .advantage-point { padding: 20px 18px; gap: 14px; }
  .advantage-cta { margin-bottom: 40px; }
  .tools-strip { padding-top: 28px; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 64px; }
  .portfolio-grid-home { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .port-card-home { --pch-visual-h: 150px; }

  .founders-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .process-steps::before { display: none; }
  .stack-categories { grid-template-columns: 1fr 1fr; gap: 16px; }

  .about-hero,
  .services-hero,
  .portfolio-hero,
  .contact-hero { padding: 120px 0 48px; }
  .about-content h1 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 16px; }
  .about-content p { font-size: 15.5px; line-height: 1.7; }

  .service-item { padding: 44px 0; gap: 28px; }
  .service-visual { aspect-ratio: 16 / 10; padding: 24px; max-height: 260px; }

  .contact-grid { gap: 40px; padding-bottom: 64px; }
  .contact-form-wrap { padding: 28px 22px; }
  .calendly-wrap { padding: 24px 20px; }

  .footer-cta { padding: 56px 0; }
  .footer-cta-box { padding: 40px 24px; border-radius: 20px; }
  .footer-cta-box h2 { font-size: clamp(22px, 6vw, 30px); margin-bottom: 12px; }
  .footer-cta-box p { font-size: 15px; margin-bottom: 24px; }

  .site-footer { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { gap: 10px 20px; margin-bottom: 22px; }
  .footer-nav-local { gap: 8px 16px; margin-bottom: 22px; padding-top: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container,
  .container-sm { padding: 0 16px; }

  .nav-logo { gap: 8px; }
  .nav-logo-icon { width: 30px; height: 30px; }
  .nav-logo-text { font-size: 16px; }
  .nav-region { font-size: 10px; padding: 2px 7px; margin-left: 4px; }

  .intro-trust,
  .services-snap,
  .ai-advantage,
  .portfolio-teaser,
  .founders-preview,
  .about-founders,
  .process-section,
  .stack-section { padding: 52px 0; }

  .section-header { margin-bottom: 32px; }
  .stack-categories { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 34px; }

  .advantage-cta .btn { width: 100%; justify-content: center; }

  .contact-form-wrap { padding: 22px 16px; border-radius: 16px; }
  .calendly-wrap { padding: 20px 16px; }

  .footer-cta { padding: 44px 0; }
  .footer-cta-box { padding: 32px 18px; border-radius: 16px; }
  .footer-cta-actions { flex-direction: column; gap: 12px; }
  .footer-cta-actions .btn { width: 100%; justify-content: center; }
}

/* Mobile Nav */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,9,26,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(16px);
  opacity: 0;
  transition: color 0.2s, transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav a.mobile-nav-cta {
  margin-top: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--grad);
  color: #040816 !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.mobile-nav.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.open a:nth-child(2) { transition-delay: 0.04s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.08s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.12s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.16s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.20s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.24s; }
.mobile-nav.open a:nth-child(8) { transition-delay: 0.28s; }
.mobile-nav.open a:nth-child(9) { transition-delay: 0.32s; }

.mobile-nav a:hover { color: var(--teal); }

/* The hamburger sits above this overlay and animates into an X in the same
   corner, so this second ✕ only ever rendered as a doubled-up glyph. */
.mobile-nav-close { display: none; }

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BLOG (listing + article)
   ============================================================ */
.blog-hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
}

.blog-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.blog-hero p { color: var(--muted); font-size: 17px; max-width: 620px; }

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 32px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

.blog-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

.blog-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.blog-search input::placeholder { color: var(--muted); }
.blog-search .btn { padding: 10px 20px; font-size: 14px; }

.blog-body { padding-bottom: 100px; }

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.blog-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
}

.blog-filter span { opacity: 0.55; font-size: 12px; }
.blog-filter:hover { color: var(--text); border-color: var(--border-glow); }
.blog-filter.active {
  color: var(--text);
  border-color: rgba(20,184,166,0.45);
  background: rgba(20,184,166,0.10);
}

.blog-result-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* --- featured post --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-featured:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 28px 70px rgba(20,184,166,0.12);
}

.blog-featured-media { position: relative; min-height: 320px; overflow: hidden; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-featured-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.blog-featured-body h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; }
.blog-featured-body p { color: var(--muted); font-size: 15px; }

.blog-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- grid + cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 60px rgba(20,184,166,0.12);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg2);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.05); }

.blog-card-cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(6,9,26,0.68);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.blog-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120px 120px at 30% 20%, rgba(34,197,94,0.28), transparent 70%),
    linear-gradient(135deg, #101B36, #0B1024);
}

.blog-thumb-fallback span {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-body h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.blog-card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.blog-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.blog-read {
  margin-left: auto;
  font-weight: 700;
  background: var(--grad2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
}

.blog-empty h3 { font-size: 22px; margin-bottom: 10px; }
.blog-empty p { color: var(--muted); margin-bottom: 24px; }

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.blog-pagination a {
  min-width: 40px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.blog-pagination a:hover { color: var(--text); border-color: var(--border-glow); }
.blog-pagination a.active {
  color: var(--text);
  border-color: rgba(20,184,166,0.45);
  background: rgba(20,184,166,0.10);
}

/* ============ SINGLE POST ============ */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(251,191,36,0.14);
  border-bottom: 1px solid rgba(251,191,36,0.3);
  color: #FCD34D;
  font-size: 13px;
  font-weight: 600;
}

.post-hero { position: relative; padding: 150px 0 40px; overflow: hidden; }

.post-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--teal); }

.post-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 24px;
}

.post-meta { display: flex; align-items: center; gap: 12px; }

.post-author {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad2);
  color: #04121B;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
}

.post-meta strong { display: block; font-size: 14px; font-weight: 600; }
.post-meta span { font-size: 13px; color: var(--muted); }

.post-cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 12px 0 36px;
}

.post-cover img { width: 100%; display: block; }

/* --- article body --- */
.blog-content { font-size: 16.5px; line-height: 1.85; color: #C9D6EE; }

.blog-content > * + * { margin-top: 22px; }

.blog-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-top: 44px;
  scroll-margin-top: 100px;
}

.blog-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 34px;
  scroll-margin-top: 100px;
}

.blog-content h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 28px; }

.blog-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--cyan); }

.blog-content strong { color: var(--text); font-weight: 700; }

.blog-content ul, .blog-content ol { padding-left: 24px; }
.blog-content li + li { margin-top: 8px; }
.blog-content li::marker { color: var(--teal); }

.blog-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 20px;
  color: var(--text);
  font-size: 18px;
  font-style: italic;
}

.blog-content img { border-radius: 14px; border: 1px solid var(--border); display: block; }

.blog-content figure figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

.blog-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.blog-content code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: #A7F3D0;
}

.blog-content pre code { background: none; padding: 0; color: #C9D6EE; }

.blog-content hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.blog-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.blog-content th { background: rgba(255,255,255,0.04); color: var(--text); font-weight: 700; }
.blog-content th.ta-center, .blog-content td.ta-center { text-align: center; }
.blog-content th.ta-right,  .blog-content td.ta-right  { text-align: right; }

.blog-content iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 14px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; }

.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.post-share a, .post-copy {
  color: var(--text);
  font-weight: 600;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.post-share a:hover, .post-copy:hover { color: var(--teal); }

.post-related { padding: 90px 0 20px; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 240px; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 130px 0 40px; }
  .post-hero { padding: 120px 0 30px; }
  .blog-search { flex-wrap: wrap; border-radius: 18px; padding: 12px; }
  .blog-search input { width: 100%; }
  .blog-search .btn { width: 100%; justify-content: center; }
  .blog-featured-body { padding: 24px; }
  .blog-content { font-size: 16px; }
}

/* --- live search affordances --- */
.search-spinner {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--teal);
  animation: searchSpin 0.7s linear infinite;
}

@keyframes searchSpin { to { transform: rotate(360deg); } }

.search-clear {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.search-clear:hover { background: rgba(255,255,255,0.14); color: var(--text); }

.blog-grid.is-searching { opacity: 0.55; transition: opacity 0.15s ease; }

@media (prefers-reduced-motion: reduce) {
  .search-spinner { animation-duration: 2s; }
}

/* The hidden attribute must win over display:flex/grid on these blocks. */
[hidden] { display: none !important; }

/* ============================================================
   CHAT WIDGET (replaces Tawk.to)
   ============================================================ */
.tcc-root {
  position: fixed;
  /* Offsets leave room for the "We are here!" ring, which extends ~28px
     past the launcher on every side — tighter and the text gets clipped. */
  right: 34px;
  bottom: 30px;
  z-index: 1200;
  font-family: var(--font-body);
}

/* --- launcher --- */
.tcc-launcher {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad2);
  color: #04121B;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(20,184,166,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tcc-launcher:hover { transform: translateY(-3px) scale(1.04); }
.tcc-launcher:focus-visible { outline: 3px solid rgba(20,184,166,0.5); outline-offset: 3px; }

.tcc-launcher svg { width: 26px; height: 26px; transition: opacity 0.2s ease, transform 0.25s ease; }
.tcc-icon-close { position: absolute; opacity: 0; transform: rotate(-45deg); }
.tcc-root.tcc-open .tcc-icon-chat { opacity: 0; transform: rotate(45deg); }
.tcc-root.tcc-open .tcc-icon-close { opacity: 1; transform: rotate(0); }

.tcc-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
}

/* --- panel --- */
.tcc-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.tcc-root.tcc-open .tcc-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tcc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(20,184,166,0.16), rgba(34,197,94,0.10));
  border-bottom: 1px solid var(--border);
  flex: none;
}

.tcc-avatar {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(6,9,26,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  flex: none;
}
.tcc-avatar img { width: 24px; height: 24px; display: block; }

.tcc-head-text { flex: 1; min-width: 0; }
.tcc-head-text strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--text); }
.tcc-head-text span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

.tcc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(34,197,94,0.8);
  animation: tccPulse 2.4s ease-in-out infinite;
}

@keyframes tccPulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

.tcc-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  line-height: 0;
}
.tcc-close svg { width: 18px; height: 18px; }
.tcc-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* --- messages --- */
.tcc-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.tcc-list::-webkit-scrollbar { width: 5px; }
.tcc-list::-webkit-scrollbar-thumb { background: rgba(20,184,166,0.35); border-radius: 3px; }

.tcc-msg { display: flex; }
.tcc-msg-user { justify-content: flex-end; }

.tcc-bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  animation: tccIn 0.25s ease;
}

@keyframes tccIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

.tcc-msg-bot .tcc-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  color: #C9D6EE;
}

.tcc-msg-user .tcc-bubble {
  background: var(--grad2);
  border-bottom-right-radius: 5px;
  color: #04121B;
  font-weight: 500;
}

.tcc-bubble p { margin: 0 0 8px; }
.tcc-bubble p:last-child { margin-bottom: 0; }
.tcc-bubble strong { color: var(--text); font-weight: 700; }
.tcc-msg-user .tcc-bubble strong { color: #04121B; }
.tcc-bubble ul { margin: 6px 0 8px; padding-left: 18px; }
.tcc-bubble li { margin-bottom: 4px; }
.tcc-bubble li::marker { color: var(--teal); }
.tcc-bubble a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.tcc-msg-user .tcc-bubble a { color: #04121B; }
.tcc-bubble code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- typing --- */
.tcc-typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.tcc-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  animation: tccBounce 1.3s infinite ease-in-out;
}
.tcc-typing span:nth-child(2) { animation-delay: 0.16s; }
.tcc-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes tccBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45 }
  40% { transform: translateY(-5px); opacity: 1 }
}

.tcc-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; padding-left: 4px; }

/* --- suggestion chips --- */
.tcc-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }

.tcc-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20,184,166,0.30);
  background: rgba(20,184,166,0.08);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tcc-chip:hover { background: rgba(20,184,166,0.18); transform: translateY(-1px); }

/* --- composer --- */
.tcc-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(6,9,26,0.45);
  flex: none;
}

.tcc-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tcc-input::placeholder { color: var(--muted); }
.tcc-input:focus { border-color: rgba(20,184,166,0.5); box-shadow: 0 0 0 3px rgba(20,184,166,0.12); }

.tcc-send {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad2);
  color: #04121B;
  display: grid;
  place-items: center;
  transition: filter 0.2s, opacity 0.2s;
}
.tcc-send svg { width: 17px; height: 17px; }
.tcc-send:hover { filter: brightness(1.1); }
.tcc-send:disabled { opacity: 0.45; cursor: not-allowed; }

.tcc-foot {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: rgba(6,9,26,0.45);
  flex: none;
}
.tcc-foot a { color: var(--teal); }

/* --- mobile: full screen sheet --- */
@media (max-width: 560px) {
  .tcc-root { right: 28px; bottom: 24px; }
  .tcc-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    transform: translateY(100%);
  }
  .tcc-root.tcc-open .tcc-panel { transform: translateY(0); }
  .tcc-launcher { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .tcc-panel, .tcc-launcher, .tcc-bubble, .tcc-chip { transition: none; animation: none; }
  .tcc-typing span, .tcc-dot { animation: none; }
}

/* --- "We are here!" ring around the chat launcher --- */
.tcc-launcher-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
}

.tcc-ring {
  position: absolute;
  width: 116px;
  height: 116px;
  left: 50%;
  top: 50%;
  margin: -58px 0 0 -58px;
  pointer-events: none;
  overflow: visible;
  animation: tccSpin 24s linear infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tcc-ring-text {
  font-family: var(--font-head), sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--teal);
  text-transform: uppercase;
}

@keyframes tccSpin { to { transform: rotate(360deg); } }

/* The waving hand sits still while the text orbits. */
.tcc-wave {
  position: absolute;
  left: -18px;
  bottom: -6px;
  font-size: 19px;
  pointer-events: none;
  transform-origin: 70% 80%;
  animation: tccWave 3.2s ease-in-out infinite;
}

@keyframes tccWave {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(16deg); }
  80% { transform: rotate(-10deg); }
  90% { transform: rotate(12deg); }
}

/* Both get out of the way once the chat is open. */
.tcc-root.tcc-open .tcc-ring,
.tcc-root.tcc-open .tcc-wave {
  opacity: 0;
  transform: scale(0.85);
  animation-play-state: paused;
}

@media (max-width: 560px) {
  .tcc-launcher-wrap { width: 54px; height: 54px; }
  .tcc-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .tcc-ring-text { font-size: 11.5px; letter-spacing: 0.16em; }
  .tcc-wave { font-size: 17px; left: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tcc-ring, .tcc-wave { animation: none; }
}

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.cs-hero {
  position: relative;
  padding: 150px 0 60px;
  overflow: hidden;
}

.cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cs-bg, transparent);
  opacity: 0.30;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
}

.cs-hero > .container { position: relative; z-index: 1; }

.cs-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cs-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
}

.cs-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.cs-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-bottom: 90px;
}

.cs-video,
.cs-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
}

.cs-video { aspect-ratio: 16/9; background: var(--bg2); }
.cs-video iframe { width: 100%; height: 100%; border: none; display: block; }

.cs-visual {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  position: relative;
}

.cs-visual .pc-mock { width: 46%; }

.cs-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* --- sidebar facts --- */
.cs-side { position: sticky; top: 100px; }

.cs-facts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.cs-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cs-fact:last-of-type { border-bottom: none; margin-bottom: 8px; }

.cs-fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-fact-value { font-size: 14.5px; color: var(--text); font-weight: 600; }

.cs-fact-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.cs-side-cta { width: 100%; justify-content: center; }

.cs-related { padding: 20px 0 80px; }

@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-side { position: static; }
}

@media (max-width: 768px) {
  .cs-hero { padding: 120px 0 40px; }
  .cs-visual .pc-mock { width: 62%; }
}

/* Portfolio cards became links (crawlable); keep the block layout intact. */
.port-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.port-card-thumb { display: flex; }
.port-card-body { display: flex; flex-direction: column; }
.port-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.port-card[hidden] { display: none !important; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.tc-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1300;
  width: min(460px, calc(100vw - 40px));
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(11,16,36,0.97);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.14));
  box-shadow: 0 26px 70px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: var(--font-body);
}

.tc-consent.is-open { opacity: 1; transform: translateY(0); }

.tc-consent-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.tc-consent-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.tc-consent-text a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.tc-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.tc-consent-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s, border-color 0.2s;
}

/* Reject must be as easy to use as accept. */
.tc-consent-reject {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.16));
  color: var(--text);
}

.tc-consent-reject:hover { background: rgba(255,255,255,0.10); }

/* The gradient is the background-IMAGE, with a solid teal underneath it. The
   text is near-black, so anything that drops background images (forced-colors,
   a content blocker, an aggressive dark-mode extension) would otherwise leave
   an invisible button sitting in a visible gap. */
.tc-consent-accept {
  background-color: var(--teal);
  background-image: var(--grad2);
  border: 1px solid var(--teal);
  color: #04121B;
}

.tc-consent-accept:hover { filter: brightness(1.08); }

.tc-consent-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Sit above the chat launcher on small screens rather than covering it. */
@media (max-width: 640px) {
  .tc-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-consent { transition: none; }
}

/* ---- uploaded screenshot in place of the generated mock ---- */
.pc-shot {
  position: absolute;
  inset: 0;
  /* Below the thumb's bottom gradient (so the hover label stays readable)
     but under the badges, which sit at z-index 2. */
  z-index: 0;
  display: block;
}

.pc-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.port-card:hover .pc-shot img { transform: scale(1.07); }

/* The play badge is positioned against the mock; centre it over a photo. */
.pc-shot .pc-play {
  right: auto;
  bottom: auto;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
}
.pc-shot .pc-play svg { width: 20px; height: 20px; }

/* ============================================================
   NEWS — aggregated tech headlines
   ============================================================ */

/* ---- hero status line ---- */
.news-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.news-live { display: inline-flex; align-items: center; gap: 8px; }

.news-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: news-pulse 2.4s ease-out infinite;
}

@keyframes news-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.news-status-sep { opacity: 0.4; }

/* ---- source chips ---- */
.news-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 30px;
}

.news-sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.news-source-chip {
  --src: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-source-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--src);
  flex: none;
}

.news-source-chip span {
  font-size: 11px;
  opacity: 0.6;
}

.news-source-chip:hover { color: var(--text); border-color: var(--border-glow); }

.news-source-chip.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--src) 55%, transparent);
  background: color-mix(in srgb, var(--src) 12%, transparent);
}

/* ---- grid ---- */
.news-lead { margin-bottom: 24px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 22px 55px rgba(6,182,212,0.12);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

/* ---- card media ---- */
.news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1730, #101f3a);
  flex: none;
}

.news-shot { position: absolute; inset: 0; display: block; z-index: 1; background: inherit; }

.news-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .news-shot img { transform: scale(1.05); }

/* No image in the feed — draw the publisher's initials instead. */
.news-mark {
  --src: var(--teal);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--src) 70%, transparent);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--src) 16%, transparent), transparent 68%),
    linear-gradient(135deg, #0d1730, #101d38);
}

.news-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%);
}

/* ---- card body ---- */
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}

.news-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.news-source {
  --src: var(--teal);
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--src);
  background: color-mix(in srgb, var(--src) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--src) 30%, transparent);
}

.news-topic {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-card-body h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  transition: color 0.25s ease;
}

.news-card:hover .news-card-body h3 { color: var(--cyan); }

.news-card-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.news-card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.news-card-foot > span:nth-child(2) { opacity: 0.35; }

.news-score {
  margin-left: auto;
  color: var(--green);
  font-weight: 600;
}

.news-discuss {
  padding: 0 20px 16px;
  font-size: 12px;
  color: var(--muted);
}

.news-discuss:hover { color: var(--teal); }

/* ---- lead story ---- */
.news-card-wide .news-card-link { flex-direction: row; }

.news-card-wide .news-card-media {
  width: 42%;
  aspect-ratio: auto;
  min-height: 260px;
}

.news-card-wide .news-card-body { padding: 30px 34px; gap: 14px; justify-content: center; }
.news-card-wide .news-card-body h3 { font-size: 26px; line-height: 1.25; }
.news-card-wide .news-card-body p { font-size: 15px; }
.news-card-wide .news-mark { font-size: clamp(34px, 5vw, 52px); }

/* ---- attribution ---- */
.news-credit {
  margin: 34px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
}

@media (max-width: 1000px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card-wide .news-card-link { flex-direction: column; }
  .news-card-wide .news-card-media { width: 100%; min-height: 0; aspect-ratio: 16 / 8; }
  .news-card-wide .news-card-body { padding: 20px; }
  .news-card-wide .news-card-body h3 { font-size: 21px; }
  .news-sources { margin-top: 0; }
  .news-sources-label { width: 100%; }
}

/* The news hero is centred — a left-aligned headline with a centred status
   line and search bar underneath read as a mistake. Scoped to news.php so the
   blog hero keeps its left-aligned layout. */
.news-hero .about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.news-hero .about-content p {
  margin-left: auto;
  margin-right: auto;
}

.news-hero .blog-search {
  margin-left: auto;
  margin-right: auto;
}

/* The topic row belongs with the centred hero above it. The source chips stay
   left-aligned — they read as a labelled list, not a heading. */
.news-topics { justify-content: center; }
