:root {
  --bg: #070b14;
  --panel: #0f172a;
  --panel-soft: #111c33;
  --text: #f8fafc;
  --muted: #a9b4c7;
  --line: rgba(148, 163, 184, 0.25);
  --blue: #38bdf8;
  --blue-dark: #0284c7;
  --green: #22c55e;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.45);
  --radius: 22px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 35%),
              linear-gradient(180deg, #070b14 0%, #0b1120 55%, #070b14 100%);
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-links a {
  white-space: nowrap;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--blue);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.96) 0%, rgba(7, 11, 20, 0.88) 45%, rgba(7, 11, 20, 0.70) 100%),
    url("../img/hero-bg-workspace.jpg") center / cover;
  opacity: 0.95;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.24), transparent 30%),
              radial-gradient(circle at 38% 92%, rgba(34, 197, 94, 0.13), transparent 28%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding-block: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 720px;
  font-size: 1.14rem;
}

.hero-actions,
.hero-badges,
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #00111f;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--line);
  color: var(--text);
}

.hero-badges span,
.stack-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.schema-hero-card,
.app-hero-card,
.proof-image-card,
.workspace-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.schema-hero-card,
.app-hero-card {
  transform: rotate(0.8deg);
}

.app-hero-card {
  transform: rotate(-0.45deg);
}

.screenshot-wrap {
  position: relative;
  overflow: hidden;
  background: #07101f;
}

.app-hero-card .screenshot-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9.2;
  object-fit: cover;
  object-position: 50% 38%;
}

.screenshot-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.35);
}

.screenshot-note i {
  color: var(--blue);
}

.top-note {
  top: 14px;
  left: 14px;
}

.bottom-note {
  right: 14px;
  bottom: 14px;
}

.caption-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.caption-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.browser-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser-bar span:nth-child(1) { background: #fb7185; }
.browser-bar span:nth-child(2) { background: #facc15; }
.browser-bar span:nth-child(3) { background: #22c55e; }

.browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.schema-hero-card img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  object-position: center;
}

.schema-caption {
  padding: 20px;
}

.schema-caption h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.schema-caption p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.trust-strip {
  transform: translateY(-42px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--line);
}

.trust-strip div {
  padding: 28px;
  background: rgba(15, 23, 42, 0.94);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding-block: 76px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  gap: 18px;
}

.six-grid,
.fixes-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.case-card,
.fix-card,
.proof-notes article,
.contact-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 51, 0.74));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.22);
}

.card,
.fix-card,
.proof-notes article,
.case-card {
  padding: 26px;
}

.card .icon,
.fix-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
  font-size: 1.25rem;
}

.card p,
.fix-card p,
.case-card p,
.proof-notes p {
  margin-bottom: 0;
}

.case-study,
.fixes-section,
.workspace-section {
  background: rgba(2, 6, 23, 0.34);
  border-block: 1px solid var(--line);
}

.case-grid,
.workspace-grid,
.contact-grid,
.schema-proof-grid,
.cta-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list i,
.proof-notes i {
  color: var(--green);
}

.proof-image-card,
.workspace-card {
  margin: 0;
}

.proof-image-card img,
.workspace-card img {
  width: 100%;
  object-fit: cover;
}

.proof-image-card img {
  aspect-ratio: 1.22 / 1;
}

.workspace-card img {
  aspect-ratio: 16 / 10.5;
}

.proof-image-card figcaption,
.workspace-card figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
}

.proof-notes {
  display: grid;
  gap: 16px;
}

.proof-notes h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixes-grid {
  display: grid;
  gap: 18px;
}

.cta-section {
  padding-block: 72px;
}

.cta-card {
  padding: 36px;
}

.cta-card p {
  margin-bottom: 0;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.contact-card textarea {
  resize: vertical;
}

.contact-card button {
  width: fit-content;
}

@media (max-width: 920px) {
  .hero-grid,
  .case-grid,
  .workspace-grid,
  .contact-grid,
  .schema-proof-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .schema-hero-card,
  .app-hero-card {
    transform: none;
  }

  .six-grid,
  .fixes-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    transform: translateY(-28px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .hero-grid {
    padding-block: 58px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .section {
    padding-block: 56px;
  }

  .card,
  .fix-card,
  .case-card,
  .proof-notes article,
  .contact-card,
  .cta-card {
    overflow-wrap: anywhere;
    padding: 22px;
  }
}

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


/* v5 additions: legacy bridge and richer case study */
.legacy-section {
  padding-top: 34px;
}

.bridge-grid,
.case-breakdown {
  display: grid;
  gap: 18px;
}

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

.bridge-card,
.case-breakdown article,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 51, 0.74));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.22);
}

