/* Site styles for PHP templates */

:root {
  --site-width: 80rem;
  --site-gutter: 20px;
  --site-gutter-mobile: 16px;
}

.svc-icon svg { width: 20px; height: 20px; }
.content { max-width: 80rem; margin: 0 auto; padding: 72px 20px; }
.content article { max-width: 860px; }
.content h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 850; color: #132f4f; line-height: 1.08; margin: 18px 0 18px; letter-spacing: -0.02em; }
.content .lead { font-size: 17px; color: #44698f; line-height: 1.75; margin-bottom: 28px; }
.content .prose { font-size: 16px; color: #3d5f86; line-height: 1.85; }
.content .prose h2 { font-size: 26px; color: #173357; margin: 34px 0 12px; }
.content .prose h3 { font-size: 20px; color: #25496f; margin: 28px 0 10px; }
.content .prose p, .content .prose ul, .content .prose ol { margin-bottom: 18px; }
.content .prose a { color: #0b6fa4; font-weight: 700; }
.form { display: grid; gap: 14px; max-width: 720px; }
.form input, .form textarea { width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid rgba(128, 165, 216, 0.58); background: rgba(255,255,255,.92); font: inherit; color: #13253f; }
.form textarea { min-height: 170px; }
.flash { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: rgba(52,211,153,.14); color: #17613a; border: 1px solid rgba(52,211,153,.38); }
.flash-success {
  animation: contactSuccessPop 0.7s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.flash-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.38);
  color: #991b1b;
}

.subpage-hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 72px 20px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 34px;
  align-items: end;
}
.subpage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.subpage-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #132f4f;
  margin: 0 0 20px;
}
.subpage-lead {
  max-width: 740px;
  font-size: 17px;
  color: #44698f;
  line-height: 1.75;
}
.subpage-panel {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(128, 165, 216, 0.55);
  box-shadow: 0 18px 40px rgba(36, 88, 163, 0.12);
}
.subpage-panel-title {
  font-size: 12px;
  color: #5b7ea8;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.subpage-panel-list {
  display: grid;
  gap: 10px;
}
.subpage-panel-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #35597f;
  font-size: 13px;
}
.subpage-panel-list span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56,189,248,.45);
}
.subpage-body {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 20px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.section-card {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(128, 165, 216, 0.52);
  box-shadow: 0 14px 30px rgba(36, 88, 163, 0.09);
}
.section-card + .section-card { margin-top: 16px; }
.section-card h2 {
  font-size: 24px;
  color: #17365b;
  margin: 0 0 12px;
}
.section-card h3 {
  font-size: 17px;
  color: #25496f;
  margin: 20px 0 8px;
}
.section-card p,
.section-card li {
  color: #3d5f86;
  line-height: 1.75;
  font-size: 15px;
}
.section-card p { margin: 0 0 14px; }
.section-card ul,
.section-card ol { padding-left: 20px; margin: 0 0 14px; }
.side-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 98px;
}
.mini-stat {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}
.mini-stat strong {
  font-size: 22px;
  color: #38bdf8;
}
.mini-stat span {
  color: #557ca5;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-cta {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 47, 79, 0.96), rgba(21, 65, 107, 0.94));
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #dcecff;
}
.page-cta h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
}
.page-cta p {
  color: #bfd0e8;
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 18px;
}
.posts-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 86px 20px 110px;
}
.posts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}
.posts-hero-panel {
  border: 1px solid rgba(128,165,216,.52);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 38px rgba(36,88,163,.1);
  padding: 20px;
}
.posts-hero-panel > span {
  display: block;
  color: #5b7ea8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.posts-hero-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.posts-hero-panel em {
  color: #35597f;
  font-style: normal;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(128,165,216,.48);
  border-radius: 999px;
  background: rgba(239,248,255,.88);
  padding: 8px 10px;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 18px;
  margin-bottom: 22px;
}
.news-featured-card,
.news-list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128,165,216,.52);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 38px rgba(36,88,163,.1);
}
.news-featured-card {
  min-height: 440px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background:
    radial-gradient(circle at 16% 18%, rgba(56,189,248,.18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(231,245,255,.88));
}
.news-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.news-visual {
  min-height: 100%;
  padding: 24px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(rgba(102,156,226,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,156,226,.11) 1px, transparent 1px);
  background-size: 22px 22px;
}
.news-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.news-visual span {
  width: fit-content;
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(56,189,248,.38);
  border-radius: 999px;
  background: rgba(239,248,255,.9);
  padding: 8px 11px;
}
.news-visual strong {
  color: rgba(19,47,79,.95);
  font-size: 118px;
  line-height: .82;
  letter-spacing: 0;
}
.news-featured-copy {
  position: relative;
  z-index: 3;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.news-meta,
.news-list-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #5b7ea8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.news-meta span,
.news-list-date span {
  color: #0b6fa4;
}
.news-featured-copy h2 {
  margin: 18px 0 14px;
  color: #132f4f;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}
.news-featured-copy h2 a,
.news-list-card h2 a {
  color: inherit;
  text-decoration: none;
}
.news-featured-copy p {
  color: #44698f;
  line-height: 1.72;
  font-size: 15px;
  margin-bottom: 22px;
}
.news-read {
  position: relative;
  z-index: 4;
  display: inline-flex;
  width: fit-content;
  color: #0b6fa4;
  font-weight: 900;
  text-decoration: none;
}
.news-read:hover {
  color: #38bdf8;
}
.news-list {
  display: grid;
  gap: 14px;
}
.news-list-card {
  min-height: 210px;
  padding: 22px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.news-list-thumb {
  grid-row: span 2;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(128,165,216,.42);
  background: #eef7ff;
}
.news-list-card h2 {
  color: #17365b;
  font-size: 21px;
  line-height: 1.28;
  margin: 0 0 10px;
}
.news-list-card p {
  color: #44698f;
  line-height: 1.65;
  font-size: 14px;
}
.news-featured-card:hover,
.news-list-card:hover {
  border-color: rgba(56,189,248,.62);
  box-shadow: 0 20px 48px rgba(36,88,163,.16);
}
.posts-grid-archive {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(128,165,216,.42);
}
.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}
.article-hero-image {
  margin: 30px 0 34px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(128, 165, 216, 0.48);
  background: #eef7ff;
  box-shadow: 0 18px 44px rgba(36, 88, 163, 0.13);
}
.article-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.article-card {
  padding: clamp(26px, 5vw, 52px);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(128,165,216,.52);
  box-shadow: 0 18px 44px rgba(36, 88, 163, 0.12);
}
.article-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #4b6f96;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 34px;
}
.article-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #557ca5;
  border: 1px solid rgba(128,165,216,.5);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(239, 248, 255, 0.86);
}
.article-seo-bridge {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background: rgba(246, 251, 255, 0.86);
}
.article-seo-bridge h2 {
  margin: 10px 0 12px;
  color: #17365b;
  font-size: 24px;
}
.article-seo-bridge p {
  color: #44698f;
  line-height: 1.72;
  font-size: 15px;
}
.article-bridge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.article-bridge-links a {
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #0b6fa4;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 8px 10px;
}
.article-conversion-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(128, 165, 216, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(52,211,153,.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,246,255,.9));
  box-shadow: 0 18px 44px rgba(36,88,163,.1);
}
.article-conversion-cta h2 {
  margin: 10px 0 10px;
  color: #17365b;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.article-conversion-cta p {
  max-width: 700px;
  color: #44698f;
  line-height: 1.7;
  font-size: 15px;
}
.contact-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}
.contact-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(128,165,216,.52);
  box-shadow: 0 18px 44px rgba(36, 88, 163, 0.12);
}
.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-lines a {
  color: #17365b;
  text-decoration: none;
  font-weight: 700;
}
.not-found-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 90px 20px 120px;
}
@media (max-width: 900px) {
  .subpage-hero,
  .subpage-body,
  .contact-grid,
  .posts-hero,
  .news-layout,
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .side-stack { position: static; }
  .posts-hero { display: block; }
}

.subpage-shell {
  position: relative;
  overflow: hidden;
}
.subpage-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 460px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(228, 241, 255, 0.92), rgba(244, 248, 255, 0)),
    repeating-linear-gradient(90deg, rgba(70, 112, 168, 0.08) 0 1px, transparent 1px 86px);
  z-index: -1;
}
.subpage-hero {
  padding-top: 86px;
  align-items: center;
}
.subpage-title {
  font-size: 70px;
  letter-spacing: 0;
}
.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.subpage-panel,
.section-card,
.page-cta,
.contact-card,
.article-card {
  border-radius: 8px;
}
.subpage-orbit {
  position: relative;
  isolation: isolate;
}
.subpage-orbit::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}
.subpage-highlights {
  max-width: 80rem;
  margin: 0 auto 28px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.subpage-highlight-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.82));
  box-shadow: 0 14px 34px rgba(36, 88, 163, 0.09);
}
.subpage-highlight-card strong,
.section-index {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.subpage-highlight-card h2 {
  color: #17365b;
  font-size: 24px;
  margin-bottom: 12px;
}
.subpage-highlight-card p {
  color: #44698f;
  line-height: 1.68;
  font-size: 14px;
}
.section-card {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 30px;
}
.section-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #34d399);
}
.section-card h2 {
  font-size: 28px;
}
.section-card li + li {
  margin-top: 7px;
}
.page-cta {
  background:
    linear-gradient(135deg, rgba(19, 47, 79, 0.98), rgba(13, 75, 112, 0.96));
}
.contact-grid {
  position: relative;
  padding-top: 86px;
}
.contact-intro {
  min-height: 560px;
}
.contact-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-lines a {
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 15px;
}
.contact-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.contact-topic-cloud span {
  border: 1px solid rgba(128, 165, 216, 0.52);
  background: rgba(239, 248, 255, 0.86);
  color: #557ca5;
  border-radius: 999px;
  padding: 8px 11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.contact-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.contact-focus-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(128, 165, 216, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 248, 255, 0.82));
  box-shadow: 0 12px 28px rgba(36, 88, 163, 0.08);
}
.contact-focus-card strong {
  display: block;
  color: #17365b;
  font-size: 14px;
  margin-bottom: 10px;
}
.contact-focus-card p {
  margin: 0;
  color: #557ca5;
  font-size: 13px;
  line-height: 1.6;
}
.contact-steps {
  margin-top: 26px;
}
.contact-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.9));
}
.contact-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.contact-card-head span {
  width: fit-content;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(52, 211, 153, 0.12);
  color: #17613a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}
.contact-card-head h2 {
  margin: 0;
  color: #17365b;
  font-size: 30px;
  line-height: 1.12;
}
.contact-form-lead {
  color: #557ca5;
  line-height: 1.65;
  margin: -2px 0 22px;
  font-size: 14px;
}
.contact-form {
  max-width: none;
}
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-form label {
  display: grid;
  gap: 7px;
}
.contact-form label span {
  color: #35597f;
  font-size: 12px;
  font-weight: 700;
}
.form input,
.form textarea,
.form select {
  border-radius: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  border-color: rgba(96, 140, 190, 0.62);
}
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(96, 140, 190, 0.62);
  background: rgba(255, 255, 255, 0.92);
  color: #17365b;
  padding: 0 13px;
  font: inherit;
}
.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}
.contact-submit {
  position: relative;
  overflow: hidden;
  width: fit-content;
  min-width: 172px;
}
.contact-submit[disabled] {
  cursor: progress;
}
.contact-submit-pulse {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  pointer-events: none;
}
.contact-submit.is-sending .contact-submit-pulse {
  opacity: 1;
  animation: contactButtonSend 1s ease-in-out infinite;
}
.contact-submit.is-sending {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 18px 38px rgba(37, 99, 235, 0.22);
}
.contact-submit.is-sent {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), 0 18px 38px rgba(22, 163, 74, 0.2);
  animation: contactSentGlow 1.2s ease both;
}
.contact-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(128, 165, 216, 0.5);
  background: rgba(255, 255, 255, 0.72);
}

