:root {
  --bg: #eef1ec;
  --bg-soft: #e2e8e1;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(248, 251, 248, 0.96);
  --line: rgba(24, 49, 67, 0.11);
  --text: #112537;
  --muted: #617282;
  --navy: #10355c;
  --green: #00d26a;
  --green-soft: rgba(0, 210, 106, 0.09);
  --shadow: 0 24px 60px rgba(20, 42, 58, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(0, 210, 106, 0.1), transparent 22%),
    radial-gradient(circle at left top, rgba(16, 53, 92, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f8f5 0%, #eef1ec 48%, #e6ebe5 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 53, 92, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 53, 92, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(16, 53, 92, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand div {
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid rgba(16, 53, 92, 0.08);
}

.brand span,
.eyebrow,
.service-card span,
.timeline span,
.trust-band span {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 52px;
  padding: 72px 0 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.74rem;
  color: var(--navy);
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.75rem);
  max-width: 10ch;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.service-card p,
.feature-panel p,
.stack-showcase p,
.industry-note p,
.timeline p,
.cta-card p,
.trust-band p,
.hero-points li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #021108;
  background: linear-gradient(135deg, var(--green), #5dffa8);
  box-shadow: 0 18px 40px rgba(0, 210, 106, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  max-width: 52ch;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 210, 106, 0.12);
}

.hero-panel {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -30px auto auto -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 53, 92, 0.08), transparent 72%);
  z-index: -1;
}

.hero-card,
.service-card,
.feature-panel,
.industries-card,
.timeline article,
.cta-card,
.trust-band,
.stack-showcase article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 246, 0.98));
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-card::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 106, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-card p {
  margin: 0;
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 14px 0 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.hero-card-divider {
  width: 72px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(0, 210, 106, 0.7), rgba(0, 210, 106, 0));
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.metric-grid article {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 53, 92, 0.03);
  border: 1px solid rgba(16, 53, 92, 0.06);
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 10px;
}

.metric-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.signal-grid {
  position: absolute;
  inset: 9% 2% 2% 14%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 78%;
  height: 78%;
  opacity: 0.65;
}

.signal-grid span {
  border-radius: 22px;
  border: 1px solid rgba(0, 210, 106, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 210, 106, 0.08), transparent),
    rgba(16, 53, 92, 0.02);
}

.pulse {
  animation: pulseCard 5.2s ease-in-out infinite;
}

@keyframes pulseCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.trust-band span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.72rem;
}

.trust-band p {
  margin: 0;
}

.section {
  padding: 104px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  margin-top: 10px;
}

.section-heading p {
  margin-top: 18px;
  font-size: 1.02rem;
}

.narrow {
  max-width: 720px;
}