.bridge-card,
.case-breakdown article {
  padding: 26px;
}

.bridge-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
  font-size: 1.25rem;
}

.bridge-card p,
.case-breakdown p {
  margin-bottom: 0;
}

.case-breakdown {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.case-breakdown h3 {
  color: var(--blue);
  margin-bottom: 8px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 34px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gallery-card.wide img {
  aspect-ratio: 16 / 9;
}

.gallery-card figcaption {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.gallery-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* Show full cart screenshot without cropping */
.project-gallery .gallery-card.contain-shot img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
}

.devtools-proof-card {
  margin: 28px 0;
}

.devtools-proof-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.mini-gallery-heading {
  max-width: var(--max-width);
  margin: 60px auto 28px;
  text-align: left;
}

.mini-gallery-heading h2,
.mini-gallery-heading p,
.mini-gallery-heading .eyebrow {
  max-width: 900px;
}

.cta-actions,
.hero-actions,
.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-actions a,
.hero-actions a,
.form-actions button,
.card-actions a,
.card-actions .demo-disabled {
  max-width: 100%;
}

@media (max-width: 920px) {
  .three-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .bridge-grid,
  .case-breakdown,
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* MOBILE OVERFLOW + FIXED NAV FINAL FIX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 72px;
}

.container,
.hero,
.hero-content,
.section,
.card,
.case-card,
.fix-card,
.cta-card,
.contact-card,
.bridge-card,
.gallery-card {
  max-width: 100%;
  min-width: 0;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.4rem, 13vw, 4.5rem);
  line-height: 0.95;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero p,
.lead,
.section p,
.card p,
.case-card p,
.fix-card p,
.bridge-card p,
.gallery-card figcaption {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.three-grid,
.bridge-grid,
.case-breakdown,
.project-gallery {
  grid-template-columns: 1fr !important;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 920px) {
  body {
    padding-top: 140px;
  }

  .nav {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding-block: 16px;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px 14px;
  }

  .nav-links a {
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 150px;
  }

  .nav-links a[href="#schema"],
  .nav-links a[href="#fixes"] {
    display: none;
  }

  .hero-grid {
    padding-block: 48px;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding-block: 44px;
  }

  .card,
  .fix-card,
  .case-card,
  .proof-notes article,
  .contact-card,
  .cta-card,
  .bridge-card,
  .case-breakdown article {
    padding: 18px;
  }
}

/* v6 additions: real-device mobile QA and DevTools proof */
.qa-section {
  background: rgba(2, 6, 23, 0.42);
  border-block: 1px solid var(--line);
}

.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.qa-card,
.qa-note-card,
.qa-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 51, 0.74));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.22);
}

.qa-card,
.qa-note-card {
  padding: 26px;
}

.qa-card h3,
.qa-note-card h3 {
  color: var(--text);
}

.qa-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.qa-steps code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--blue);
  font-size: 0.9em;
}

.qa-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.qa-metrics div {
  padding: 20px;
  background: rgba(15, 23, 42, 0.94);
}

.qa-metrics strong,
.qa-metrics span {
  display: block;
}

.qa-metrics strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.qa-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.qa-proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 34px;
}

.qa-shot {
  margin: 0;
  overflow: hidden;
}

.qa-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
}

.qa-shot figcaption {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.qa-shot strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.qa-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.qa-note-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qa-note-card i {
  color: var(--blue);
}

.qa-note-card p {
  margin-bottom: 0;
}

.technical-wins-list li {
  align-items: flex-start;
}

@media (max-width: 920px) {
  .qa-grid,
  .qa-proof-grid,
  .qa-notes-grid,
  .qa-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .qa-card,
  .qa-note-card {
    padding: 18px;
  }
}


/* v6 additions: QueuePoint case study preview */
.queuepoint-case-study {
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.08), transparent 32%),
    rgba(2, 6, 23, 0.34);
}

.queuepoint-case-study .case-breakdown h3,
.queuepoint-case-study .eyebrow {
  color: #facc15;
}

.queuepoint-case-study .btn.primary {
  background: linear-gradient(135deg, #facc15, #84cc16);
  color: #111703;
}

.queuepoint-case-study .case-card {
  border-color: rgba(250, 204, 21, 0.24);
}

.queuepoint-case-study .stack-list span {
  border-color: rgba(250, 204, 21, 0.26);
}


/* v6 priority fixes: outcomes, skills, proof cards, partner services, contact links */
.outcome-section {
  padding-top: 34px;
}

.skills-section {
  background: rgba(2, 6, 23, 0.26);
  border-block: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card,
.project-proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 51, 0.74));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.22);
}

.skill-card {
  padding: 26px;
}

.skill-card h3 {
  color: var(--blue);
}