@keyframes contactButtonSend {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

@keyframes contactSentGlow {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-1px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes contactSuccessPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-note strong {
  display: block;
  color: #17365b;
  font-size: 13px;
  margin-bottom: 6px;
}
.contact-note p {
  margin: 0;
  color: #557ca5;
  font-size: 13px;
  line-height: 1.55;
}
.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.contact-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: #0b6fa4;
  background: rgba(239, 248, 255, 0.88);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 980px) {
  .contact-focus-grid,
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-focus-card {
    min-height: 0;
  }
}
.posts-hero {
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(232,246,255,.82));
}
.posts-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
}
.posts-pagination-bottom {
  margin: 24px 0 0;
}
.posts-page-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}
.posts-page-link,
.posts-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background: rgba(239,248,255,.86);
  color: #25496f;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.posts-page-link {
  padding: 0 14px;
}
.posts-page-number {
  width: 38px;
  font-family: 'JetBrains Mono', monospace;
}
.posts-page-link:hover,
.posts-page-number:hover,
.posts-page-number.is-active {
  color: #fff;
  border-color: rgba(56,189,248,.45);
  background: linear-gradient(135deg, #45a7f5, #315eea);
  box-shadow: 0 10px 24px rgba(49,94,234,.18);
}
.posts-page-link.is-disabled {
  pointer-events: none;
  opacity: .46;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bc-card {
  border-radius: 8px;
}
@media (max-width: 980px) {
  .subpage-title { font-size: 56px; }
  .subpage-highlights,
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .subpage-title { font-size: 42px; }
  .contact-lines { grid-template-columns: 1fr; }
  .posts-hero { padding: 22px; }
  .posts-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .posts-page-numbers {
    justify-content: center;
  }
}

/* Base layout */
/* ────────────────────────────────────────────
       PALETA
       --bg:        #080b14   (tło strony)
       --surface:   #0f1829   (karta)
       --surface2:  #162038   (karta jasna / hover)
       --border:    #1e2d4a   (ramka)
       --border2:   #253550   (ramka hover)
       --text:      #e8f0fe   (tekst główny)
       --text2:     #a8b8d0   (tekst pomocniczy)
       --text3:     #6b7f99   (tekst muted)
       --accent:    #38bdf8   (niebieski)
       --accent2:   #a78bfa   (fiolet)
    ──────────────────────────────────────────── */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      -webkit-font-smoothing: antialiased;
      background: #f4f8ff;
      color: #13253f;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── Background ─────────────────────────── */
    .bg-root {
      position: fixed; inset: 0; z-index: -1;
      background:
        radial-gradient(1200px 560px at 20% -10%, rgba(56,189,248,0.2), transparent 62%),
        radial-gradient(1000px 520px at 100% -10%, rgba(37,99,235,0.12), transparent 64%),
        #f4f8ff;
    }
    .bg-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(56,189,248,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.14) 1px, transparent 1px);
      background-size: 48px 48px;
      opacity: 0.22;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.18) 70%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.18) 70%, transparent 100%);
    }

    /* ── Karty – SOLIDNE tła ────────────────── */
    .card {
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(146, 178, 221, 0.55);
      border-radius: 16px;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    }
    .card:hover {
      background: rgba(255, 255, 255, 0.96);
      border-color: rgba(84, 141, 226, 0.55);
      box-shadow: 0 14px 32px rgba(34, 84, 157, 0.15);
      transform: translateY(-2px);
    }
    .card-lg {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(146, 178, 221, 0.55);
      border-radius: 24px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    .card-accent {
      border-color: rgba(56,189,248,0.30) !important;
      box-shadow: 0 0 0 1px rgba(56,189,248,0.08);
    }
    .card-accent:hover {
      border-color: rgba(56,189,248,0.50) !important;
      box-shadow: 0 0 24px rgba(56,189,248,0.12);
    }

    /* ── Neon border ────────────────────────── */
    .neon-border {
      border: 1px solid rgba(56,189,248,0.45);
      box-shadow: 0 0 0 1px rgba(56,189,248,0.12), 0 10px 26px rgba(34, 84, 157, 0.14);
    }

    /* ── Buttons ────────────────────────────── */
    .btn-primary {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
      color: #fff; font-weight: 700; font-size: 14px;
      padding: 12px 26px; border-radius: 100px;
      border: 1px solid rgba(255,255,255,0.26);
      box-shadow: 0 10px 26px rgba(7, 44, 118, 0.35);
      transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
      text-decoration: none;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(7, 44, 118, 0.45);
      filter: brightness(1.05);
    }
    .btn-secondary {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255, 255, 255, 0.9);
      color: #1d3b61; font-weight: 600; font-size: 14px;
      padding: 12px 26px; border-radius: 100px;
      border: 1px solid rgba(128, 165, 216, 0.7);
      transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
      text-decoration: none;
    }
    .btn-secondary:hover {
      background: rgba(243, 250, 255, 0.98);
      border-color: rgba(89, 146, 230, 0.8);
      color: #143356;
      transform: translateY(-1px);
    }

    /* ── Badge ──────────────────────────────── */
    .badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(56,189,248,0.14);
      border: 1px solid rgba(56,189,248,0.38);
      color: #0b6fa4; font-size: 11px; font-weight: 700;
      letter-spacing: 0.09em; text-transform: uppercase;
      padding: 5px 14px; border-radius: 100px;
      font-family: 'JetBrains Mono', monospace;
    }
    .badge-violet {
      background: rgba(167,139,250,0.12);
      border-color: rgba(167,139,250,0.30);
      color: #c4b5fd;
    }

    /* ── Gradient text ──────────────────────── */
    .text-gradient {
      background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 45%, #60a5fa 100%);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* ── Section headings ───────────────────── */
    .section-title {
      font-size: clamp(28px, 5vw, 42px);
      font-weight: 800; color: #142f4f;
      letter-spacing: -0.025em; line-height: 1.12;
    }
    .section-sub {
      font-size: 16px; color: #3d5f86; line-height: 1.75; margin-top: 14px;
    }

    /* ── Mono ───────────────────────────────── */
    .mono { font-family: 'JetBrains Mono', monospace; }

    /* ── Divider ────────────────────────────── */
    .divider {
      height: 1px; border: none;
      background: linear-gradient(90deg, transparent, rgba(120, 160, 214, 0.55), transparent);
    }

    /* ── Fade-up ────────────────────────────── */
    .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .fade-up.in { opacity: 1; transform: translateY(0); }

    /* ── Blog prose ─────────────────────────── */
    .prose-js h2 { font-size: 22px; font-weight: 700; color: #173357; margin: 2.5rem 0 0.75rem; }
    .prose-js h3 { font-size: 18px; font-weight: 600; color: #25496f; margin: 2rem 0 0.5rem; }
    .prose-js p  { font-size: 15px; color: #3d5f86; line-height: 1.85; margin-bottom: 1.25rem; }
    .prose-js ul, .prose-js ol { font-size: 15px; color: #3d5f86; padding-left: 1.25rem; margin-bottom: 1.25rem; }
    .prose-js li { margin-bottom: 0.5rem; }
    .prose-js a  { color: #38bdf8; text-decoration: underline; text-underline-offset: 3px; }
    .prose-js a:hover { color: #7dd3fc; }
    .prose-js strong { color: #173357; font-weight: 600; }
    .prose-js blockquote {
      border-left: 2px solid rgba(56,189,248,0.5);
      background: rgba(56,189,248,0.08); border-radius: 0 8px 8px 0;
      padding: 1rem 1.25rem; color: #3d5f86; font-style: italic; margin: 1.5rem 0;
    }
    .prose-js code {
      background: rgba(226, 240, 255, 0.78); border: 1px solid rgba(128, 165, 216, 0.4);
      color: #7dd3fc; font-size: 13px; padding: 2px 7px; border-radius: 6px;
      font-family: 'JetBrains Mono', monospace;
    }
    .prose-js pre  {
      background: rgba(236, 245, 255, 0.92); border: 1px solid rgba(128, 165, 216, 0.38);
      border-radius: 12px; padding: 1.25rem; overflow-x: auto; margin-bottom: 1.25rem;
    }
    .prose-js pre code { background: none; border: none; padding: 0; }
    .prose-js hr { border: none; height: 1px; background: rgba(120, 160, 214, 0.55); margin: 2.5rem 0; }

    /* ── Tailwind slate overrides (jaśniejszy styl globalny) ── */
    .text-slate-100 { color: #163354 !important; }
    .text-slate-200 { color: #274b72 !important; }
    .text-slate-300 { color: #35597f !important; }
    .text-slate-400 { color: #466a93 !important; }
    .text-slate-500 { color: #587ca6 !important; }
    .text-slate-600 { color: #6c91ba !important; }
    .text-slate-700 { color: #7ca4cb !important; }

    .border-slate-700 { border-color: rgba(128, 165, 216, 0.55) !important; }
    .border-slate-800 { border-color: rgba(128, 165, 216, 0.5) !important; }
    .border-slate-700\/60 { border-color: rgba(128, 165, 216, 0.46) !important; }

    .bg-slate-800 { background-color: rgba(232, 242, 255, 0.94) !important; }
    .bg-slate-800\/30 { background-color: rgba(232, 242, 255, 0.56) !important; }
    .bg-slate-800\/40 { background-color: rgba(232, 242, 255, 0.66) !important; }
    .bg-slate-900\/50 { background-color: rgba(226, 240, 255, 0.84) !important; }
    .bg-slate-900\/60 { background-color: rgba(226, 240, 255, 0.9) !important; }
    .bg-slate-900\/70 { background-color: rgba(226, 240, 255, 0.94) !important; }
    .bg-slate-950\/80 { background-color: rgba(236, 245, 255, 0.95) !important; }

    /* ── Scrollbar ──────────────────────────── */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: #eef5ff; }
    ::-webkit-scrollbar-thumb { background: #92b4db; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #6f99ca; }

/* Header */
.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(14, 27, 45, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 149, 203, 0.35);
    box-shadow: 0 10px 26px rgba(7, 16, 31, 0.35);
  }
  .hdr-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 26px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  @media (max-width: 767px) {
    .hdr-inner { min-height: 64px; padding: 0 16px; }
  }
  .hdr-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    transition: opacity 0.2s ease;
  }
  .hdr-logo img {
    height: 27px;
    width: auto;
    display: block;
    opacity: 0.98;
    filter: brightness(1.14) saturate(1.1) contrast(1.06);
  }
  .hdr-logo:hover {
    opacity: 1;
  }
  @media (max-width: 767px) {
    .hdr-logo img { height: 23px; }
  }

  .hdr-nav { display: none; align-items: center; gap: 2px; }
  @media (min-width: 1024px) { .hdr-nav { display: flex; } }

  .hdr-link {
    position: relative;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #d8e9ff;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .hdr-link:hover {
    color: #ffffff;
    background: rgba(75, 135, 216, 0.18);
    border-color: rgba(123, 183, 255, 0.38);
  }
  .hdr-link-active {
    color: #7ff2d3;
    background: rgba(39, 201, 160, 0.16);
    border-color: rgba(90, 229, 186, 0.44);
  }
  .hdr-link-active:hover { background: rgba(39, 201, 160, 0.24); }
  .hdr-dot {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: #7ff2d3; box-shadow: 0 0 8px #7ff2d3;
  }

.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-lang {
  height: 36px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(123, 183, 255, 0.38);
  color: #d8e9ff;
  text-decoration: none;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hdr-lang:hover {
  background: rgba(75, 135, 216, 0.18);
  color: #fff;
}
  .hdr-cta {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hdr-burger {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
    background: rgba(40, 66, 100, 0.48);
    border: 1px solid rgba(124, 167, 226, 0.48);
    color: #d5e8ff; transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .hdr-burger:hover {
    background: rgba(63, 101, 151, 0.56);
    border-color: rgba(137, 190, 255, 0.62);
    color: #ffffff;
  }
  @media (min-width: 1024px) { .hdr-burger { display: none; } }

  .mob-menu { background: rgba(14, 27, 45, 0.97); border-bottom: 1px solid rgba(112, 149, 203, 0.35); }
  .mob-nav { max-width: 80rem; margin: 0 auto; padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
  .mob-link {
    padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
    color: #d8e9ff; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid transparent;
  }
  .mob-link:hover { background: rgba(75, 135, 216, 0.18); color: #fff; border-color: rgba(123, 183, 255, 0.38); }
  .mob-link-active { background: rgba(39, 201, 160, 0.16); color: #7ff2d3; border: 1px solid rgba(90, 229, 186, 0.44); }

/* Footer */
.ftr {
    margin-top: 0;
    border-top: 1px solid rgba(128, 165, 216, 0.55);
    background:
      linear-gradient(180deg, rgba(239, 247, 255, 0.92), rgba(222, 237, 253, 0.88));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .ftr-inner { max-width: 80rem; margin: 0 auto; padding: 42px 20px 26px; }
  .ftr-system {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
    padding: 20px;
    border: 1px solid rgba(128, 165, 216, 0.55);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.86), rgba(232,245,255,0.78));
    color: #fff;
    box-shadow: 0 16px 38px rgba(36, 88, 163, 0.1);
  }
  .ftr-system h2 {
    max-width: 560px;
    margin: 9px 0 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.14;
    color: #17365b;
  }
  .ftr-system-copy {
    min-width: 260px;
  }
  .ftr-pill {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(52, 211, 153, 0.38);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(52, 211, 153, 0.13);
    color: #17613a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
  }
  .ftr-system-flow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 260px;
  }
  .ftr-system-flow span {
    border: 1px solid rgba(128, 165, 216, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #35597f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 10px;
  }
  .ftr-system-flow i {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, rgba(56,189,248,0.25), rgba(52,211,153,0.9));
    animation: ftrFlow 2.8s ease-in-out infinite;
  }
  .ftr-system-cta {
    flex: 0 0 auto;
    border: 1px solid rgba(56,189,248,0.42);
    border-radius: 999px;
    background: #17365b;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    padding: 12px 16px;
  }
  .ftr-grid { display: grid; grid-template-columns: 1.45fr .9fr .9fr .9fr; gap: 34px; }
  @media (max-width: 960px) {
    .ftr-system { align-items: flex-start; flex-direction: column; }
    .ftr-system-flow { justify-content: flex-start; min-width: 0; flex-wrap: wrap; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) { .ftr-grid { grid-template-columns: 1fr; gap: 30px; } }

  .ftr-logo { display: inline-block; margin-bottom: 16px; text-decoration: none; }
  .ftr-logo img { height: 20px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
  .ftr-logo:hover img { opacity: 1; }
  .ftr-brand { max-width: 360px; }
  .ftr-tagline { font-size: 13px; color: #4b6f96; line-height: 1.7; margin-bottom: 18px; }
  .ftr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
  }
  .ftr-tags span {
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.68);
    color: #557ca5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
  }
  .ftr-contacts { display: flex; flex-direction: column; gap: 10px; }
  .ftr-contact {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #35597f; text-decoration: none; transition: color 0.2s;
  }
  .ftr-contact:hover { color: #0b6fa4; }
  .ftr-col-head {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.09em; color: #6d8db4;
    font-family: 'JetBrains Mono', monospace; margin-bottom: 16px;
  }
  .ftr-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .ftr-link { font-size: 13px; color: #4b6f96; text-decoration: none; transition: color 0.2s; }
  .ftr-link:hover { color: #163354; }

  @keyframes ftrFlow {
    0%, 100% { opacity: 0.42; transform: scaleX(0.65); }
    50% { opacity: 1; transform: scaleX(1); }
  }

  .ftr-bottom {
    margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(128, 165, 216, 0.48);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  }
  .ftr-copy { font-size: 11px; color: #5b7ea8; font-family: 'JetBrains Mono', monospace; }

/* Blog cards */
.bc-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
  }
  .bc-featured {
    border-color: rgba(56,189,248,0.35) !important;
    box-shadow: 0 0 24px rgba(56,189,248,0.08);
  }
  .bc-feat-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }

  .bc-image {
    width: calc(100% - 20px);
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    margin: 10px 10px 0;
    border-radius: 8px;
    border: 1px solid rgba(128, 165, 216, 0.42);
    background: #eef7ff;
  }

  .bc-inner { display: flex; flex-direction: column; flex: 1; padding: 20px; }
  .bc-compact { padding: 16px; }

  .bc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .bc-cat {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
    background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.36); color: #0b6fa4;
  }
  .bc-date { font-size: 11px; color: #5b7ea8; font-family: 'JetBrains Mono', monospace; }

  .bc-title { font-size: 15px; font-weight: 700; color: #17365b; line-height: 1.4; margin-bottom: 10px; }
  .bc-title-sm { font-size: 13px; }
  .bc-link {
    text-decoration: none; color: inherit; transition: color 0.2s;
  }
  .bc-link::before { content: ''; position: absolute; inset: 0; }
  .bc-card:hover .bc-link { color: #7dd3fc; }

  .bc-desc {
    font-size: 13px; color: #44698f; line-height: 1.7; flex: 1; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  .bc-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(128, 165, 216, 0.5);
  }
  .bc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
  .bc-tag {
    font-size: 10px; padding: 2px 8px; border-radius: 6px;
    background: rgba(238, 246, 255, 0.95);
    border: 1px solid rgba(128, 165, 216, 0.52);
    color: #5b7ea8;
    font-family: 'JetBrains Mono', monospace;
  }
  .bc-read {
    position: relative;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; color: #5b7ea8; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace; transition: color 0.2s;
    text-decoration: none;
  }
  .bc-card:hover .bc-read { color: #38bdf8; }
  .bc-arr { transition: transform 0.2s; }
  .bc-card:hover .bc-arr { transform: translateX(3px); }

/* Home page */
@keyframes pulse-live {
    0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
  }

  /* Hero */
  .hero-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 92px 0 116px;
  }

  .hero-wireframe {
    position: absolute;
    inset: 0 0 36px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(243, 250, 255, 0.92), rgba(230, 242, 255, 0.62));
  }
  .wf-svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .wf-line {
    fill: none;
    stroke: rgba(118, 143, 186, 0.72);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
  }
  .wf-soft {
    stroke: rgba(118, 143, 186, 0.42);
    stroke-width: 1;
  }
  .wf-strong {
    stroke: rgba(84, 128, 196, 0.9);
    stroke-width: 1.4;
  }
  .wf-codebits {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .wf-codebits span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(47, 123, 184, 0.58);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.98);
    transition:
      opacity 420ms ease,
      transform 980ms cubic-bezier(0.2, 0.65, 0.2, 1);
    user-select: none;
    will-change: transform, opacity, left, top;
  }
  .wf-codebits span.is-on {
    opacity: 0.88;
    color: rgba(37, 112, 177, 0.82);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.34);
  }
  .wf-codebits span:nth-child(1) { left: 10%; top: 12%; }
  .wf-codebits span:nth-child(2) { left: 18%; top: 62%; }
  .wf-codebits span:nth-child(3) { left: 36%; top: 28%; }
  .wf-codebits span:nth-child(4) { left: 46%; top: 72%; }
  .wf-codebits span:nth-child(5) { left: 58%; top: 16%; }
  .wf-codebits span:nth-child(6) { left: 68%; top: 54%; }
  .wf-codebits span:nth-child(7) { left: 77%; top: 31%; }
  .wf-codebits span:nth-child(8) { left: 84%; top: 67%; }
  .wf-codebits span:nth-child(9) { left: 26%; top: 45%; }
  .wf-codebits span:nth-child(10) { left: 54%; top: 41%; }
  .wf-codebits span:nth-child(11) { left: 72%; top: 79%; }
  .wf-codebits span:nth-child(12) { left: 8%; top: 79%; }
  .wf-glow {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 50% 44%, rgba(56, 189, 248, 0.15), transparent 40%),
      radial-gradient(circle at 50% 75%, rgba(37, 99, 235, 0.07), transparent 56%);
    animation: wfPulse 7.2s ease-in-out infinite;
  }
  .wf-glow::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.75), transparent);
    animation: wfScan 6.8s linear infinite;
    opacity: 0.55;
  }
  @media (max-width: 900px) {
    .hero-wireframe { inset: 0 0 20px; }
    .wf-line { stroke-width: 1; }
    .wf-strong { stroke-width: 1.2; }
    .wf-codebits span { font-size: 9px; }
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid; gap: 64px; align-items: center;
  }
  @media (min-width: 1024px) { .hero-inner { grid-template-columns: minmax(560px, 1fr) 460px; } }
  @media (max-width: 767px) { .hero-inner { padding: 0 18px; } }

  .hero-h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900; letter-spacing: -0.03em; line-height: 1.06;
    color: #132f4f; margin: 20px 0 22px;
    display: grid;
    gap: 6px;
  }
  .hero-line { display: block; }
  .hero-rotator {
    position: relative;
    display: inline-block;
    min-height: 1.12em;
    min-width: min(14ch, 78vw);
    color: #274b72;
  }
  .hero-rotator::after {
    content: '';
    position: absolute;
    right: -0.08em;
    top: 0.08em;
    width: 0.06em;
    height: 0.86em;
    background: #2f7bb8;
    animation: caretBlink 0.95s steps(1, end) infinite;
  }
  .hero-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(14px);
    animation: heroWordCycle 12s infinite, heroWordMorph 1.6s ease-in-out infinite;
    white-space: nowrap;
  }

.proof-strip {
  max-width: 86rem;
  margin: -66px auto 110px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.proof-box {
  border: 1px solid rgba(128,165,216,.52);
  background: rgba(255,255,255,.88);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  box-shadow: 0 22px 48px rgba(36,88,163,.12);
}
.proof-label {
  font-family: 'JetBrains Mono', monospace;
  color: #5b7ea8;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.proof-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proof-items span {
  border: 1px solid rgba(128,165,216,.42);
  border-radius: 14px;
  background: rgba(239,248,255,.82);
  min-height: 74px;
  padding: 18px 16px;
  color: #2d527a;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-campaign-section {
  max-width: var(--site-width);
  margin: -54px auto 110px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.lead-campaign-copy,
.lead-campaign-board {
  border: 1px solid rgba(128, 165, 216, 0.52);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(36, 88, 163, 0.1);
}

.lead-campaign-copy {
  border-radius: 8px;
  padding: clamp(24px, 3.4vw, 38px);
}

.lead-campaign-copy .section-title {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.6vw, 46px);
}

.lead-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.lead-campaign-board {
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background:
    linear-gradient(rgba(102,156,226,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,156,226,.08) 1px, transparent 1px),
    rgba(248,252,255,.94);
  background-size: 22px 22px;
}

.lead-campaign-board article {
  min-height: 188px;
  border: 1px solid rgba(128, 165, 216, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.lead-campaign-board span {
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-campaign-board strong {
  color: rgba(19, 47, 79, 0.14);
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
}

.lead-campaign-board p {
  color: #3d5f86;
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.lead-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: stretch;
  gap: 8px;
  filter: drop-shadow(0 14px 24px rgba(20, 64, 105, 0.22));
}

.lead-dock a {
  text-decoration: none;
}

.lead-dock-primary,
.lead-dock-phone {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: rgba(15, 47, 79, 0.96);
  color: #ffffff;
}

.lead-dock-primary {
  min-width: 178px;
  border-radius: 8px;
  padding: 10px 13px;
  display: grid;
  gap: 2px;
}

.lead-dock-primary span {
  display: none;
  color: #9fdcff;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-dock-primary strong {
  font-size: 13px;
}

.lead-dock-phone {
  display: none;
  border-radius: 8px;
  padding: 0 14px;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.business-fit-section {
  max-width: var(--site-width);
  margin: 0 auto 106px;
  padding: 0 24px;
}

.business-fit-copy {
  max-width: 800px;
  margin-bottom: 26px;
}

.business-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.business-fit-card {
  min-height: 245px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(237,248,255,0.86));
  box-shadow: 0 18px 44px rgba(36, 88, 163, 0.1);
  padding: clamp(22px, 2.5vw, 30px);
}

.business-fit-card span {
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 900;
}

.business-fit-card h3 {
  margin: 18px 0 10px;
  color: #17365b;
  font-size: 22px;
  line-height: 1.16;
}

.business-fit-card p {
  color: #557ca5;
  font-size: 14px;
  line-height: 1.66;
}
.growth-section,
.product-section,
.case-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 20px 110px;
}
.growth-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}
.growth-copy {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,47,79,.96), rgba(21,65,107,.94));
  color: #dcecff;
  border: 1px solid rgba(125,211,252,.28);
}
.growth-copy .section-title { color: #fff; }
.growth-copy .section-sub { color: #bfd0e8; }
.growth-list {
  display: grid;
  gap: 14px;
}
.growth-item,
.product-module,
.case-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(128,165,216,.52);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(36,88,163,.08);
}
.growth-item h3,
.product-module h3,
.case-card h3 {
  margin: 0 0 8px;
  color: #17365b;
  font-size: 18px;
}
.growth-item p,
.product-module p,
.case-card p {
  color: #44698f;
  line-height: 1.65;
  font-size: 14px;
}
.product-spotlight {
  border-radius: 30px;
  border: 1px solid rgba(125,211,252,.35);
  background:
    radial-gradient(circle at 80% 10%, rgba(56,189,248,.24), transparent 34%),
    linear-gradient(135deg, rgba(248,252,255,.95), rgba(226,240,255,.92));
  padding: clamp(26px, 5vw, 54px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(36,88,163,.14);
}
.product-screen {
  border: 1px solid rgba(128,165,216,.55);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  padding: 18px;
  min-height: 360px;
}
.passport-card {
  border-radius: 16px;
  border: 1px solid rgba(128,165,216,.48);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.passport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #35597f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(128,165,216,.28);
  padding-bottom: 12px;
}
.passport-status {
  color: #0f8a67;
  background: rgba(52,211,153,.14);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 999px;
  padding: 4px 8px;
}
.product-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.seo-faq {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 20px 110px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-item {
  border: 1px solid rgba(128,165,216,.52);
  background: rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 22px;
}
.faq-item h3 { color: #17365b; margin: 0 0 8px; font-size: 17px; }
.faq-item p { color: #44698f; line-height: 1.65; font-size: 14px; }
@media (max-width: 900px) {
  .proof-box,
  .lead-campaign-section,
  .growth-grid,
  .product-spotlight,
  .case-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .business-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-items,
  .lead-campaign-board,
  .product-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lead-campaign-section {
    margin: -70px auto 72px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .lead-campaign-board {
    grid-template-columns: 1fr;
  }
  .lead-campaign-board article {
    min-height: 0;
  }
  .lead-campaign-actions .btn-primary,
  .lead-campaign-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .business-fit-section {
    margin-bottom: 70px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .business-fit-grid {
    grid-template-columns: 1fr;
  }
  .business-fit-card {
    min-height: 0;
  }
  .proof-items,
  .product-modules { grid-template-columns: 1fr; }
}

.portfolio-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 64px 20px 104px;
}
.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.portfolio-title {
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: 0;
  color: #132f4f;
  font-weight: 900;
  margin: 16px 0;
  max-width: 800px;
}
.portfolio-lead {
  color: #44698f;
  line-height: 1.7;
  font-size: 16px;
  max-width: 720px;
}
.portfolio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.portfolio-console {
  border: 1px solid rgba(128,165,216,.56);
  background:
    radial-gradient(circle at 85% 10%, rgba(56,189,248,.18), transparent 36%),
    rgba(255,255,255,.86);
  border-radius: 8px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 20px 50px rgba(36,88,163,.12);
}
.portfolio-console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5b7ea8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.portfolio-console-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
}
.portfolio-console-top span:nth-child(1) { background: #fb7185; }
.portfolio-console-top span:nth-child(2) { background: #fbbf24; }
.portfolio-console-top span:nth-child(3) { background: #4ade80; margin-right: auto; }
.portfolio-signal {
  border: 1px solid rgba(128,165,216,.45);
  border-radius: 8px;
  background: rgba(239,248,255,.8);
  padding: 14px;
  display: grid;
  gap: 5px;
}
.portfolio-signal + .portfolio-signal { margin-top: 10px; }
.portfolio-signal b {
  color: #17365b;
  font-size: 18px;
}
.portfolio-signal em {
  color: #557ca5;
  font-style: normal;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 46px;
}
.portfolio-metrics div {
  border: 1px solid rgba(128,165,216,.5);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  padding: clamp(22px, 2.4vw, 30px);
  display: grid;
  gap: 6px;
}
.portfolio-metrics strong {
  color: #38bdf8;
  font-size: 30px;
}
.portfolio-metrics span {
  color: #557ca5;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
}
.portfolio-lab,
.portfolio-work,
.portfolio-competence,
.portfolio-case-studies,
.portfolio-dppc-focus {
  margin-bottom: 70px;
}
.portfolio-dppc-focus {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(128,165,216,.54);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(52,211,153,.2), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(230,247,255,.88));
  box-shadow: 0 18px 44px rgba(36,88,163,.1);
  padding: clamp(24px, 4vw, 38px);
}
.portfolio-dppc-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.portfolio-dppc-modules span {
  border: 1px solid rgba(128,165,216,.48);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #35597f;
  padding: clamp(18px, 2vw, 24px);
  font-weight: 760;
  font-size: 13px;
}
.portfolio-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(680px, 76%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  scrollbar-color: #7dd3fc rgba(128,165,216,.22);
}
.portfolio-carousel::-webkit-scrollbar { height: 10px; }
.portfolio-carousel::-webkit-scrollbar-track {
  background: rgba(128,165,216,.22);
  border-radius: 999px;
}
.portfolio-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #38bdf8, #34d399);
  border-radius: 999px;
}
.portfolio-slide {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128,165,216,.54);
  background:
    radial-gradient(circle at 78% 12%, rgba(52,211,153,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(229,246,255,.9));
  border-radius: 8px;
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: 0 20px 52px rgba(36,88,163,.12);
}
.portfolio-slide:nth-child(2) {
  background:
    radial-gradient(circle at 82% 12%, rgba(59,130,246,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(237,244,255,.9));
}
.portfolio-slide:nth-child(3) {
  background:
    radial-gradient(circle at 82% 12%, rgba(251,191,36,.2), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,250,232,.86));
}
.portfolio-slide-copy {
  display: flex;
  flex-direction: column;
}
.portfolio-slide h3 {
  color: #132f4f;
  font-size: 38px;
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: 0;
}
.portfolio-slide h4 {
  color: #25496f;
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 16px;
  max-width: 640px;
}
.portfolio-slide p {
  color: #44698f;
  line-height: 1.72;
  font-size: 14px;
  max-width: 680px;
}
.portfolio-slide-visual {
  align-self: stretch;
  border: 1px solid rgba(128,165,216,.5);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}
.portfolio-visual-top {
  display: flex;
  gap: 7px;
}
.portfolio-visual-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
}
.portfolio-visual-top span:nth-child(1) { background: #fb7185; }
.portfolio-visual-top span:nth-child(2) { background: #fbbf24; }
.portfolio-visual-top span:nth-child(3) { background: #4ade80; }
.portfolio-slide-visual strong {
  color: #17365b;
  font-size: 23px;
  line-height: 1.18;
}
.portfolio-visual-bars {
  display: grid;
  gap: 10px;
}
.portfolio-visual-bars i {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56,189,248,.75), rgba(52,211,153,.68));
}
.portfolio-visual-bars i:nth-child(2) { width: 78%; }
.portfolio-visual-bars i:nth-child(3) { width: 56%; }
.portfolio-visual-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.portfolio-visual-pipeline span {
  border: 1px solid rgba(128,165,216,.42);
  border-radius: 8px;
  background: rgba(239,248,255,.86);
  color: #557ca5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding: 9px 6px;
}
.portfolio-carousel-hint {
  color: #5b7ea8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 10px;
}
.portfolio-competence {
  border: 1px solid rgba(128,165,216,.54);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(232,246,255,.84));
  box-shadow: 0 18px 44px rgba(36,88,163,.1);
  padding: clamp(24px, 4vw, 38px);
}
.portfolio-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
}
.portfolio-capability-grid span,
.portfolio-tech-strip span {
  border: 1px solid rgba(128,165,216,.48);
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  color: #35597f;
  padding: 12px;
  font-size: 13px;
  line-height: 1.35;
}
.portfolio-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(128,165,216,.36);
}
.portfolio-tech-strip span {
  color: #557ca5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 8px 10px;
}
.portfolio-case-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128,165,216,.54);
  background: rgba(255,255,255,.9);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 38px rgba(36,88,163,.1);
}
.portfolio-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.portfolio-card-head span,
.portfolio-card-head strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.portfolio-card-head span { color: #5b7ea8; }
.portfolio-card-head strong {
  color: #0f8a67;
  border: 1px solid rgba(52,211,153,.32);
  background: rgba(52,211,153,.12);
  border-radius: 999px;
  padding: 5px 8px;
}
.portfolio-case-card h3 {
  color: #132f4f;
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.portfolio-case-card h3 { font-size: 24px; }
.portfolio-case-card h4 {
  color: #25496f;
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.portfolio-case-card p {
  color: #44698f;
  line-height: 1.68;
  font-size: 14px;
}
.portfolio-impact {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  color: #214a72;
  background: rgba(226,240,255,.72);
  border: 1px solid rgba(128,165,216,.4);
  font-size: 13px;
  line-height: 1.55;
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.portfolio-tags span {
  border: 1px solid rgba(128,165,216,.52);
  background: rgba(239,248,255,.9);
  color: #557ca5;
  border-radius: 999px;
  padding: 6px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.portfolio-link {
  display: inline-flex;
  margin-top: 20px;
  color: #0b6fa4;
  font-weight: 800;
  text-decoration: none;
}
.portfolio-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-study-card {
  border: 1px solid rgba(128,165,216,.54);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 38px rgba(36,88,163,.1);
  padding: clamp(22px, 2.5vw, 32px);
}

.portfolio-study-card h3 {
  margin: 0 0 20px;
  color: #132f4f;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
}

.portfolio-study-card div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(128,165,216,.34);
}

.portfolio-study-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-study-card p {
  color: #44698f;
  line-height: 1.66;
  font-size: 14px;
}
.portfolio-process {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  border-radius: 8px;
  border: 1px solid rgba(128,165,216,.55);
  background: rgba(255,255,255,.86);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 50px rgba(36,88,163,.12);
}
.portfolio-process > div:first-child {
  padding: clamp(28px, 3vw, 42px);
}
.portfolio-process-steps {
  display: grid;
  gap: 12px;
  padding: clamp(10px, 1.4vw, 18px);
}
.portfolio-process-steps div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(128,165,216,.42);
  border-radius: 8px;
  padding: 14px;
  background: rgba(239,248,255,.78);
}
.portfolio-process-steps strong {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}
.portfolio-process-steps span {
  color: #25496f;
  font-weight: 750;
}
@media (max-width: 980px) {
  .portfolio-title { font-size: 56px; }
  .portfolio-hero,
  .portfolio-dppc-focus,
  .portfolio-case-grid,
  .portfolio-study-grid,
  .portfolio-capability-grid,
  .portfolio-process {
    grid-template-columns: 1fr;
  }
  .portfolio-carousel {
    grid-auto-columns: 88%;
  }
  .portfolio-slide {
    grid-template-columns: 1fr;
  }
  .portfolio-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-title { font-size: 42px; }
  .portfolio-dppc-modules { grid-template-columns: 1fr; }
  .portfolio-carousel {
    grid-auto-columns: 94%;
  }
  .portfolio-slide {
    min-height: auto;
    padding: 22px;
  }
  .portfolio-slide h3 { font-size: 34px; }
  .portfolio-slide h4 { font-size: 18px; }
  .portfolio-visual-pipeline { grid-template-columns: 1fr; }
  .portfolio-metrics { grid-template-columns: 1fr; }
}
  .hw-1 {
    animation-delay: 0s, 0s;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
  }
  .hw-2 {
    animation-delay: 3s, 3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .hw-3 {
    animation-delay: 6s, 6s;
    font-style: italic;
    font-weight: 760;
  }
  .hw-4 {
    animation-delay: 9s, 9s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 700;
  }
  .hero-sub {
    font-size: 17px; color: #44698f; line-height: 1.75;
    max-width: 520px; margin-bottom: 32px;
  }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

  .hero-stats {
    display: flex; flex-wrap: wrap; align-items: center;
    padding-top: 28px; border-top: 1px solid rgba(128, 165, 216, 0.55);
    gap: 0;
  }
  .stat-block { display: flex; align-items: center; }
  .stat-sep { width: 1px; height: 32px; background: rgba(128, 165, 216, 0.55); margin: 0 24px; }
  .stat-val { font-size: 26px; font-weight: 800; color: #7dd3fc; line-height: 1; }
  .stat-lbl { font-size: 11px; color: #557ca5; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

  /* Hero preview */
  .hero-right { position: relative; }
  .hero-preview {
    padding: 20px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
  }
  .hero-preview-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #4f739a;
    margin-bottom: 10px;
  }
  .hero-live {
    flex: 1;
    border: 1px solid rgba(128, 165, 216, 0.52);
    background:
      linear-gradient(180deg, rgba(241, 249, 255, 0.94), rgba(227, 241, 255, 0.9)),
      radial-gradient(circle at 82% 10%, rgba(56, 189, 248, 0.2), transparent 42%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    padding: 12px;
  }
  .hero-live::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 70%,
      rgba(202, 227, 255, 0.28) 100%
    );
    pointer-events: none;
  }

  .live-terminal {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(121, 161, 217, 0.58);
    border-radius: 10px;
    background: rgba(248, 252, 255, 0.88);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  .live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(132, 170, 224, 0.4);
    background: rgba(231, 242, 255, 0.8);
  }
  .live-dots {
    display: flex;
    gap: 4px;
  }
  .live-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(76, 135, 206, 0.64);
  }
  .live-dots span:nth-child(1) { background: rgba(251, 113, 133, 0.8); }
  .live-dots span:nth-child(2) { background: rgba(251, 191, 36, 0.84); }
  .live-dots span:nth-child(3) { background: rgba(74, 222, 128, 0.84); }
  .live-env {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: #5479a1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .live-body {
    padding: 10px;
    min-height: 136px;
  }
  .live-line {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.36;
    color: #2f73b0;
    opacity: 0;
    transform: translateY(6px);
    animation: liveLine 8s ease-in-out infinite;
  }
  .ll-1 { animation-delay: 0s; color: #235d96; }
  .ll-2 { animation-delay: 0.35s; }
  .ll-3 { animation-delay: 0.7s; color: #1d7b60; }
  .ll-4 { animation-delay: 1.05s; }
  .ll-5 { animation-delay: 1.4s; }
  .ll-6 { animation-delay: 1.75s; color: #1e8f74; }

  .live-pipeline {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    height: 46px;
    border: 1px solid rgba(132, 170, 224, 0.42);
    border-radius: 10px;
    background: rgba(244, 250, 255, 0.82);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 0 12px;
  }
  .pipe-line {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(124, 167, 226, 0.2), rgba(124, 167, 226, 0.9), rgba(124, 167, 226, 0.2));
  }
  .pipe-node {
    justify-self: center;
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4e749e;
    background: rgba(239, 248, 255, 0.98);
    border: 1px solid rgba(124, 167, 226, 0.44);
    padding: 3px 6px;
    border-radius: 999px;
  }
  .pipe-pulse {
    position: absolute;
    top: 50%;
    left: 12%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    animation: pipeMove 3.2s linear infinite;
  }

  .live-metrics {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    display: grid;
    gap: 7px;
  }
  .metric-row {
    display: grid;
    grid-template-columns: 80px 1fr 54px;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: #567da7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .metric-row strong {
    text-align: right;
    font-size: 10px;
    color: #295d8f;
  }
  .metric-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(147, 188, 235, 0.28);
    overflow: hidden;
  }
  .metric-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.88), rgba(37, 99, 235, 0.68));
    animation: metricShift 2.8s ease-in-out infinite;
  }
  .metric-bar .mb-1 { width: 58%; animation-delay: 0s; }
  .metric-bar .mb-2 { width: 38%; animation-delay: 0.45s; }
  .metric-bar .mb-3 { width: 92%; animation-delay: 0.9s; }

  .live-tags {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .live-tags span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(40, 112, 175, 0.66);
    opacity: 0;
    animation: tagBlink 9s ease-in-out infinite;
  }
  .live-tags span:nth-child(1) { left: 61%; top: 18%; animation-delay: 0s; }
  .live-tags span:nth-child(2) { left: 24%; top: 56%; animation-delay: 1.2s; }
  .live-tags span:nth-child(3) { left: 73%; top: 62%; animation-delay: 2.1s; }
  .live-tags span:nth-child(4) { left: 14%; top: 31%; animation-delay: 3.2s; }
  .live-tags span:nth-child(5) { left: 47%; top: 78%; animation-delay: 4.2s; }
  .live-tags span:nth-child(6) { left: 76%; top: 36%; animation-delay: 5.1s; }

  @media (max-width: 520px) {
    .live-body { min-height: 124px; }
    .live-line { font-size: 10px; }
    .metric-row { grid-template-columns: 64px 1fr 48px; font-size: 9px; }
    .pipe-node { font-size: 9px; padding: 2px 5px; }
  }

  /* Section */
  .section { max-width: 80rem; margin: 0 auto; padding: 0 20px 120px; }
  .section-hdr { margin-bottom: 48px; }
  .section-hdr-services {
    max-width: 760px;
    position: relative;
  }
  .services-title {
    margin-top: 16px;
    display: grid;
    gap: 4px;
    line-height: 1.04;
  }
  .services-title-main {
    display: block;
    font-size: clamp(30px, 5.2vw, 50px);
    color: #102d4d;
    letter-spacing: -0.02em;
  }
  .services-title-accent {
    display: inline-block;
    width: fit-content;
    font-size: clamp(30px, 5.2vw, 50px);
    letter-spacing: -0.02em;
    color: #256fae;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0));
    border-bottom: 2px solid rgba(56, 189, 248, 0.5);
    padding-right: 6px;
  }
  .services-sub {
    max-width: 640px;
    margin-top: 18px;
  }
  .services-flow {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .services-flow span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #3c6694;
    border: 1px solid rgba(112, 154, 213, 0.44);
    background: rgba(241, 249, 255, 0.88);
    border-radius: 999px;
    padding: 6px 10px;
  }
  .section-hdr-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
  }

  /* Services */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .svc-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    text-decoration: none;
    background: rgba(252, 254, 255, 0.92);
    border: 1px solid rgba(129, 168, 223, 0.48);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    animation: svcCardDrift 8.2s ease-in-out infinite;
    will-change: transform;
  }
  .svc-card::before {
    content: '';
    position: absolute;
    top: -130%;
    left: -45%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0));
    transform: rotate(12deg);
    animation: svcShine 7.5s linear infinite;
    pointer-events: none;
  }
  .svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(102, 156, 226, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(102, 156, 226, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 70%);
    pointer-events: none;
  }
  .svc-card > * {
    position: relative;
    z-index: 1;
  }
  .svc-card:nth-child(2n) { animation-delay: -2.1s; }
  .svc-card:nth-child(3n) { animation-delay: -4s; }
  .svc-card:nth-child(4n) { animation-delay: -5.6s; }
  .svc-card:hover {
    transform: translateY(-7px);
    border-color: rgba(85, 151, 235, 0.72);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px rgba(36, 88, 163, 0.16);
  }
  .svc-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: svcIconBreath 3.2s ease-in-out infinite;
  }
  .svc-icon svg {
    transition: transform 0.25s ease;
  }
  .svc-card:hover .svc-icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(56, 125, 199, 0.2);
  }
  .svc-card:hover .svc-icon svg {
    transform: scale(1.08) rotate(-7deg);
  }
  .svc-title {
    font-size: 15px;
    font-weight: 700;
    color: #18375c;
    margin-bottom: 6px;
    transition: color 0.24s ease, transform 0.24s ease;
  }
  .svc-card:hover .svc-title {
    color: #0f477d;
    transform: translateX(1px);
  }
  .svc-desc { font-size: 13px; color: #44698f; line-height: 1.65; }
  .svc-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    transition: transform 0.24s ease;
  }
  .svc-card:hover .svc-more { transform: translateX(2px); }
  .svc-arr { transition: transform 0.2s; }
  .svc-card:hover .svc-arr { transform: translateX(3px); }

  /* Tech strip */
  .tech-strip {
    border-top: 1px solid rgba(128, 165, 216, 0.48);
    border-bottom: 1px solid rgba(128, 165, 216, 0.48);
    background: rgba(236, 245, 255, 0.88); padding: 16px 0; margin-bottom: 0;
  }
  .tech-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 20px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  }
  .tech-item {
    font-size: 12px; font-weight: 500; color: #4b6f96;
    padding: 4px 20px; border-right: 1px solid rgba(113, 151, 211, 0.22);
    font-family: 'JetBrains Mono', monospace;
  }
  .tech-item:last-child { border-right: none; }

  /* Posts */
  .posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

  .home-journal {
    padding-top: 96px;
  }
  .home-journal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
  }
  .journal-all-link {
    color: #25496f;
    text-decoration: none;
    font-weight: 850;
    border: 1px solid rgba(128,165,216,.52);
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    padding: 12px 14px;
  }
  .home-journal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 16px;
  }
  .journal-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    min-height: 190px;
    border: 1px solid rgba(128,165,216,.52);
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 16px 36px rgba(36,88,163,.09);
    padding: 18px;
  }
  .journal-card-featured {
    grid-row: span 2;
    grid-template-columns: 210px 1fr;
    min-height: 400px;
    background:
      radial-gradient(circle at 18% 16%, rgba(56,189,248,.18), transparent 36%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,246,255,.86));
  }
  .journal-card-hit {
    position: absolute;
    inset: 0;
    z-index: 3;
  }
  .journal-mark {
    border: 1px solid rgba(128,165,216,.42);
    border-radius: 8px;
    background:
      linear-gradient(rgba(102,156,226,.11) 1px, transparent 1px),
      linear-gradient(90deg, rgba(102,156,226,.11) 1px, transparent 1px),
      rgba(239,248,255,.82);
    background-size: 18px 18px;
    padding: 14px;
    display: grid;
    align-content: space-between;
  }
  .journal-mark span {
    color: #0b6fa4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .journal-mark strong {
    color: rgba(19,47,79,.92);
    font-size: 58px;
    line-height: .9;
  }
  .journal-card-featured .journal-mark strong {
    font-size: 102px;
  }
  .journal-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #5b7ea8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
  }
  .journal-meta span {
    color: #0b6fa4;
  }
  .journal-copy h3 {
    color: #17365b;
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .journal-card-featured .journal-copy h3 {
    font-size: 34px;
    line-height: 1.12;
    max-width: 580px;
  }
  .journal-copy h3 a {
    color: inherit;
    text-decoration: none;
  }
  .journal-copy p {
    color: #44698f;
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 16px;
  }
  .journal-read {
    color: #0b6fa4;
    font-weight: 900;
    font-size: 13px;
  }
  .journal-card:hover {
    border-color: rgba(56,189,248,.62);
    box-shadow: 0 20px 46px rgba(36,88,163,.15);
    transform: translateY(-2px);
  }

  /* CTA */
  .cta-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(128, 165, 216, 0.55);
    border-radius: 28px; padding: 80px 40px; text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .cta-inner { display: flex; flex-direction: column; align-items: center; }
  .cta-checks {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
    font-size: 13px; color: #557ca5; font-family: 'JetBrains Mono', monospace;
  }

  @keyframes heroWordCycle {
    0%, 18% { opacity: 0; transform: translateY(12px); }
    22%, 44% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-8px); }
  }
  @keyframes heroWordMorph {
    0%, 100% { letter-spacing: 0; font-variation-settings: "wght" 540; }
    50% { letter-spacing: 0.02em; font-variation-settings: "wght" 820; }
  }

  @media (max-width: 980px) {
    .home-journal-head,
    .home-journal-grid,
    .journal-card,
    .journal-card-featured {
      grid-template-columns: 1fr;
    }
    .home-journal-grid {
      grid-template-rows: none;
    }
    .journal-card-featured {
      grid-row: auto;
    }
    .journal-mark {
      min-height: 130px;
    }
  }
  @media (max-width: 560px) {
    .home-journal { padding-top: 72px; }
    .journal-card { padding: 16px; }
    .journal-card-featured .journal-copy h3 { font-size: 26px; }
    .journal-mark strong,
    .journal-card-featured .journal-mark strong { font-size: 62px; }
    .journal-all-link { width: 100%; text-align: center; }
  }
  @keyframes caretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }
  @keyframes liveLine {
    0%, 16% { opacity: 0; transform: translateY(6px); }
    20%, 46% { opacity: 1; transform: translateY(0); }
    52%, 100% { opacity: 0; transform: translateY(-5px); }
  }
  @keyframes pipeMove {
    0% { left: 12%; opacity: 0.2; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 88%; opacity: 0.2; }
  }
  @keyframes metricShift {
    0%, 100% { filter: saturate(1); transform: scaleX(0.94); transform-origin: left; }
    50% { filter: saturate(1.25); transform: scaleX(1); transform-origin: left; }
  }
  @keyframes tagBlink {
    0%, 12% { opacity: 0; transform: translateY(6px); }
    18%, 32% { opacity: 0.78; transform: translateY(0); }
    40%, 100% { opacity: 0; transform: translateY(-7px); }
  }
  @keyframes wfPulse {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
  }
  @keyframes wfScan {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(860px); opacity: 0; }
  }
  @keyframes svcShine {
    0% { left: -50%; opacity: 0; }
    8% { opacity: 0.6; }
    25% { opacity: 0.6; }
    40% { left: 120%; opacity: 0; }
    100% { left: 120%; opacity: 0; }
  }
  @keyframes svcCardDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
  @keyframes svcIconBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
  }

  /* Services lab page */
  .services-lab-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    margin-top: 0;
    padding: clamp(72px, 7vw, 104px) 0 132px;
    background:
      linear-gradient(180deg, #eaf4ff 0%, #f5faff 34%, #edf7ff 68%, #e5f1ff 100%);
  }
  .services-lab-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(760px 420px at 12% 5%, rgba(56, 189, 248, 0.16), transparent 66%),
      radial-gradient(720px 420px at 88% 8%, rgba(52, 211, 153, 0.12), transparent 68%),
      linear-gradient(rgba(74, 126, 194, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(74, 126, 194, 0.07) 1px, transparent 1px);
    background-size: auto, auto, 52px 52px, 52px 52px;
  }
  .services-lab-hero,
  .services-track-section,
  .services-data-stage,
  .services-packages,
  .services-process,
  .services-final-cta {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: clamp(20px, 3vw, 34px);
    padding-right: clamp(20px, 3vw, 34px);
  }
  .services-lab-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.72fr);
    gap: clamp(30px, 4.6vw, 58px);
    align-items: center;
    min-height: auto;
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(48px, 5vw, 72px);
    position: relative;
  }
  .services-lab-hero::before {
    content: none;
  }
  .services-lab-copy {
    position: relative;
    z-index: 2;
  }
  .services-lab-copy h1 {
    max-width: 700px;
    margin: 18px 0 22px;
    color: #112b49;
    font-size: clamp(40px, 5.3vw, 64px);
    line-height: 1.04;
    letter-spacing: 0;
  }
  .services-lab-copy p {
    max-width: 650px;
    color: #41658c;
    font-size: 17px;
    line-height: 1.75;
  }
  .services-lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
  }
  .services-lab-engine {
    position: relative;
    z-index: 2;
    min-height: 450px;
    border: 1px solid rgba(128, 165, 216, 0.56);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.92), rgba(231,244,255,0.86));
    box-shadow: 0 28px 70px rgba(36, 88, 163, 0.18);
    overflow: hidden;
  }
  .services-lab-engine::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(56, 189, 248, 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    animation: servicesGridDrift 12s linear infinite reverse;
  }
  .engine-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(128, 165, 216, 0.42);
    background: rgba(246, 251, 255, 0.84);
  }
  .engine-top span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #38bdf8;
  }
  .engine-top span:nth-child(2) { background: #34d399; }
  .engine-top span:nth-child(3) { background: #fbbf24; }
  .engine-top strong {
    margin-left: auto;
    color: #52779f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .engine-grid {
    position: relative;
    z-index: 2;
    height: 270px;
  }
  .engine-node {
    position: absolute;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    border: 1px solid rgba(98, 147, 209, 0.58);
    background: rgba(255, 255, 255, 0.82);
    color: #17365b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(36, 88, 163, 0.14);
    animation: serviceNodeFloat 5.4s ease-in-out infinite;
  }
  .node-a { left: 10%; top: 16%; }
  .node-b { right: 12%; top: 22%; animation-delay: -1.2s; }
  .node-c { left: 40%; top: 48%; color: #17613a; animation-delay: -2.2s; }
  .node-d { left: 16%; bottom: 6%; animation-delay: -3.1s; }
  .engine-line,
  .engine-pulse {
    position: absolute;
    z-index: 1;
    display: block;
    pointer-events: none;
  }
  .engine-line {
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
    transform-origin: left center;
    animation: serviceLineGlow 2.8s ease-in-out infinite;
  }
  .line-a { width: 54%; left: 19%; top: 32%; transform: rotate(8deg); }
  .line-b { width: 48%; left: 21%; top: 66%; transform: rotate(-18deg); animation-delay: -0.8s; }
  .line-c { width: 44%; left: 45%; top: 55%; transform: rotate(-44deg); animation-delay: -1.6s; }
  .engine-pulse {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.95);
  }
  .pulse-a { left: 12%; top: 31%; animation: servicePulseA 4.2s linear infinite; }
  .pulse-b { left: 20%; top: 69%; background: #34d399; animation: servicePulseB 4.8s linear infinite; }
  .engine-feed {
    position: relative;
    z-index: 3;
    margin: 0 18px 20px;
    display: grid;
    gap: 9px;
  }
  .engine-feed span {
    border: 1px solid rgba(128, 165, 216, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #44698f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 10px 12px;
    animation: serviceFeed 5.5s ease-in-out infinite;
  }
  .engine-feed span:nth-child(2) { animation-delay: -1s; }
  .engine-feed span:nth-child(3) { animation-delay: -2s; }
  .engine-feed span:nth-child(4) { animation-delay: -3s; }
  .services-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    border-top: 1px solid rgba(128, 165, 216, 0.45);
    border-bottom: 1px solid rgba(128, 165, 216, 0.45);
    background: rgba(255, 255, 255, 0.62);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .services-marquee-track {
    display: flex;
    width: max-content;
    animation: servicesMarquee 22s linear infinite;
    will-change: transform;
  }
  .services-marquee-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 6px;
    flex-shrink: 0;
  }
  .services-marquee span {
    border: 1px solid rgba(128, 165, 216, 0.5);
    border-radius: 999px;
    background: rgba(239, 248, 255, 0.9);
    color: #3c6694;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 9px 13px;
    white-space: nowrap;
  }
  .services-track-section {
    padding-top: clamp(56px, 6vw, 82px);
  }
  .services-track-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
  }
  .service-track-card {
    position: relative;
    display: block;
    min-height: 350px;
    overflow: hidden;
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.93), rgba(237,248,255,0.88));
    box-shadow: 0 18px 44px rgba(36, 88, 163, 0.12);
    padding: clamp(26px, 3vw, 36px);
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: serviceCardLift 8s ease-in-out infinite;
  }
  .service-track-card::before {
    content: '';
    position: absolute;
    inset: auto -20% -40%;
    height: 190px;
    background:
      linear-gradient(90deg, rgba(56,189,248,0.0), rgba(56,189,248,0.2), rgba(52,211,153,0.18), rgba(56,189,248,0.0));
    transform: rotate(-8deg);
    animation: serviceShimmer 5.8s ease-in-out infinite;
  }
  .service-track-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 26px 58px rgba(36, 88, 163, 0.18);
  }
  .service-track-1,
  .service-track-4 { grid-column: span 5; }
  .service-track-2,
  .service-track-3,
  .service-track-5,
  .service-track-6 { grid-column: span 7; }
  .service-track-2,
  .service-track-5 { animation-delay: -1.4s; }
  .service-track-3,
  .service-track-6 { animation-delay: -2.8s; }
  .service-track-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 34px;
  }
  .service-track-head > span {
    color: #0b6fa4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
  }
  .service-track-head div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
  }
  .service-track-head em {
    font-style: normal;
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    color: #557ca5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 6px 8px;
  }
  .service-track-card h3,
  .service-track-card p,
  .service-mini-flow {
    position: relative;
    z-index: 2;
  }
  .service-track-card h3 {
    max-width: 540px;
    margin: 0 0 18px;
    color: #17365b;
    font-size: clamp(25px, 3.1vw, 38px);
    line-height: 1.07;
  }
  .service-track-card p {
    max-width: 620px;
    color: #44698f;
    line-height: 1.68;
    font-size: 15px;
  }
  .service-mini-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 32px;
  }
  .service-mini-flow span {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(128, 165, 216, 0.48);
    border-radius: 8px;
    background: rgba(246, 251, 255, 0.82);
    color: #35597f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 12px 10px;
    text-align: center;
  }
  .service-mini-flow span::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.24), transparent);
    animation: serviceCellScan 3.8s ease-in-out infinite;
  }
  .service-mini-flow span:nth-child(2)::after { animation-delay: 0.45s; }
  .service-mini-flow span:nth-child(3)::after { animation-delay: 0.9s; }
  .service-track-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: 24px;
    color: #0b6fa4;
    font-size: 13px;
    font-weight: 900;
  }

  .service-detail-page {
    padding: 88px 0 118px;
    background:
      linear-gradient(180deg, rgba(232, 244, 255, 0.94), rgba(247, 251, 255, 0.98));
  }
  .service-detail-hero,
  .service-detail-body,
  .service-related {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    min-height: 520px;
  }
  .service-detail-hero h1 {
    max-width: 870px;
    margin: 18px 0 18px;
    color: #112b49;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
  }
  .service-detail-hero p {
    max-width: 720px;
    color: #41658c;
    font-size: 17px;
    line-height: 1.76;
  }
  .service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }
  .service-detail-panel,
  .service-side-card,
  .service-detail-section,
  .service-related-card {
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(36, 88, 163, 0.1);
  }
  .service-detail-panel {
    overflow: hidden;
    min-height: 360px;
  }
  .service-detail-panel-top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(128, 165, 216, 0.42);
    background: rgba(246, 251, 255, 0.84);
  }
  .service-detail-panel-top span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #38bdf8;
  }
  .service-detail-panel-top span:nth-child(2) { background: #34d399; }
  .service-detail-panel-top span:nth-child(3) { background: #fbbf24; }
  .service-detail-panel-top strong {
    margin-left: auto;
    color: #52779f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .service-outcomes {
    display: grid;
    gap: 12px;
    padding: 24px;
  }
  .service-outcomes span {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(128, 165, 216, 0.48);
    border-radius: 8px;
    background: rgba(239, 248, 255, 0.86);
    color: #35597f;
    font-weight: 850;
    padding: 15px;
  }
  .service-outcomes span::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.22), transparent);
    animation: serviceCellScan 3.8s ease-in-out infinite;
  }
  .service-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
  }
  .service-detail-main {
    display: grid;
    gap: 16px;
  }
  .service-detail-section {
    padding: clamp(22px, 4vw, 34px);
  }
  .service-detail-section span {
    color: #0b6fa4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 900;
  }
  .service-detail-section h2 {
    color: #17365b;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    margin: 14px 0 12px;
  }