.service-grid,
.stack-showcase,
.timeline {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

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

.service-card {
  padding: 26px;
  border-radius: var(--radius-md);
}

.service-card span {
  color: var(--green);
  font-size: 0.72rem;
}

.service-card h3,
.feature-panel h3,
.stack-showcase h3,
.timeline h3,
.industry-note strong {
  margin: 16px 0 0;
  font-size: 1.25rem;
}

.service-card p,
.feature-panel p,
.industry-note p,
.timeline p {
  margin: 14px 0 0;
}

.service-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-card li {
  color: var(--text);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.capability-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.feature-panel,
.stack-showcase article,
.timeline article,
.industries-card,
.cta-card {
  border-radius: var(--radius-lg);
}

.feature-panel {
  padding: 28px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip-wrap span,
.industry-list span {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 106, 0.18);
  background: var(--green-soft);
  color: var(--navy);
  font-size: 0.92rem;
}

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

.stack-showcase article {
  padding: 24px;
}

.stack-showcase p {
  margin-top: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.split-copy {
  padding-right: 18px;
}

.industries-card {
  padding: 28px;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-note {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.timeline article {
  padding: 24px;
}

.timeline span {
  font-size: 0.72rem;
  color: var(--green);
}

.cta-section {
  padding-bottom: 28px;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 32px;
  overflow: hidden;
}

.footer {
  display: grid;
  gap: 26px;
  margin-top: 36px;
  padding: 34px 32px 28px;
  border: 1px solid rgba(16, 53, 92, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(0, 210, 106, 0.08), transparent 24%),
    linear-gradient(180deg, #0c1d2d 0%, #10263b 100%);
  box-shadow: 0 22px 48px rgba(16, 53, 92, 0.14);
  color: #c7d4de;
}

.footer-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #9fb2c2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-label {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-grid p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #dbe5ec;
}

.footer-grid a {
  color: #ffffff;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fa3b4;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--green-soft);
  border-color: rgba(0, 210, 106, 0.4);
  color: var(--green);
  transform: translateY(-2px);
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.service-card,
.feature-panel,
.stack-showcase article,
.timeline article {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.feature-panel:hover,
.stack-showcase article:hover,
.timeline article:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 106, 0.24);
  box-shadow: 0 28px 52px rgba(16, 53, 92, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar {
    gap: 14px;
    padding: 10px 14px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.86rem;
  }

  .hero,
  .split-section,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding: 56px 0 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-text,
  .hero-points {
    max-width: 100%;
  }

  .service-grid,
  .timeline,
  .trust-band,
  .capability-layout,
  .stack-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    min-height: 380px;
  }

  .split-copy {
    padding-right: 0;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    padding-right: 60px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand div {
    min-width: 0;
    overflow: hidden;
  }

  .brand span,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand span {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .nav-toggle {
    flex: none;
  }

  .nav.is-open {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 8vw, 4.15rem);
    max-width: 12ch;
  }

  .metric-grid article {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shared sub-page hero + breadcrumb (Portfolio / Blog) ---------- */

.page-hero {
  padding: 56px 0 8px;
}

.page-hero h1 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  max-width: 18ch;
}

.page-hero p {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

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

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--navy);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(24, 49, 67, 0.28);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Portfolio ---------- */

.project-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.project-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 246, 0.98));
  box-shadow: var(--shadow);
  padding: 32px;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-header h2 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.project-tagline {
  margin: 10px 0 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 106, 0.18);
  background: var(--green-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-facts {
  display: grid;
  gap: 6px;
  text-align: right;
}

.project-facts span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-facts strong {
  color: var(--text);
  font-size: 0.94rem;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.project-showcase a {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(16, 53, 92, 0.03);
}

.project-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  aspect-ratio: 4 / 3;
  transition: transform 320ms ease;
}

.project-showcase a:hover img,
.project-showcase a:focus-visible img {
  transform: scale(1.04);
}

.project-showcase .shot-primary {
  grid-column: span 2;
  grid-row: span 2;
}

.shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 27, 0.86) 65%);
  color: #f2f6f4;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
}

.shot-primary .shot-caption {
  font-size: 0.86rem;
  padding: 30px 14px 12px;
}

/* ---------- Mobile screens sub-gallery ---------- */

.mobile-showcase-wrap {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.mobile-showcase-wrap h3 {
  margin: 0;
  font-size: 1.02rem;
}

.mobile-showcase-wrap > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

.mobile-showcase {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.mobile-showcase a {
  position: relative;
  flex: none;
  width: 156px;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(16, 53, 92, 0.03);
  scroll-snap-align: start;
}

.mobile-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 9 / 19.5;
  transition: transform 320ms ease;
}

.mobile-showcase a:hover img,
.mobile-showcase a:focus-visible img {
  transform: scale(1.04);
}

.mobile-showcase .shot-caption {
  font-size: 0.68rem;
  padding: 22px 9px 8px;
}

.project-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-top: 30px;
}

.project-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

.project-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.project-feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.94rem;
}

.project-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.project-feature-list strong {
  color: var(--navy);
}

.project-aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.project-aside h3 {
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.project-stack {
  margin-top: 24px;
}

.project-links {
  margin-top: 24px;
}

.project-links .button {
  width: 100%;
}

.project-stack h3 {
  margin: 0 0 14px;
}

/* ---------- Blog listing ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 246, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 106, 0.24);
  box-shadow: 0 28px 52px rgba(16, 53, 92, 0.12);
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(16, 53, 92, 0.08), rgba(0, 210, 106, 0.12));
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.blog-card-meta span:not(:first-child) {
  color: var(--muted);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.28;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.blog-card-cta {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.blog-card-soon {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Article page ---------- */

.article-header {
  padding: 40px 0 0;
  max-width: 780px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 14px;
  border-radius: 50%;
  background: rgba(24, 49, 67, 0.24);
}

.article-hero-figure {
  margin: 34px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 8px;
}

.article-body h2 {
  margin: 46px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.28;
}

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

.article-body p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-body p strong {
  color: var(--navy);
}

.article-body ul {
  margin: 18px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.7;
}

.article-lede {
  font-size: 1.14rem !important;
  color: var(--muted) !important;
}

.faq-section {
  margin-top: 46px;
  padding-top: 8px;
}

.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: rgba(16, 53, 92, 0.02);
}

.faq-item h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.article-cta {
  margin: 48px auto 0;
  max-width: 720px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.article-share {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-share a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Lightbox (portfolio galleries) ---------- */

.project-showcase a {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(9, 19, 28, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  width: min(100%, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #0c1d2d;
  object-fit: contain;
}

.lightbox-caption {
  color: #dbe5ec;
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-counter {
  color: #8fa3b4;
  font-size: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(17, 37, 55, 0.12);
  background: #f4f7f5;
  color: #0e1b26;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff;
}

.lightbox-close {
  top: -4px;
  right: -4px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: -8px;
}

.lightbox-next {
  right: -8px;
}

@media (max-width: 760px) {
  .lightbox {
    padding: 18px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-close {
    top: -46px;
    right: 0;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

/* ---------- Floating demo request trigger + popup modal ---------- */

.popup-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px 15px 18px;
  border-radius: 999px;
  border: none;
  color: #021108;
  background: linear-gradient(135deg, var(--green), #5dffa8);
  box-shadow: 0 18px 40px rgba(0, 210, 106, 0.32);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 180ms ease;
}

.popup-trigger:hover,
.popup-trigger:focus-visible {
  transform: translateY(-2px);
}

.popup-trigger svg {
  flex: none;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 19, 28, 0.72);
  backdrop-filter: blur(4px);
}

.popup-overlay.is-open {
  display: flex;
}

.popup-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 246, 1));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.popup-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 53, 92, 0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.popup-panel h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.popup-panel > p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Forms ---------- */

.dr-form {
  display: grid;
  gap: 14px;
}

.dr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dr-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.dr-form input,
.dr-form select,
.dr-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  color: var(--text);
}

.dr-form input:focus,
.dr-form select:focus,
.dr-form textarea:focus {
  outline: 2px solid rgba(0, 210, 106, 0.5);
  outline-offset: 1px;
}

.dr-form textarea {
  resize: vertical;
  min-height: 90px;
}

.dr-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dr-form-submit {
  margin-top: 4px;
  border: none;
  cursor: pointer;
}

.dr-form-status {
  min-height: 20px;
  font-size: 0.88rem;
}

.dr-form-status[data-state="success"] {
  color: #0a8a4a;
}

.dr-form-status[data-state="error"] {
  color: #c23b3b;
}

.dr-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 246, 0.98));
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.contact-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.demo-panel {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.demo-panel h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.demo-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .dr-form-row {
    grid-template-columns: 1fr;
  }

  .popup-trigger span {
    display: none;
  }

  .popup-trigger {
    padding: 15px;
  }
}

@media (max-width: 1080px) {
  .project-body {
    grid-template-columns: 1fr;
  }

  .project-aside {
    border-left: none;
    padding-left: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .project-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .project-block {
    padding: 22px;
  }

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

  .project-showcase .shot-primary {
    grid-column: span 2;
    grid-row: span 1;
  }

  .project-header {
    flex-direction: column;
  }

  .project-facts {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 12px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .hero {
    gap: 28px;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .service-grid,
  .timeline,
  .trust-band,
  .capability-layout,
  .stack-showcase {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 84px;
  }

  .hero-panel {
    min-height: 300px;
  }

  .footer {
    padding: 22px 18px;
  }

  .footer-top,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