.skill-card p {
  margin-bottom: 0;
}

.project-proof-card {
  margin-top: 18px;
  padding: 18px;
}

.project-proof-card h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.project-proof-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

#capabilities .section-heading .eyebrow {
  color: var(--green);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(15, 23, 42, 0.72);
}

.profile-links a:hover {
  color: var(--text);
}

.form-note {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-note a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 920px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* v6 desktop grid restore after earlier mobile overflow patch */
@media (min-width: 921px) {
  .three-grid,
  .bridge-grid,
  .qa-notes-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .case-breakdown {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .project-gallery,
  .qa-proof-grid {
    grid-template-columns: 1.2fr 0.8fr !important;
  }
}


/* Prototype credibility-pass additions: status badges, workflow proof, partner note */
.section-note {
  margin-top: -18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  color: var(--muted);
  font-size: 0.95rem;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.status-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #d9f99d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.workflow-proof {
  display: grid;
  gap: 6px;
  margin: 18px 0 8px;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.08);
}

.workflow-proof strong {
  color: var(--text);
  font-size: 0.92rem;
}

.workflow-proof span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}


/* consultant-positioning additions */
.demo-flow-card {
  margin: 16px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.08);
}

.demo-flow-card h4,
.project-proof-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.demo-flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

#fixes {
  background: rgba(2, 6, 23, 0.34);
  border-block: 1px solid var(--line);
}

#services .section-heading,
#offers .section-heading,
#fixes .section-heading {
  max-width: 850px;
}

.hero-copy .hero-actions .btn.primary {
  box-shadow: 0 16px 42px rgba(56, 189, 248, 0.18);
}

@media (max-width: 560px) {
  .demo-flow-card {
    padding: 14px;
  }
}


/* v7 final polish: consultant-first flow */
.flagship-breakdown strong,
.workflow-proof strong,
.demo-flow-card h4,
.project-proof-card h4 {
  letter-spacing: -0.01em;
}

.workflow-proof,
.demo-flow-card,
.project-proof-card,
.section-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
}

.workflow-proof,
.demo-flow-card,
.project-proof-card {
  margin-top: 18px;
  padding: 18px;
}

.workflow-proof strong,
.workflow-proof span {
  display: block;
}

.workflow-proof strong {
  color: var(--text);
  margin-bottom: 6px;
}

.workflow-proof span,
.demo-flow-card p,
.project-proof-card li,
.section-note {
  color: var(--muted);
  line-height: 1.65;
}

.demo-flow-card h4,
.project-proof-card h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.project-proof-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1rem;
}

.section-note {
  padding: 16px 18px;
  margin-top: 16px;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.status-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.10);
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
}

/* The workspace photo section was removed in v7 to keep the homepage focused on client problems and proof. */


/* v8 compact polish: reduce scroll without making the page feel cramped */
:root {
  --radius: 18px;
}

.nav {
  min-height: 64px;
}

.nav-links {
  gap: 14px;
}

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

.brand-logo {
  width: min(190px, 42vw) !important;
  padding: 6px 10px !important;
}

.hero {
  min-height: 660px;
}

.hero-grid {
  gap: 30px;
  padding-block: 58px;
}

.hero-brand-mark {
  width: min(430px, 100%) !important;
  margin-bottom: 0.95rem !important;
  padding: 11px 14px !important;
  border-radius: 18px !important;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.35rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.95rem);
}

h3 {
  margin-bottom: 8px;
}

p {
  line-height: 1.65;
}

.hero-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions,
.hero-badges,
.stack-list {
  gap: 10px;
  margin-top: 20px;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
}

.hero-badges span,
.stack-list span,
.caption-tags span,
.profile-links a {
  padding: 7px 10px;
  font-size: 0.8rem;
}

.app-hero-card .screenshot-wrap img {
  aspect-ratio: 16 / 8.6;
}

.schema-caption {
  padding: 16px;
}

.schema-caption h2 {
  font-size: 1.15rem;
}

.trust-strip {
  transform: translateY(-30px);
}