.service-detail-section p {
    color: #44698f;
    line-height: 1.72;
    font-size: 15px;
  }
  .service-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }
  .service-delivery-grid article {
    border: 1px solid rgba(128, 165, 216, 0.46);
    border-radius: 8px;
    background: rgba(246, 251, 255, 0.82);
    padding: 18px;
  }
  .service-delivery-grid strong {
    color: #0b6fa4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
  }
  .service-delivery-grid h3 {
    color: #17365b;
    font-size: 18px;
    margin: 12px 0 8px;
  }
  .service-value-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }
  .service-value-list span {
    border: 1px solid rgba(128, 165, 216, 0.46);
    border-radius: 8px;
    background: rgba(239, 248, 255, 0.86);
    color: #35597f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.45;
    padding: 14px;
  }
  .service-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  .service-faq-list details {
    border: 1px solid rgba(128, 165, 216, 0.48);
    border-radius: 8px;
    background: rgba(246, 251, 255, 0.82);
    padding: 14px 15px;
  }
  .service-faq-list summary {
    cursor: pointer;
    color: #17365b;
    font-weight: 850;
  }
  .service-faq-list details p {
    margin-top: 10px;
  }
  .service-detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
  }
  .service-side-card {
    padding: 20px;
  }
  .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .service-tags span {
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 999px;
    background: rgba(239, 248, 255, 0.82);
    color: #557ca5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 9px;
  }
  .service-side-cta {
    background: linear-gradient(135deg, rgba(18, 44, 76, 0.96), rgba(17, 89, 119, 0.94));
  }
  .service-side-cta h2 {
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .service-side-cta p {
    color: rgba(225, 241, 255, 0.86);
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 18px;
  }
  .service-conversion-cta {
    max-width: 80rem;
    margin: 48px auto 0;
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(128, 165, 216, 0.55);
    border-radius: 8px;
    background:
      radial-gradient(circle at 92% 10%, rgba(52,211,153,.16), transparent 34%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,246,255,.88));
    box-shadow: 0 18px 44px rgba(36,88,163,.1);
  }
  .service-conversion-cta h2 {
    margin: 14px 0 10px;
    color: #112b49;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
  }
  .service-conversion-cta p {
    max-width: 720px;
    color: #44698f;
    line-height: 1.7;
  }
  .service-related {
    margin-top: 92px;
  }
  .service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .service-related-card {
    display: block;
    min-height: 210px;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  }
  .service-related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.66);
    box-shadow: 0 22px 48px rgba(36, 88, 163, 0.14);
  }
  .service-related-card strong {
    display: block;
    color: #17365b;
    font-size: 20px;
    margin-bottom: 10px;
  }
  .service-related-card p {
    color: #557ca5;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 16px;
  }
  .service-related-card span {
    color: #0b6fa4;
    font-weight: 900;
    font-size: 13px;
  }

.case-page,
.landing-page {
  padding: 112px 24px 72px;
}

.case-hero,
.landing-hero,
.case-story-grid,
.case-system-map,
.case-faq,
.case-bottom-cta,
.landing-proof-strip,
.landing-authority-strip,
.landing-section-grid,
.landing-deep-section,
.landing-process-section,
.landing-intent-section,
.landing-sales-block,
.landing-faq,
.landing-bottom-cta {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.case-hero,
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
  padding: 46px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,249,255,0.88)),
    radial-gradient(circle at 86% 16%, rgba(45, 212, 191, 0.16), transparent 32%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.case-hero::after,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 40px 34px 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 64, 105, 0.3), transparent);
}

.case-hero h1,
.landing-hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #142033;
  max-width: 840px;
}

.case-hero p,
.landing-hero p {
  max-width: 720px;
  color: #516073;
  font-size: 18px;
  line-height: 1.7;
}

.case-actions,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.case-terminal,
.landing-panel {
  align-self: stretch;
  border-radius: 22px;
  background: #142033;
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.case-terminal-top {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 14px;
}

.case-terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2dd4bf;
}

.case-terminal-top span:nth-child(2) { background: #f59e0b; }
.case-terminal-top span:nth-child(3) { background: #fb7185; }
.case-terminal-top strong {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.68);
}

.case-terminal-row,
.landing-proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.case-terminal-row span,
.landing-proof-row span {
  font-weight: 800;
}

.case-terminal-row i,
.landing-proof-row i {
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #a7f3d0);
}

.case-story-grid,
.landing-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.case-story-card,
.landing-section-card,
.case-faq,
.landing-faq,
.case-system-map,
.landing-sales-block,
.case-bottom-cta,
.landing-bottom-cta {
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.case-story-card,
.landing-section-card {
  padding: 28px;
  min-height: 320px;
}

.case-story-card span,
.landing-section-card strong {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef6ff;
  color: #1d4ed8;
  font-family: var(--mono);
  margin-bottom: 22px;
}

.case-story-card h2,
.landing-section-card h2,
.case-system-map h2,
.landing-sales-block h2,
.case-faq h2,
.landing-faq h2,
.case-bottom-cta h2,
.landing-bottom-cta h2 {
  margin: 0 0 12px;
  color: #142033;
  letter-spacing: 0;
}

.case-story-card p,
.landing-section-card p,
.case-system-map p,
.landing-sales-block p,
.case-bottom-cta p,
.landing-bottom-cta p {
  color: #516073;
  line-height: 1.7;
}

.case-story-card ul {
  margin: 0;
  padding-left: 18px;
  color: #516073;
  line-height: 1.75;
}

.case-story-card li + li { margin-top: 8px; }

.case-system-map,
.landing-sales-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 26px;
  align-items: center;
  margin-top: 24px;
  padding: 34px;
}

.case-flow {
  display: grid;
  gap: 10px;
}

.case-flow span,
.landing-proof-strip span {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f9ff;
  color: #24405f;
  font-weight: 850;
}

.case-faq,
.landing-faq {
  margin-top: 24px;
  padding: 34px;
}

.case-bottom-cta,
.landing-bottom-cta {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(20, 32, 51, 0.96), rgba(35, 64, 105, 0.95)),
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.24), transparent 28%);
  color: #fff;
}