.trust-strip div {
  padding: 20px 22px;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.trust-strip span {
  line-height: 1.45;
}

.section {
  padding-block: 56px;
}

.outcome-section,
.legacy-section {
  padding-top: 20px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.cards,
.fixes-grid,
.bridge-grid,
.skills-grid,
.qa-notes-grid,
.qa-proof-grid,
.flagship-grid {
  gap: 14px;
}

.card,
.fix-card,
.bridge-card,
.skill-card,
.proof-notes article,
.contact-card,
.cta-card,
.case-card,
.qa-card,
.qa-note-card {
  padding: 20px;
}

.card .icon,
.fix-card .icon,
.bridge-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-size: 1.08rem;
}

.offer-list {
  gap: 6px;
  margin-top: 12px;
}

.freelance-fit-card {
  margin-top: 16px;
  padding: 20px;
}

.freelance-fit-grid {
  gap: 14px;
}

.flagship-card {
  gap: 0;
}

.flagship-content {
  padding: 24px !important;
}

.flagship-media img,
.queuepoint-media img {
  max-height: 360px;
  object-fit: cover;
}

.status-badges {
  gap: 6px;
  margin: 6px 0 12px;
}

.status-badges span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.flagship-breakdown {
  gap: 10px;
  margin: 16px 0;
}

.check-list {
  gap: 10px;
  margin: 18px 0;
}

.check-list li {
  line-height: 1.45;
}

.workflow-proof,
.demo-flow-card,
.project-proof-card,
.section-note {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
}

.project-proof-card ul {
  gap: 6px;
  line-height: 1.45;
}

.caption-tags {
  gap: 6px;
  margin-top: 10px;
}

.qa-grid {
  gap: 20px;
}

.qa-metrics {
  margin-top: 18px;
}

.qa-metrics div {
  padding: 16px;
}

.qa-proof-grid {
  margin-top: 22px;
}

.qa-shot figcaption,
.gallery-card figcaption,
.proof-image-card figcaption,
.workspace-card figcaption {
  padding: 14px 16px;
  line-height: 1.5;
}

.qa-notes-grid {
  margin-top: 14px;
}

.proof-image-card img {
  aspect-ratio: 16 / 9;
}

.proof-notes {
  gap: 12px;
}

.cta-section {
  padding-block: 48px;
}

.cta-card {
  gap: 22px;
}

.contact-section {
  padding-bottom: 68px;
}

.contact-card {
  gap: 12px;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  padding: 11px 12px;
  border-radius: 12px;
}

@media (min-width: 921px) {
  .six-grid,
  .fixes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flagship-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
    align-items: stretch;
  }

  .flagship-card:nth-child(even) .flagship-media {
    order: 2;
  }

  .flagship-card:nth-child(even) .flagship-content {
    order: 1;
  }
}

@media (max-width: 920px) {
  body {
    padding-top: 118px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 24px;
    padding-block: 42px;
  }

  .section {
    padding-block: 46px;
  }

  .trust-strip {
    transform: translateY(-22px);
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 128px;
  }

  .brand-logo {
    width: min(165px, 58vw) !important;
  }

  .hero-grid {
    padding-block: 34px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .section {
    padding-block: 38px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .card,
  .fix-card,
  .bridge-card,
  .skill-card,
  .proof-notes article,
  .contact-card,
  .cta-card,
  .case-card,
  .qa-card,
  .qa-note-card,
  .flagship-content {
    padding: 16px !important;
  }

  .hero-actions a,
  .card-actions a {
    width: auto;
  }
}

/* =========================================================
   Portfolio v2: normalized flagship projects and actions
   ========================================================= */

.flagship-grid {
  display: grid;
  gap: 22px;
}

.flagship-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.96),
    rgba(17, 28, 51, 0.82)
  );
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.28);
}

.flagship-media {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 18px;
  background: #07101f;
}

.flagship-media img,
.queuepoint-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  border-radius: 14px;
}

.flagship-content {
  min-width: 0;
  padding: 24px;
}

.flagship-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.flagship-breakdown > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.32);
}

.flagship-breakdown strong,
.flagship-breakdown span {
  display: block;
}

.flagship-breakdown strong {
  margin-bottom: 5px;
  color: var(--text);
}

.flagship-breakdown span {
  color: var(--muted);
  line-height: 1.55;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.card-actions .btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.demo-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.demo-disabled i {
  flex: 0 0 auto;
  font-size: 0.86rem;
}

.portfolio-summary-card {
  width: min(820px, 100%);
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-summary-card .eyebrow {
  margin: 0 0 10px;
}

.portfolio-summary-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.portfolio-summary-card p:last-child {
  max-width: 780px;
  margin: 0;
  line-height: 1.7;
}

.flagship-projects {
  padding-bottom: 38px;
}

.practical-systems-section {
  padding-top: 38px;
}

@media (min-width: 921px) {
  .flagship-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .flagship-card:nth-child(even) .flagship-media {
    order: 2;
  }

  .flagship-card:nth-child(even) .flagship-content {
    order: 1;
  }
}

@media (max-width: 920px) {
  .flagship-card {
    display: block;
  }

  .flagship-media img,
  .queuepoint-media img {
    max-height: 360px;
  }
}

@media (max-width: 620px) {
  .flagship-breakdown {
    grid-template-columns: 1fr;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-actions .btn,
  .demo-disabled {
    width: 100%;
    white-space: normal;
  }
}