.case-bottom-cta h2,
.landing-bottom-cta h2,
.case-bottom-cta p,
.landing-bottom-cta p {
  color: #fff;
}

.landing-panel {
  background:
    linear-gradient(160deg, rgba(20,32,51,0.98), rgba(31,55,87,0.96)),
    radial-gradient(circle at 80% 20%, rgba(45,212,191,0.28), transparent 38%);
}

.landing-panel-logo {
  padding: 14px 0 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 6px;
}

.landing-panel-logo img {
  filter: brightness(0) invert(1);
}

.landing-proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.landing-authority-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.landing-authority-strip article {
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,249,255,0.9)),
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 38%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.landing-authority-strip strong {
  display: block;
  margin-bottom: 10px;
  color: #142033;
  font-size: 18px;
  line-height: 1.15;
}

.landing-authority-strip span {
  color: #516073;
  font-size: 14px;
  line-height: 1.55;
}

.landing-sales-block {
  margin-top: 24px;
}

.location-landing .landing-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,249,255,0.9)),
    radial-gradient(circle at 84% 14%, rgba(45, 212, 191, 0.2), transparent 32%),
    radial-gradient(circle at 6% 92%, rgba(37, 99, 235, 0.1), transparent 26%);
}

.location-landing .landing-section-card {
  position: relative;
  overflow: hidden;
}

.location-landing .landing-section-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #2dd4bf, #2563eb);
  opacity: 0.78;
}

.landing-city-context {
  position: relative;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,249,255,0.9)),
    radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.22), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(37, 99, 235, 0.12), transparent 28%);
}

.landing-city-context::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(128, 165, 216, 0.28);
}

.landing-city-copy,
.landing-city-note {
  position: relative;
  z-index: 1;
}

.landing-city-copy h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.02;
}

.landing-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.landing-city-tags span {
  border: 1px solid rgba(11, 111, 164, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #24405f;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 12px;
}

.landing-city-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(20,32,51,0.98), rgba(31,55,87,0.96)),
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.22), transparent 38%);
  color: #fff;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.landing-city-mark {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  color: #99f6e4;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.landing-city-note strong {
  color: #fff;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.landing-city-note span {
  color: #99f6e4;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-city-note p {
  margin: 0;
  color: rgba(255,255,255,0.76);
}

.landing-deep-section,
.landing-process-section,
.landing-intent-section {
  margin-top: 24px;
}

.landing-section-heading {
  display: flex;
  max-width: 780px;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.landing-section-heading h2,
.landing-intent-main h2 {
  margin: 0;
  color: #142033;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.landing-service-grid article {
  min-height: 238px;
  padding: 26px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}

.landing-service-grid h3,
.landing-process-list h3,
.landing-intent-section h3 {
  margin: 0 0 10px;
  color: #142033;
  font-size: 20px;
  line-height: 1.2;
}

.landing-service-grid p,
.landing-process-list p,
.landing-intent-section p {
  margin: 0;
  color: #516073;
  line-height: 1.68;
}

.landing-process-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,249,255,0.88)),
    radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.12), transparent 32%);
}

.landing-process-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
}

.landing-process-list strong {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #142033;
  color: #99f6e4;
  font-family: var(--mono);
}

.landing-intent-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.landing-intent-main,
.landing-intent-side {
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.landing-intent-main {
  padding: 34px;
}

.landing-intent-main article {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 41, 59, 0.1);
}

.landing-intent-side {
  display: grid;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(20,32,51,0.98), rgba(31,55,87,0.96)),
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.22), transparent 38%);
}

.landing-intent-side h3 {
  color: #fff;
}

.landing-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-chip-cloud span {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 850;
  padding: 9px 12px;
}

.landing-case-link {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: #142033;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-case-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.landing-case-link span {
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-case-link strong {
  font-size: 22px;
  line-height: 1.25;
}

.landing-case-link em {
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 980px) {
  .case-hero,
  .landing-hero,
  .case-system-map,
  .landing-sales-block,
  .landing-intent-section {
    grid-template-columns: 1fr;
  }

  .case-story-grid,
  .landing-section-grid,
  .landing-proof-strip,
  .landing-authority-strip,
  .landing-service-grid {
    grid-template-columns: 1fr;
  }

  .case-bottom-cta,
  .landing-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .case-page,
  .landing-page {
    padding: 82px 14px 42px;
  }

  .case-hero,
  .landing-hero,
  .case-story-card,
  .landing-section-card,
  .landing-intent-main,
  .landing-intent-side,
  .case-system-map,
  .landing-sales-block,
  .case-faq,
  .landing-faq,
  .case-bottom-cta,
  .landing-bottom-cta {
    border-radius: 18px;
    padding: 22px;
  }

  .case-hero h1,
  .landing-hero h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .landing-process-list article {
    grid-template-columns: 1fr;
  }

  .landing-authority-strip article,
  .landing-service-grid article {
    min-height: auto;
  }

  .case-hero p,
  .landing-hero p {
    font-size: 16px;
  }
}
  .services-data-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin-top: clamp(86px, 8vw, 120px);
    padding-top: clamp(38px, 6vw, 70px);
    padding-bottom: clamp(38px, 6vw, 70px);
    border-top: 1px solid rgba(128, 165, 216, 0.42);
    border-bottom: 1px solid rgba(128, 165, 216, 0.42);
  }
  .services-data-copy h2 {
    margin: 18px 0 14px;
    color: #112b49;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
  }
  .services-data-copy p {
    color: #44698f;
    line-height: 1.75;
    font-size: 16px;
    margin-bottom: 26px;
  }
  .data-orchestrator {
    position: relative;
    min-height: 390px;
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(15, 47, 79, 0.96), rgba(14, 88, 115, 0.92));
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: center;
    gap: 18px;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 28px 70px rgba(36, 88, 163, 0.2);
  }
  .data-orchestrator::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(125, 211, 252, 0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(52, 211, 153, 0.1) 1px, transparent 1px);
    background-size: 34px 34px;
    animation: servicesGridDrift 14s linear infinite;
  }
  .data-column,
  .data-core {
    position: relative;
    z-index: 2;
  }
  .data-column {
    display: grid;
    gap: 12px;
  }
  .data-column span {
    border: 1px solid rgba(191, 219, 254, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9ecff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 13px;
    text-align: center;
    animation: serviceFeed 5s ease-in-out infinite;
  }
  .data-column span:nth-child(2) { animation-delay: -1.1s; }
  .data-column span:nth-child(3) { animation-delay: -2.2s; }
  .data-core {
    min-height: 170px;
    border: 1px solid rgba(125, 242, 211, 0.5);
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.13);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    box-shadow: 0 0 36px rgba(52, 211, 153, 0.18);
  }
  .data-core strong {
    display: block;
    font-size: 54px;
    line-height: 0.95;
  }
  .data-core em {
    color: #a8ffe9;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .data-beam {
    position: absolute;
    z-index: 1;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(125, 242, 211, 0.9), transparent);
    animation: serviceLineGlow 2.4s ease-in-out infinite;
  }
  .beam-1 { top: 42%; }
  .beam-2 { top: 58%; animation-delay: -1.2s; }
  .services-packages {
    margin-top: clamp(86px, 8vw, 120px);
  }
  .services-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .services-package-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,255,0.86));
    box-shadow: 0 18px 44px rgba(36, 88, 163, 0.1);
    padding: clamp(22px, 2.6vw, 32px);
  }
  .services-package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, transparent, rgba(56,189,248,0.14), transparent);
    transform: translateX(-115%);
    animation: serviceCellScan 4.6s ease-in-out infinite;
  }
  .services-package-card:nth-child(2)::before { animation-delay: -0.7s; }
  .services-package-card:nth-child(3)::before { animation-delay: -1.4s; }
  .services-package-card:nth-child(4)::before { animation-delay: -2.1s; }
  .services-package-card:nth-child(5)::before { animation-delay: -2.8s; }
  .services-package-card:nth-child(6)::before { animation-delay: -3.5s; }
  .services-package-card h3,
  .services-package-card p,
  .services-package-card div {
    position: relative;
    z-index: 2;
  }
  .services-package-card h3 {
    margin: 0 0 12px;
    color: #17365b;
    font-size: clamp(21px, 2.2vw, 28px);
    line-height: 1.14;
  }
  .services-package-card p {
    color: #44698f;
    font-size: 14px;
    line-height: 1.66;
  }
  .services-package-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
  }
  .services-package-card span {
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    color: #557ca5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 9px;
  }
  .services-process {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    margin-top: clamp(86px, 8vw, 120px);
  }
  .services-process-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .services-process-rail article {
    position: relative;
    min-height: 250px;
    border: 1px solid rgba(128, 165, 216, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 22px;
    overflow: hidden;
  }
  .services-process-rail article::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #34d399);
    transform-origin: left;
    animation: processBar 4.4s ease-in-out infinite;
  }
  .services-process-rail article:nth-child(2)::after { animation-delay: -0.7s; }
  .services-process-rail article:nth-child(3)::after { animation-delay: -1.4s; }
  .services-process-rail article:nth-child(4)::after { animation-delay: -2.1s; }
  .services-process-rail strong {
    color: #0b6fa4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
  }
  .services-process-rail h3 {
    color: #17365b;
    font-size: 22px;
    margin: 18px 0 10px;
  }
  .services-process-rail p {
    color: #557ca5;
    line-height: 1.62;
    font-size: 14px;
  }
  .services-final-cta {
    margin-top: clamp(86px, 8vw, 120px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(128, 165, 216, 0.55);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(229, 244, 255, 0.88));
    box-shadow: 0 22px 56px rgba(36, 88, 163, 0.13);
    padding-top: clamp(30px, 5vw, 46px);
    padding-bottom: clamp(30px, 5vw, 46px);
  }
  .services-final-cta h2 {
    margin: 14px 0 10px;
    color: #112b49;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.06;
  }
  .services-final-cta p {
    max-width: 680px;
    color: #44698f;
    line-height: 1.7;
  }

  @keyframes servicesGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 104px 104px, 104px 104px; }
  }
  @keyframes serviceNodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
  @keyframes serviceLineGlow {
    0%, 100% { opacity: 0.35; filter: saturate(0.85); }
    50% { opacity: 1; filter: saturate(1.35); }
  }
  @keyframes servicePulseA {
    0% { transform: translate(0, 0); opacity: 0; }
    12% { opacity: 1; }
    50% { transform: translate(190px, 40px); opacity: 1; }
    100% { transform: translate(330px, 18px); opacity: 0; }
  }
  @keyframes servicePulseB {
    0% { transform: translate(0, 0); opacity: 0; }
    14% { opacity: 1; }
    55% { transform: translate(145px, -62px); opacity: 1; }
    100% { transform: translate(285px, -132px); opacity: 0; }
  }
  @keyframes serviceFeed {
    0%, 100% { transform: translateX(0); opacity: 0.72; }
    50% { transform: translateX(6px); opacity: 1; }
  }
  @keyframes servicesMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @keyframes serviceCardLift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  @keyframes serviceShimmer {
    0%, 100% { transform: translateX(-8%) rotate(-8deg); opacity: 0.35; }
    50% { transform: translateX(8%) rotate(-8deg); opacity: 0.8; }
  }
  @keyframes serviceCellScan {
    0%, 55% { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
  }
  @keyframes processBar {
    0%, 100% { transform: scaleX(0.32); opacity: 0.58; }
    50% { transform: scaleX(1); opacity: 1; }
  }
  @media (max-width: 1040px) {
    .services-lab-hero,
    .services-data-stage,
    .services-process,
    .service-detail-hero,
    .service-detail-body {
      grid-template-columns: 1fr;
    }
    .services-lab-engine,
    .data-orchestrator {
      min-height: 430px;
    }
    .services-lab-hero {
      padding-top: 34px;
      width: 100vw;
      max-width: 100vw;
      margin-left: 0;
      margin-right: 0;
    }
    .services-lab-copy,
    .services-lab-engine,
    .contact-intro,
    .posts-hero {
      width: min(100%, calc(100vw - 40px));
      max-width: calc(100vw - 40px);
      overflow: hidden;
    }
    .services-lab-copy h1,
    .services-lab-copy p,
    .contact-intro h1,
    .contact-intro p,
    .posts-hero h1,
    .posts-hero p {
      max-width: calc(100vw - 40px);
      overflow-wrap: anywhere;
    }
    .services-lab-copy h1 {
      font-size: clamp(36px, 7vw, 58px);
      line-height: 1.06;
    }
    .services-lab-actions .btn-primary,
    .services-lab-actions .btn-secondary {
      width: 100%;
      justify-content: center;
    }
    .services-marquee {
      width: 100vw;
      max-width: 100vw;
    }
    .services-process-rail {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  .service-detail-side {
    position: static;
  }
  .service-delivery-grid,
  .service-value-list {
    grid-template-columns: 1fr;
  }
  .service-conversion-cta,
  .article-conversion-cta {
    align-items: flex-start;
    flex-direction: column;
  }
    .service-related-grid {
      grid-template-columns: 1fr;
    }
    .service-track-card,
    .service-track-1,
    .service-track-2,
    .service-track-3,
    .service-track-4,
    .service-track-5,
    .service-track-6 {
      grid-column: span 12;
    }
  }
  @media (max-width: 640px) {
    .services-lab-page { padding-top: 76px; }
    .services-lab-hero { min-height: 0; padding-top: 26px; padding-bottom: 38px; }
    .services-lab-copy h1 { font-size: 40px; }
    .services-lab-engine { min-height: 380px; }
    .engine-grid { height: 240px; }
    .engine-node {
      width: 78px;
      height: 78px;
      font-size: 11px;
    }
    .services-track-section,
    .services-data-stage,
    .services-process,
    .services-final-cta {
      margin-top: 76px;
    }
    .service-track-card { min-height: 0; padding: 22px; }
    .service-track-head { flex-direction: column; }
    .service-track-head div { justify-content: flex-start; }
    .service-mini-flow,
    .data-orchestrator,
    .services-process-rail {
      grid-template-columns: 1fr;
    }
    .data-orchestrator { padding: 20px; }
    .data-core strong { font-size: 42px; }
    .services-final-cta {
      align-items: flex-start;
      flex-direction: column;
    }
    .service-detail-page { padding-top: 66px; }
    .service-detail-hero { min-height: 0; padding-top: 56px; }
    .service-detail-hero h1 { font-size: 40px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .services-lab-hero::before,
    .services-lab-engine::after,
    .engine-node,
    .engine-line,
    .engine-pulse,
    .engine-feed span,
    .services-marquee div,
    .service-track-card,
    .service-track-card::before,
    .service-mini-flow span::after,
    .data-orchestrator::before,
    .data-column span,
    .data-beam,
    .services-process-rail article::after {
      animation: none;
    }
  }

  .hero-word {
    animation: heroWordClean 12s infinite;
    opacity: 0;
  }
  .live-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hw-1 { animation-delay: 0s; }
  .hw-2 { animation-delay: 3s; }
  .hw-3 { animation-delay: 6s; }
  .hw-4 { animation-delay: 9s; }
  @keyframes heroWordClean {
    0%, 20% { opacity: 1; transform: translateY(0); }
    24%, 100% { opacity: 0; transform: translateY(-8px); }
  }

/* Mobile hardening */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  main,
  section,
  article,
  aside,
  div,
  p,
  h1,
  h2,
  h3 {
    min-width: 0;
  }
  .hdr-inner {
    min-height: 60px;
    padding: 0 14px;
    gap: 10px;
  }
  .hdr-logo img {
    height: 22px;
    max-width: 138px;
  }
  .hdr-right {
    gap: 7px;
  }
  .hdr-lang {
    height: 34px;
    min-width: 38px;
    font-size: 10px;
  }
  .hdr-cta {
    display: none;
  }
  .hdr-burger {
    width: 36px;
    height: 36px;
  }

  .hero-section,
  .posts-page,
  .article-shell,
  .portfolio-page,
  .contact-grid,
  .service-detail-page {
    padding-top: 58px;
  }
  .hero-inner,
  .subpage-hero,
  .subpage-body,
  .posts-page,
  .portfolio-hero,
  .portfolio-lab,
  .portfolio-work,
  .portfolio-competence,
  .portfolio-dppc-focus,
  .portfolio-process,
  .contact-grid,
  .article-shell,
  .service-detail-hero,
  .service-detail-body,
  .service-related {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-h1,
  .subpage-title,
  .portfolio-title,
  .services-lab-copy h1,
  .service-detail-hero h1 {
    font-size: clamp(31px, 9vw, 38px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .hero-rotator {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-word {
    white-space: normal;
  }
  .hero-sub,
  .subpage-lead,
  .portfolio-lead,
  .services-lab-copy p,
  .service-detail-hero p,
  .contact-form-lead {
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .badge,
  .contact-topic-cloud span,
  .posts-hero-panel em,
  .services-marquee span,
  .portfolio-tags span,
  .service-tags span {
    max-width: 100%;
    white-space: normal;
  }
  .btn-primary,
  .btn-secondary {
    max-width: 100%;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .services-lab-actions .btn-primary,
  .services-lab-actions .btn-secondary,
  .portfolio-actions .btn-primary,
  .portfolio-actions .btn-secondary,
  .service-detail-actions .btn-primary,
  .service-detail-actions .btn-secondary,
  .subpage-actions .btn-primary,
  .subpage-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-preview,
  .services-lab-engine,
  .portfolio-console,
  .service-detail-panel {
    min-height: 0;
  }
  .hero-preview {
    padding: 14px;
  }
  .hero-stats {
    gap: 14px;
  }
  .stat-sep {
    display: none;
  }

  .services-lab-page {
    padding-top: 60px;
  }
  .services-lab-copy,
  .contact-intro,
  .posts-hero,
  .portfolio-hero,
  .service-detail-hero {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }
  .services-lab-copy h1,
  .services-lab-copy p,
  .contact-intro h1,
  .contact-intro p,
  .posts-hero h1,
  .posts-hero p {
    width: 100%;
    max-width: calc(100vw - 32px);
  }
  .services-lab-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    gap: 26px;
    padding-top: 24px;
  }
  .services-lab-engine {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-height: 350px;
  }
  .services-marquee {
    width: 100vw;
    max-width: 100vw;
  }
  .engine-grid {
    height: 220px;
  }
  .engine-node {
    width: 68px;
    height: 68px;
    font-size: 10px;
  }
  .node-a { left: 7%; top: 14%; }
  .node-b { right: 7%; top: 18%; }
  .node-c { left: 40%; top: 46%; }
  .node-d { left: 13%; bottom: 6%; }
  .engine-feed {
    margin: 0 12px 14px;
  }
  .engine-feed span {
    padding: 8px 10px;
    font-size: 10px;
  }
  .services-marquee-group {
    gap: 8px;
    padding: 12px 4px;
  }
  .services-marquee span {
    font-size: 10px;
    padding: 7px 10px;
  }
  .services-track-section {
    padding-top: 46px;
  }
  .services-track-grid,
  .portfolio-case-grid,
  .portfolio-capability-grid,
  .portfolio-process-steps,
  .posts-grid,
  .contact-focus-grid,
  .contact-form-row,
  .service-related-grid,
  .services-process-rail {
    grid-template-columns: 1fr;
  }
  .service-track-card,
  .portfolio-slide,
  .portfolio-case-card,
  .section-card,
  .contact-card,
  .article-card,
  .service-detail-section,
  .service-side-card,
  .service-related-card {
    padding: 18px;
    width: 100%;
    max-width: 100%;
  }
  .service-track-head,
  .portfolio-card-head {
    flex-direction: column;
    gap: 12px;
  }
  .service-track-head div,
  .portfolio-card-head {
    justify-content: flex-start;
  }
  .service-track-card h3,
  .services-data-copy h2,
  .services-final-cta h2,
  .service-detail-section h2,
  .news-featured-copy h2 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.15;
  }
  .service-mini-flow,
  .data-orchestrator,
  .portfolio-visual-pipeline {
    grid-template-columns: 1fr;
  }
  .data-orchestrator {
    min-height: 0;
    padding: 18px;
  }
  .data-core {
    min-height: 120px;
  }
  .data-core strong {
    font-size: 38px;
  }

  .news-featured-card {
    display: block;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }
  .news-visual {
    min-height: 150px;
  }
  .news-visual img {
    min-height: 190px;
    border-radius: 8px 8px 0 0;
  }
  .news-visual strong {
    font-size: 66px;
  }
  .news-featured-copy,
  .news-list-card {
    padding: 18px;
    width: 100%;
    max-width: 100%;
  }
  .news-list-card {
    grid-template-columns: 1fr;
  }
  .news-list-thumb {
    grid-row: auto;
    aspect-ratio: 1200 / 630;
  }
  .news-featured-copy p,
  .news-list-card p,
  .bc-desc,
  .contact-focus-card p,
  .contact-lines a {
    overflow-wrap: anywhere;
  }
  .posts-pagination {
    gap: 10px;
  }
  .posts-page-link,
  .posts-page-number {
    min-height: 40px;
  }

  .portfolio-carousel {
    grid-auto-columns: 88%;
    padding-bottom: 12px;
  }
  .portfolio-slide {
    min-height: auto;
  }
  .portfolio-slide h3 {
    font-size: 30px;
  }
  .portfolio-slide-visual {
    min-height: 210px;
  }
  .portfolio-metrics,
  .portfolio-dppc-modules {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 20px;
    padding-bottom: 70px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .contact-intro {
    min-height: 0;
  }
  .contact-lines,
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-topic-cloud {
    max-width: 100%;
  }
  .contact-lines a,
  .contact-focus-card,
  .contact-card,
  .contact-note {
    width: 100%;
    max-width: 100%;
  }
  .contact-card-head h2 {
    font-size: 26px;
  }
  .contact-form textarea {
    min-height: 150px;
  }

  .ftr-inner {
    padding: 28px 16px 22px;
  }
  .ftr-system {
    padding: 16px;
  }
  .ftr-system h2 {
    font-size: 21px;
  }
  .ftr-system-flow {
    width: 100%;
    gap: 7px;
  }
  .ftr-system-flow i {
    width: 18px;
  }
  .ftr-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 420px) {
  .hero-h1,
  .subpage-title,
  .portfolio-title,
  .services-lab-copy h1,
  .service-detail-hero h1 {
    font-size: 31px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-cta,
  .services-lab-actions,
  .portfolio-actions,
  .service-detail-actions,
  .subpage-actions {
    width: 100%;
  }
  .portfolio-carousel {
    grid-auto-columns: 92%;
  }
}

/* Mobile overflow fixes */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: clip;
  }

  .services-lab-hero,
  .services-track-section,
  .services-data-stage,
  .services-process,
  .services-final-cta,
  .posts-page,
  .article-shell,
  .portfolio-page,
  .portfolio-hero,
  .portfolio-lab,
  .portfolio-work,
  .portfolio-competence,
  .portfolio-dppc-focus,
  .portfolio-process,
  .contact-grid,
  .subpage-hero,
  .subpage-body,
  .service-detail-page,
  .service-detail-hero,
  .service-detail-body,
  .service-related {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    overflow: visible;
  }

  .services-lab-copy,
  .services-lab-engine,
  .contact-intro,
  .posts-hero,
  .portfolio-hero,
  .service-detail-hero,
  .section-card,
  .contact-card,
  .contact-focus-card,
  .news-featured-card,
  .news-list-card,
  .article-card,
  .service-track-card,
  .service-detail-section,
  .service-side-card,
  .service-related-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .services-lab-copy,
  .contact-intro,
  .posts-hero,
  .portfolio-hero,
  .service-detail-hero {
    overflow: visible;
  }

  .services-lab-copy h1,
  .contact-intro h1,
  .posts-hero h1,
  .portfolio-title,
  .subpage-title,
  .service-detail-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(30px, 8.2vw, 36px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .services-lab-copy p,
  .contact-intro p,
  .posts-hero p,
  .portfolio-lead,
  .subpage-lead,
  .service-detail-hero p,
  .article-card p,
  .news-featured-copy p,
  .news-list-card p,
  .contact-focus-card p,
  .contact-note p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .services-lab-hero {
    width: 100%;
    max-width: 100%;
    padding-top: 22px;
  }

  .services-lab-engine {
    min-height: 330px;
  }

  .engine-grid {
    height: 210px;
  }

  .engine-node {
    width: 62px;
    height: 62px;
    font-size: 9px;
  }

  .node-a { left: 9%; }
  .node-b { right: 9%; }
  .node-c { left: 39%; }
  .node-d { left: 12%; }

  .engine-feed {
    margin-left: 10px;
    margin-right: 10px;
  }

  .engine-feed span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .services-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .posts-hero,
  .news-layout,
  .contact-grid,
  .contact-lines,
  .contact-focus-grid,
  .contact-form-row,
  .portfolio-case-grid,
  .portfolio-study-grid,
  .portfolio-capability-grid,
  .portfolio-process-steps,
  .service-related-grid,
  .services-track-grid,
  .services-process-rail {
    grid-template-columns: 1fr;
  }

  .posts-hero {
    display: block;
    padding: 20px;
  }

  .posts-hero-panel {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 16px;
  }

  .posts-pagination {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .posts-page-numbers {
    justify-content: center;
    flex-wrap: wrap;
  }

  .article-card h2,
  .news-featured-copy h2,
  .news-list-card h3,
  .portfolio-slide h3,
  .service-track-card h3 {
    font-size: clamp(24px, 7.2vw, 31px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .contact-grid {
    padding-top: 72px;
  }

  .contact-intro {
    min-height: 0;
  }

  .contact-lines a,
  .contact-topic-cloud span {
    overflow-wrap: anywhere;
  }

  .ftr {
    overflow: hidden;
  }
}

/* Services layout refinement */
.services-lab-page {
  padding-top: clamp(72px, 6vw, 92px);
  padding-bottom: 96px;
}

.services-lab-hero,
.services-track-section,
.services-data-stage,
.services-packages,
.services-process,
.services-final-cta {
  max-width: 76rem;
}

.services-lab-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(22px, 3.4vw, 40px);
  padding-bottom: 38px;
}

.services-lab-copy h1 {
  max-width: 660px;
  font-size: clamp(42px, 4.7vw, 58px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.services-lab-copy p {
  max-width: 610px;
  font-size: 16px;
  line-height: 1.72;
}

.services-lab-actions {
  margin-top: 26px;
}

.services-lab-engine {
  min-height: 380px;
  box-shadow: 0 22px 54px rgba(36, 88, 163, 0.15);
}

.engine-grid {
  height: 230px;
}

.engine-node {
  width: 76px;
  height: 76px;
  font-size: 11px;
}

.engine-feed {
  margin-bottom: 16px;
}

.services-marquee {
  margin-top: 8px;
}

.services-marquee-group {
  padding-top: 13px;
  padding-bottom: 13px;
}

.services-stack {
  max-width: 76rem;
  margin: 8px auto 0;
  padding: 0 clamp(20px, 3vw, 34px);
}

.services-stack-inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(128, 165, 216, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 247, 255, 0.78));
  box-shadow: 0 14px 34px rgba(36, 88, 163, 0.08);
  padding: 16px;
}

.services-stack-label {
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 9px;
}

.services-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services-stack-grid span,
.services-stack-grid a {
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 999px;
  background: rgba(239, 248, 255, 0.9);
  color: #3c6694;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 9px 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.services-stack-grid a:hover {
  color: #0b6fa4;
  border-color: rgba(11, 111, 164, 0.46);
  background: rgba(255, 255, 255, 0.95);
}

.services-track-section {
  padding-top: clamp(50px, 5vw, 68px);
}

.services-track-section .section-hdr-row {
  margin-bottom: 24px;
}

.services-track-section .section-title {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.services-track-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-track-card,
.service-track-1,
.service-track-2,
.service-track-3,
.service-track-4,
.service-track-5,
.service-track-6 {
  grid-column: auto;
}

.service-track-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: none;
}

.service-track-card::before {
  height: 130px;
  opacity: 0.72;
}

.service-track-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.service-track-head > span {
  font-size: 28px;
}

.service-track-head div {
  justify-content: flex-start;
}

.service-track-card h3 {
  max-width: none;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.12;
  margin-bottom: 12px;
}

.service-track-card p {
  max-width: none;
  font-size: 14px;
  line-height: 1.62;
}

.service-mini-flow {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 22px;
}

.service-mini-flow span {
  text-align: left;
  padding: 10px 11px;
}

.service-track-link {
  margin-top: auto;
  padding-top: 20px;
}

.services-data-stage {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  margin-top: clamp(66px, 6vw, 86px);
}

.data-orchestrator {
  min-height: 340px;
}

.services-process {
  grid-template-columns: 300px minmax(0, 1fr);
  margin-top: clamp(66px, 6vw, 86px);
}

.services-process-rail article {
  min-height: 200px;
  padding: 20px;
}

.services-final-cta {
  margin-top: clamp(66px, 6vw, 86px);
}

@media (max-width: 1040px) {
  .services-lab-hero,
  .services-data-stage,
  .services-process {
    grid-template-columns: 1fr;
  }

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

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

  .services-lab-engine,
  .data-orchestrator {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .services-lab-page {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .services-lab-hero,
  .services-track-section,
  .services-data-stage,
  .services-packages,
  .services-process,
  .services-final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-lab-hero {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .services-lab-copy h1 {
    font-size: clamp(31px, 8.2vw, 38px);
    line-height: 1.1;
  }

  .services-lab-copy p {
    font-size: 15px;
    line-height: 1.58;
  }

  .services-lab-actions {
    margin-top: 20px;
  }

  .services-lab-engine {
    min-height: 282px;
  }

  .services-lab-engine .engine-top {
    padding: 11px 13px;
  }

  .services-lab-engine .engine-grid {
    height: 172px;
  }

  .services-lab-engine .engine-node {
    width: 58px;
    height: 58px;
    font-size: 9px;
  }

  .services-lab-engine .node-a { left: 9%; top: 16%; }
  .services-lab-engine .node-b { right: 9%; top: 17%; }
  .services-lab-engine .node-c { left: 40%; top: 49%; }
  .services-lab-engine .node-d { left: 12%; bottom: 5%; }

  .services-lab-engine .engine-feed {
    gap: 7px;
    margin: 0 12px 12px;
  }

  .services-lab-engine .engine-feed span {
    padding: 8px 10px;
    font-size: 9px;
  }

  .services-marquee {
    margin-top: 0;
  }

  .services-marquee-group {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .services-stack {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-stack-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .services-stack-label {
    padding-top: 0;
  }

  .services-stack-grid span {
    font-size: 10px;
    padding: 8px 10px;
  }

  .services-track-section {
    padding-top: 26px;
  }

  .services-track-section .section-title {
    font-size: clamp(28px, 8vw, 34px);
  }

  .services-track-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-track-card {
    padding: 18px;
  }

  .service-track-head {
    margin-bottom: 16px;
  }

  .service-track-card h3 {
    font-size: clamp(23px, 7vw, 30px);
  }

  .services-data-stage,
  .services-packages,
  .services-process,
  .services-final-cta {
    margin-top: 58px;
  }

  .services-package-grid {
    grid-template-columns: 1fr;
  }

  .services-package-card {
    min-height: 0;
  }

  .services-process-rail article {
    min-height: 0;
  }
}

/* Unified page width */
.hdr-inner,
.mob-nav,
.ftr-inner,
.content,
.subpage-hero,
.subpage-body,
.posts-page,
.article-shell,
.portfolio-page,
.portfolio-lab,
.portfolio-work,
.portfolio-competence,
.portfolio-case-studies,
.portfolio-dppc-focus,
.portfolio-process,
.contact-grid,
.hero-inner,
.proof-strip,
.growth-section,
.product-section,
.case-section,
.seo-faq,
.section,
.tech-inner,
.services-lab-hero,
.services-track-section,
.services-data-stage,
.services-packages,
.services-process,
.services-final-cta,
.services-stack,
.service-detail-hero,
.service-detail-body,
.service-conversion-cta,
.service-related {
  width: 100%;
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
}

.hdr-inner,
.mob-nav,
.ftr-inner,
.content,
.subpage-hero,
.subpage-body,
.posts-page,
.article-shell,
.portfolio-page,
.portfolio-lab,
.portfolio-work,
.portfolio-competence,
.portfolio-case-studies,
.portfolio-dppc-focus,
.portfolio-process,
.contact-grid,
.hero-inner,
.proof-strip,
.growth-section,
.product-section,
.case-section,
.seo-faq,
.section,
.tech-inner,
.services-lab-hero,
.services-track-section,
.services-data-stage,
.services-packages,
.services-process,
.services-final-cta,
.services-stack,
.service-detail-hero,
.service-detail-body,
.service-conversion-cta,
.service-related {
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

@media (min-width: 1281px) {
  .hdr-inner,
  .mob-nav,
  .ftr-inner,
  .content,
  .subpage-hero,
  .subpage-body,
  .posts-page,
  .article-shell,
  .portfolio-page,
  .portfolio-lab,
  .portfolio-work,
  .portfolio-competence,
  .portfolio-case-studies,
  .portfolio-dppc-focus,
  .portfolio-process,
  .contact-grid,
  .hero-inner,
  .proof-strip,
  .growth-section,
  .product-section,
  .case-section,
  .seo-faq,
  .section,
  .tech-inner,
  .services-lab-hero,
  .services-track-section,
  .services-data-stage,
  .services-packages,
  .services-process,
  .services-final-cta,
  .services-stack,
  .service-detail-hero,
  .service-detail-body,
  .service-conversion-cta,
  .service-related {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .hdr-inner,
  .mob-nav,
  .ftr-inner,
  .content,
  .subpage-hero,
  .subpage-body,
  .posts-page,
  .article-shell,
  .portfolio-page,
  .portfolio-lab,
  .portfolio-work,
  .portfolio-competence,
  .portfolio-case-studies,
  .portfolio-dppc-focus,
  .portfolio-process,
  .contact-grid,
  .hero-inner,
  .proof-strip,
  .growth-section,
  .product-section,
  .case-section,
  .seo-faq,
  .section,
  .tech-inner,
  .services-lab-hero,
  .services-track-section,
  .services-data-stage,
  .services-packages,
  .services-process,
  .services-final-cta,
  .services-stack,
  .service-detail-hero,
  .service-detail-body,
  .service-conversion-cta,
  .service-related {
    max-width: 100%;
    padding-left: var(--site-gutter-mobile);
    padding-right: var(--site-gutter-mobile);
  }

  .service-detail-page {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Box spacing polish */
.section-card,
.subpage-panel,
.page-cta,
.news-list-card,
.bc-inner,
.article-seo-bridge,
.article-conversion-cta,
.contact-focus-card,
.contact-card,
.portfolio-case-card,
.portfolio-study-card,
.portfolio-slide,
.portfolio-dppc-focus,
.portfolio-competence,
.portfolio-work,
.service-detail-section,
.service-side-card,
.service-related-card,
.service-outcomes,
.services-stack-inner,
.service-track-card,
.services-package-card,
.growth-item,
.product-module,
.case-card,
.faq-item {
  padding: clamp(22px, 2.5vw, 32px);
}

.news-featured-copy {
  padding: clamp(30px, 4vw, 48px);
}

.service-faq-list details {
  padding: clamp(16px, 2vw, 22px);
}

.posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.bc-card {
  min-height: 100%;
}

@media (max-width: 760px) {
  .section-card,
  .subpage-panel,
  .page-cta,
  .news-list-card,
  .bc-inner,
  .article-seo-bridge,
  .article-conversion-cta,
  .contact-focus-card,
  .contact-card,
  .portfolio-case-card,
  .portfolio-study-card,
  .portfolio-slide,
  .portfolio-dppc-focus,
  .portfolio-competence,
  .portfolio-work,
  .service-detail-section,
  .service-side-card,
  .service-related-card,
  .service-outcomes,
  .services-stack-inner,
  .service-track-card,
  .services-package-card,
  .growth-item,
  .product-module,
  .case-card,
  .faq-item {
    padding: 18px;
  }

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

/* Cookie consent */
.cookie-settings {
  border: 0;
  padding: 0;
  color: #5b7ea8;
  background: transparent;
  font: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-settings:hover {
  color: #38bdf8;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 90;
  width: min(560px, calc(100vw - 36px));
}

.cookie-card {
  overflow: hidden;
  border: 1px solid rgba(128, 165, 216, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(12, 37, 66, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(18px, 3vw, 26px);
}

.cookie-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: #0b6fa4;
  background: rgba(239, 248, 255, 0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-copy h2 {
  margin: 0 0 8px;
  color: #132f4f;
  font-size: 22px;
  line-height: 1.18;
}

.cookie-copy p {
  margin: 0;
  color: #44698f;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(128, 165, 216, 0.46);
  border-radius: 8px;
  background: rgba(246, 251, 255, 0.78);
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0b6fa4;
}

.cookie-toggle strong {
  display: block;
  color: #17365b;
  font-size: 13px;
  margin-bottom: 2px;
}

.cookie-toggle small {
  display: block;
  color: #5b7ea8;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-toggle.is-disabled {
  opacity: 0.82;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-btn {
  min-height: 40px;
  border: 1px solid rgba(128, 165, 216, 0.52);
  border-radius: 8px;
  padding: 0 14px;
  color: #17365b;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.68);
}

.cookie-btn-primary {
  border-color: rgba(56, 189, 248, 0.72);
  color: #ffffff;
  background: linear-gradient(135deg, #0b6fa4, #38bdf8);
}

.cookie-btn-ghost {
  background: rgba(238, 246, 255, 0.72);
}

@media (max-width: 760px) {
  .lead-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: block;
  }

  .lead-dock-primary {
    min-width: 0;
    text-align: center;
  }

  .lead-dock-phone {
    padding: 0 12px;
    font-size: 12px;
  }

  .cookie-consent {
    inset: auto 10px 76px;
    width: auto;
  }

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

  .cookie-btn {
    width: 100%;
  }
}

/* Contact page refinement */
.contact-page-v2 {
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-fast-path {
  border: 1px solid rgba(128, 165, 216, 0.46);
  border-radius: 8px;
  background: rgba(239, 248, 255, 0.76);
  padding: 12px 14px;
  display: grid;
  gap: 3px;
}

.contact-fast-path strong {
  color: #17365b;
  font-size: 13px;
}

.contact-fast-path span {
  color: #557ca5;
  font-size: 12px;
  line-height: 1.45;
}

.contact-page-v2 .contact-intro {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-page-v2 .subpage-title {
  max-width: 780px;
}

.contact-page-v2 .subpage-lead {
  max-width: 720px;
  margin-bottom: 0;
}

.contact-priority-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 6px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(239, 248, 255, 0.88)),
    radial-gradient(circle at 12% 0%, rgba(52, 211, 153, 0.22), transparent 32%);
  box-shadow: 0 18px 44px rgba(20, 83, 45, 0.08);
  overflow: hidden;
}

.contact-priority-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 50%;
  opacity: 0.42;
}

.contact-priority-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #17613a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.contact-priority-card h2 {
  margin: 0;
  max-width: 620px;
  color: #17365b;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}

.contact-priority-card p {
  margin: 12px 0 0;
  max-width: 620px;
  color: #35597f;
  font-size: 14px;
  line-height: 1.7;
}

.contact-priority-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #17365b;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-page-v2 .contact-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.contact-page-v2 .contact-lines a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
}

.contact-page-v2 .contact-lines span {
  color: #6d8db4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-page-v2 .contact-lines strong {
  color: #17365b;
  font-size: 15px;
  line-height: 1.25;
}

.contact-page-v2 .contact-topic-cloud {
  margin-top: 0;
}

.contact-page-v2 .contact-topic-cloud span {
  background: rgba(255, 255, 255, 0.76);
  color: #35597f;
}

.contact-page-v2 .contact-focus-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.contact-page-v2 .contact-focus-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  min-height: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.contact-page-v2 .contact-focus-card small {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
}

.contact-page-v2 .contact-focus-card strong {
  margin: 0;
  font-size: 15px;
}

.contact-page-v2 .contact-focus-card p {
  margin: 0;
}

.contact-steps-v2 {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(128, 165, 216, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(239,248,255,0.72));
}

.contact-steps-v2 p {
  margin: 0;
  color: #17365b;
  font-size: 13px;
  font-weight: 800;
}

.contact-steps-v2 div {
  display: grid;
  gap: 8px;
}

.contact-steps-v2 span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #35597f;
  font-size: 13px;
}

.contact-steps-v2 strong {
  color: #0b6fa4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

@media (max-width: 980px) {
  .contact-priority-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-priority-card a {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .contact-page-v2 {
    gap: 22px;
  }

  .contact-page-v2 .contact-lines {
    grid-template-columns: 1fr;
  }

  .contact-page-v2 .contact-focus-card {
    grid-template-columns: 1fr;
  }

  .contact-page-v2 .contact-focus-card small {
    grid-row: auto;
  }

  .contact-priority-card a {
    width: 100%;
  }
}

/* Privacy page side panel */
.legal-contact-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(128, 165, 216, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-contact-card h2 {
  margin: 0;
  color: #17365b;
  font-size: 20px;
  line-height: 1.15;
}

.legal-contact-card p {
  margin: 0;
  color: #557ca5;
  font-size: 13px;
  line-height: 1.6;
}

.legal-contact-card a {
  color: #0b6fa4;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-analytics-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(239, 248, 255, 0.72);
  color: #35597f;
}

.legal-analytics-note strong {
  color: #17365b;
  font-size: 13px;
}

.legal-analytics-note span {
  font-size: 13px;
  line-height: 1.55;
}
