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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-base);
  line-height: 1.65;
  background: var(--ds-body-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 130ms ease-out vt-out;
}

::view-transition-new(root) {
  animation: 170ms ease-in vt-in;
}

@keyframes vt-out {
  to { opacity: 0; }
}

@keyframes vt-in {
  from { opacity: 0; }
}


body.is-enhanced .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(194, 65, 12, 0.34);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-ink);
  color: var(--ds-cloud);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
}

.page-container {
  width: calc(100% - 2rem);
  max-width: var(--ds-content);
  margin-inline: auto;
}

:root .site-header {
  --ds-muted: #3a4d6b;
  --ds-faint: #4a5f7a;
}

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--ds-header-border);
  border-radius: 0;
  background: var(--ds-header-bg);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
  will-change: transform;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.96);
  transition: opacity var(--ds-motion-fast), transform var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.32);
  transform: translateY(-2px) scale(1.02);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(205px, 0.34fr) auto minmax(0, 1.66fr);
  align-items: center;
  width: 100%;
  min-height: 82px;
  margin-inline: auto;
  gap: clamp(0.55rem, 1.25vw, 1.35rem);
  padding: 0 1.2rem 0 1.35rem;
}

.theme-toggle {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 4.25rem;
  height: 2.25rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface-strong);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
  padding: 0.18rem;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--ds-radius-pill);
}

.theme-toggle-thumb {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ds-blue-deep);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.18);
  transform: translateY(-50%);
  transition: transform var(--ds-motion-base), background var(--ds-motion-base), color var(--ds-motion-base);
}

.theme-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle {
  background: var(--ds-surface-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-thumb {
  background: #0f172a;
  color: var(--ds-cyan);
  transform: translate(1.9rem, -50%);
}

[data-theme="dark"] .theme-sun {
  display: none;
}

[data-theme="dark"] .theme-moon {
  display: block;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: filter var(--ds-motion-base);
}

@keyframes logo-spin {
  to { transform: rotate(360deg); }
}

.brand-mark:hover img {
  animation: logo-spin 0.6s ease;
}

[data-theme="dark"] .brand-mark img {
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(245, 158, 11, 0.14));
}

.brand-name {
  display: block;
  color: var(--ds-ink);
  font-weight: 800;
}

.brand-kicker {
  display: block;
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.18rem, 0.48vw, 0.48rem);
  width: 100%;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-muted);
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  text-align: center;
  transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast), color var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--ds-border-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ds-blue-deep);
  transform: translateY(-1px);
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  display: none;
}

[data-theme="dark"] .nav-links a { color: #c8d0da; }

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a[aria-current="page"] {
  border-color: var(--ds-border-strong);
  background: rgba(30, 24, 22, 0.74);
  color: var(--ds-blue-deep);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.72);
  place-items: center;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--ds-radius-pill);
  background: #172033;
  transition: transform var(--ds-motion-fast), opacity var(--ds-motion-fast);
}

.menu-toggle span + span {
  margin-top: 4px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: clamp(2.1rem, 3.2vw, 3rem) 0 clamp(4rem, 8vw, 7rem);
}

.page-hero {
  padding: clamp(2.1rem, 3.2vw, 3rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-title {
  max-width: 16ch;
  margin: clamp(2.25rem, 3vw, 3rem) 0 0;
  color: var(--ds-ink);
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.page-intro {
  max-width: 68ch;
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  color: var(--ds-ink-soft);
  font-size: var(--ds-text-lg);
}

.page-panel {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(196, 181, 253, 0.18), transparent 34%),
    var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

[data-theme="dark"] .page-panel {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.18), transparent 34%),
    var(--ds-surface);
}

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

.page-kicker-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--ds-muted);
}

.page-kicker-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.62rem;
  border-radius: 50%;
  background: var(--ds-cyan);
  box-shadow: 0 0 18px rgba(194, 65, 12, 0.28);
}

.hero::before {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--ds-muted);
  font-family: var(--ds-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0;
  text-transform: uppercase;
}

[data-theme="dark"] .eyebrow {
  background: none;
  color: var(--ds-cyan);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--ds-cyan);
  flex-shrink: 0;
}

.hero-title,
.section-title,
.cta-title {
  margin: 0;
  color: var(--ds-ink);
  font-family: var(--ds-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-title {
  max-width: 15.5ch;
  margin-top: 2rem;
  font-size: var(--ds-text-2xl);
  line-height: 1.08;
  text-wrap: balance;
}

.section-title,
.cta-title {
  margin-top: clamp(2.25rem, 3.5vw, 3.5rem);
  font-size: var(--ds-text-xl);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.lede {
  max-width: 56ch;
  margin: 2rem 0 0;
  color: var(--ds-ink-soft);
  font-size: var(--ds-text-lg);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-text-sm);
  font-weight: 800;
  padding: 0.92rem 1.3rem;
  transition: transform var(--ds-motion-fast), box-shadow var(--ds-motion-fast), border-color var(--ds-motion-fast), background var(--ds-motion-fast);
}

.button::before {
  display: none;
}

.button:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.button.primary {
  background: var(--ds-blue);
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
}

.button.secondary {
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ds-ink);
}

.button:hover {
  transform: translateY(-2px);
}

[data-theme="dark"] .button.primary {
  color: #172033;
}

[data-theme="dark"] .button.secondary {
  color: #172033;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-meta span {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
  font-weight: 800;
  padding: 0.48rem 0.7rem;
  transition: transform var(--ds-motion-fast), border-color var(--ds-motion-fast), background var(--ds-motion-fast);
}

.hero-meta span:hover {
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-2px);
}

[data-theme="dark"] .hero-meta span {
  border-color: var(--ds-border);
  background: rgba(30, 24, 22, 0.74);
  color: var(--ds-muted);
  box-shadow: none;
}

.glass-card,
.project-card,
.blog-card,
.contact-panel,
.service-card,
.hero-visual,
.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

[data-theme="dark"] .glass-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .contact-panel,
[data-theme="dark"] .service-card,
[data-theme="dark"] .hero-visual,
[data-theme="dark"] .trust-strip span {
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  border-radius: 0;
  min-height: 560px;
  padding: 1.5rem;
  isolation: isolate;
  transition: transform var(--ds-motion-base), box-shadow var(--ds-motion-base), border-color var(--ds-motion-base);
}

.hero-visual * {
  pointer-events: auto;
}

.hero-visual:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 34px 90px rgba(37, 99, 235, 0.18);
  transform: translateY(-3px);
}

.hero-visual::before {
  display: none;
}

.hero-visual::after {
  display: none;
}

[data-theme="dark"] .hero-visual::before {
  border-color: rgba(245, 158, 11, 0.16);
  background:
    linear-gradient(115deg, rgba(245, 158, 11, 0.1), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(167, 139, 250, 0.18), transparent 24%);
}

[data-theme="dark"] .dashboard-card {
  background: rgba(30, 24, 22, 0.72);
}

[data-theme="dark"] .dashboard-card strong,
[data-theme="dark"] .project-preview strong,
[data-theme="dark"] .project-card h3,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .service-card h3 {
  color: var(--ds-ink);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(194, 65, 12, 0.08);
}

.orbit.one {
  inset: 6rem 4rem auto auto;
  width: 15rem;
  height: 15rem;
}

.orbit.two {
  left: 2rem;
  bottom: 4rem;
  width: 18rem;
  height: 18rem;
}

.dashboard-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(37, 54, 83, 0.1);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ds-shadow-soft);
  padding: 1.25rem;
  transition: transform var(--ds-motion-base), border-color var(--ds-motion-base), box-shadow var(--ds-motion-base);
}

.dashboard-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.14);
  transform: translateY(-3px);
}

.dashboard-card.offset {
  width: min(88%, 27rem);
  margin: 3rem 0 0 auto;
}

.dashboard-label,
.blog-meta,
.service-card > span,
.project-preview span {
  color: #172033;
  font-size: var(--ds-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-theme="dark"] .dashboard-label,
[data-theme="dark"] .blog-meta,
[data-theme="dark"] .service-card > span,
[data-theme="dark"] .project-preview span {
  color: var(--ds-cyan);
}

.dashboard-card strong {
  display: block;
  margin-top: 0.9rem;
  color: var(--ds-ink);
  font-size: 1.46rem;
  line-height: 1.18;
}

.dashboard-card p,
.service-card p,
.blog-card p {
  margin: 1rem 0 0;
  color: var(--ds-muted);
}

.project-card p {
  margin: 0.6rem 0 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}

.service-card p,
.blog-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.6;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mini-grid span {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ds-blue-deep);
  font-size: var(--ds-text-xs);
  font-weight: 800;
  padding: 0.72rem;
  text-align: center;
}

[data-theme="dark"] .mini-grid span {
  border-color: var(--ds-border);
  background: rgba(30, 24, 22, 0.74);
  color: var(--ds-ink-soft);
  box-shadow: none;
}

.pipeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
  font-weight: 800;
}

.pipeline-line {
  height: 0.58rem;
  border-radius: var(--ds-radius-pill);
  background: linear-gradient(90deg, var(--ds-blue), var(--ds-cyan));
}

.pipeline-row:nth-child(2) .pipeline-line {
  width: 78%;
  background: linear-gradient(90deg, var(--ds-violet), var(--ds-blue));
}

.pipeline-row:nth-child(3) .pipeline-line {
  width: 64%;
  background: linear-gradient(90deg, var(--ds-mint), var(--ds-cyan));
}

.section-wrapper {
  position: relative;
  padding-block: var(--ds-section);
}

.section-wrapper.compact {
  padding-block: clamp(2.75rem, 4.5vw, 3.75rem);
}

.section-wrapper::before {
  display: none;
}

.section-wrapper:nth-of-type(odd)::before {
  display: none;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 4.8vw, 4.25rem);
}

.section-head.has-aside {
  grid-template-columns: minmax(0, 1fr) auto;
}

.section-copy {
  max-width: 58ch;
  margin: clamp(2.35rem, 3.4vw, 3.35rem) 0 0;
  color: var(--ds-muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.trust-strip span {
  border-radius: var(--ds-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  background: transparent;
  color: var(--ds-muted);
  font-family: var(--ds-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.25;
  padding: 0.85rem;
  text-align: center;
  white-space: normal;
}

[data-theme="dark"] .trust-strip span {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.2);
}

.project-grid,
.service-grid,
.blog-grid {
  display: grid;
  gap: 1.25rem;
}

.content-grid,
.feature-grid,
.proof-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.info-card,
.feature-card,
.timeline-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at bottom right, rgba(167, 243, 208, 0.14), transparent 34%);
  box-shadow: var(--ds-shadow-card);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
}

[data-theme="dark"] .info-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .timeline-card {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(135deg, rgba(30, 24, 22, 0.82), rgba(30, 24, 22, 0.58)),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.1), transparent 34%);
}

.info-card h3,
.feature-card h3,
.timeline-card h3 {
  margin: 0;
  color: var(--ds-ink);
  font-size: 1.16rem;
  line-height: 1.25;
}

.info-card p,
.feature-card p,
.timeline-card p {
  margin: 1rem 0 0;
  color: var(--ds-muted);
}

.info-card ul,
.feature-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ds-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.12fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.form-wrap iframe {
  display: block;
  width: 100%;
  background: white;
}

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

.project-card,
.blog-card,
.service-card {
  position: relative;
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  transition: transform var(--ds-motion-base), box-shadow var(--ds-motion-base), border-color var(--ds-motion-base);
}

.project-card:hover,
.blog-card:hover,
.service-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.16);
  transform: translateY(-4px);
}

.project-card.is-featured {
  border-color: rgba(37, 99, 235, 0.2);
}

.project-card.is-featured .project-preview {
  min-height: auto;
}

.project-card.is-featured .project-preview strong {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}


.project-preview {
  position: relative;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--ds-mist);
  border-bottom: 1px solid var(--ds-border);
}

[data-theme="dark"] .project-preview {
  background: rgba(19, 15, 14, 0.58);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.project-preview strong {
  display: block;
  margin-top: 0.6rem;
  color: var(--ds-ink);
  font-family: var(--ds-font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.35;
  font-weight: 600;
}

.project-body {
  position: relative;
  padding: 1.1rem 1.25rem 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.5rem;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
}

[data-theme="dark"] .service-card {
  background:
    linear-gradient(135deg, rgba(30, 24, 22, 0.82), rgba(30, 24, 22, 0.58)),
    radial-gradient(circle at bottom right, rgba(159, 18, 57, 0.12), transparent 34%),
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 28%);
}

.project-card h3 {
  margin: 0 0 0;
  color: var(--ds-ink);
  font-size: 1.1rem;
  line-height: 1.26;
  text-wrap: balance;
  font-weight: 700;
}

.blog-card h3,
.service-card h3 {
  margin: 1.25rem 0 0;
  color: var(--ds-ink);
  font-size: 1.18rem;
  line-height: 1.26;
  text-wrap: balance;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag-list span {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--ds-radius-pill);
  background: rgba(37, 99, 235, 0.07);
  color: var(--ds-blue-deep);
  font-size: var(--ds-text-xs);
  font-weight: 800;
  padding: 0.38rem 0.62rem;
}

[data-theme="dark"] .tag-list span {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(226, 232, 240, 0.86);
  color: #0b1220;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ds-border);
}

.card-actions a {
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--ds-blue-deep);
  font-size: var(--ds-text-sm);
  font-weight: 800;
}

.service-card {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at bottom right, rgba(180, 83, 9, 0.12), transparent 34%),
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.12), transparent 28%);
}

a.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

a.blog-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 28px 72px rgba(37, 99, 235, 0.14);
}

[data-theme="dark"] a.blog-card:hover {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 28px 72px rgba(245, 158, 11, 0.1);
}

.blog-card {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.15), transparent 34%),
    radial-gradient(circle at bottom left, rgba(240, 171, 252, 0.12), transparent 32%),
    var(--ds-surface);
}

[data-theme="dark"] .blog-card {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 32%),
    var(--ds-surface);
}

.blog-actions {
  margin-top: 2rem;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  border-radius: var(--ds-radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at top left, rgba(194, 65, 12, 0.14), transparent 34%),
    radial-gradient(circle at 55% 8%, rgba(253, 230, 138, 0.13), transparent 28%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 34%),
    radial-gradient(circle at 28% 92%, rgba(167, 243, 208, 0.14), transparent 26%),
    var(--ds-surface);
}

[data-theme="dark"] .contact-panel {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34%),
    radial-gradient(circle at 55% 8%, rgba(96, 165, 250, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.18), transparent 34%),
    radial-gradient(circle at 28% 92%, rgba(159, 18, 57, 0.1), transparent 26%),
    var(--ds-surface);
}

.contact-email {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--ds-blue-deep);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--ds-border);
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  color: var(--ds-muted);
}

.footer-brand > * {
  display: block;
  font-size: var(--ds-text-xs);
  line-height: 1.9;
}

.footer-brand a {
  color: var(--ds-muted);
  transition: color var(--ds-motion-fast);
}

.footer-brand a:hover {
  color: var(--ds-blue);
}

.footer-brand strong {
  display: block;
  color: var(--ds-ink);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}

.footer-links a {
  color: var(--ds-muted);
  font-size: clamp(0.78rem, 0.86vw, 0.92rem);
  font-weight: 700;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--ds-motion-fast), border-color var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ds-cyan), var(--ds-blue), var(--ds-violet));
  opacity: 0;
  transition: opacity var(--ds-motion-fast);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 28px 72px rgba(37, 99, 235, 0.14);
}

.news-card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .news-card {
  border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .news-card:hover {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 28px 72px rgba(245, 158, 11, 0.1);
}

.news-source {
  color: var(--ds-cyan);
  font-size: var(--ds-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="dark"] .news-source {
  color: var(--ds-cyan);
}

.news-card h3 {
  margin: 0;
  color: var(--ds-ink);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.38;
}

.news-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ds-ink-soft);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc.full {
  -webkit-line-clamp: 4;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--ds-motion-fast), background var(--ds-motion-fast), color var(--ds-motion-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--ds-blue);
  color: var(--ds-blue);
  background: rgba(37, 99, 235, 0.06);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-info {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
  font-weight: 500;
  white-space: nowrap;
}

[data-theme="dark"] .pagination-btn {
  background: var(--ds-surface);
  border-color: rgba(148, 163, 184, 0.2);
}

.news-time {
  color: var(--ds-faint);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  margin-top: auto;
}

.news-skeleton {
  min-height: 140px;
  border: 1px solid rgba(37, 54, 83, 0.08);
  border-radius: var(--ds-radius-lg);
  background: linear-gradient(90deg, rgba(37, 54, 83, 0.04) 25%, rgba(37, 54, 83, 0.08) 50%, rgba(37, 54, 83, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

[data-theme="dark"] .news-skeleton {
  border-color: rgba(148, 163, 184, 0.1);
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.04) 25%, rgba(148, 163, 184, 0.08) 50%, rgba(148, 163, 184, 0.04) 75%);
  background-size: 200% 100%;
}

/* ── News filters ─────────────────────────────────────────────────────────── */
.news-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.news-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.news-filter-label {
  font-size: var(--ds-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ds-ink-muted);
  margin-right: 0.2rem;
  flex-shrink: 0;
}

.news-filter-btn {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--ds-motion-fast), color var(--ds-motion-fast), background var(--ds-motion-fast);
}

.news-filter-btn:hover {
  border-color: var(--ds-blue);
  color: var(--ds-blue);
  background: rgba(37, 99, 235, 0.06);
}

.news-filter-btn.active {
  border-color: rgba(34, 197, 94, 0.35);
  color: #16a34a;
  background: rgba(34, 197, 94, 0.07);
  font-weight: 500;
}

[data-theme="dark"] .news-filter-btn {
  background: var(--ds-surface);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .news-filter-btn.active {
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
  background: rgba(74, 222, 128, 0.07);
}

.news-cat-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-cyan);
  margin-bottom: 0.15rem;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-sm);
}

.news-feed-shell {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.news-console {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-strong);
  box-shadow: var(--ds-shadow-soft);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.news-console-head,
.news-search-row,
.news-card-top,
.news-card-meta,
.news-card-bottom,
.news-results-head,
.news-source-group-head,
.news-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.news-console-head {
  flex-wrap: wrap;
}

.news-console-head strong {
  display: block;
  color: var(--ds-ink);
  font-size: 1.08rem;
}

.news-console-label,
.news-panel-label,
.news-updated,
.news-tier {
  color: var(--ds-muted);
  font-family: var(--ds-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.news-search-row {
  align-items: stretch;
  flex-wrap: wrap;
}

.news-search {
  flex: 1 1 22rem;
}

.news-search input,
.news-select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: inherit;
  font-size: var(--ds-text-sm);
  padding: 0.7rem 0.9rem;
}

.news-select-wrap {
  display: grid;
  gap: 0.35rem;
  flex: 0 1 18rem;
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
  font-weight: 700;
}

.news-select-wrap--sm {
  flex-basis: 10.5rem;
}

.news-search-row .news-select-wrap {
  min-width: min(100%, 10rem);
}

.news-search-row .news-select-wrap:not(.news-select-wrap--sm) {
  min-width: min(100%, 15rem);
}

.news-select-wrap span {
  color: var(--ds-ink-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-console .news-filters {
  gap: 0.5rem;
  margin: 0;
}

.news-console .news-filter-label,
.news-feed-shell .news-source {
  letter-spacing: 0;
}

.news-filter-btn span {
  color: var(--ds-faint);
  font-size: 0.72rem;
  margin-left: 0.2rem;
}

.news-briefing {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.news-briefing-main,
.news-briefing-side,
.news-lane,
.news-source-group {
  min-width: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
  padding: 1rem;
}

.news-panel-label {
  display: block;
  margin-bottom: 0.65rem;
}

.news-card {
  min-width: 0;
}

.news-card--featured {
  min-height: 0;
}

.news-card-top,
.news-card-meta,
.news-card-bottom {
  flex-wrap: wrap;
}

.news-card-meta {
  justify-content: flex-start;
}

.news-feed-shell .news-card h3 {
  font-size: 1rem;
}

.news-card--featured h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
}

.news-feed-shell .news-desc {
  flex: 0 1 auto;
}

.news-feed-shell .news-desc.full {
  -webkit-line-clamp: 3;
}

.news-card--expanded .news-desc.full {
  -webkit-line-clamp: 6;
}

.news-card--featured .news-desc.full {
  -webkit-line-clamp: 10;
}

.news-priority {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--ds-radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: var(--ds-blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
}

.news-card--critical .news-priority {
  border-color: rgba(220, 38, 38, 0.26);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.news-card--high .news-priority {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}

.news-card--watch .news-priority {
  border-color: rgba(5, 150, 105, 0.25);
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
}

.news-card--duplicate .news-priority {
  border-color: rgba(100, 116, 139, 0.24);
  background: rgba(100, 116, 139, 0.08);
  color: var(--ds-muted);
}

.news-feed-shell .news-cat-badge {
  display: inline-flex;
  margin: 0;
  color: var(--ds-blue);
  letter-spacing: 0;
}

.news-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-signal-list span,
.news-tier {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.44);
  padding: 0.16rem 0.5rem;
}

.news-signal-list span {
  color: var(--ds-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.news-compact-list {
  display: grid;
  gap: 0.55rem;
}

.news-compact-item {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(37, 54, 83, 0.1);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, 0.38);
  color: inherit;
  padding: 0.72rem 0.8rem;
  transition: border-color var(--ds-motion-fast), background var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.news-compact-item:hover {
  border-color: var(--ds-border-strong);
  background: var(--ds-surface-strong);
  transform: translateY(-2px);
}

.news-compact-item span,
.news-compact-item small {
  color: var(--ds-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.news-compact-item strong {
  color: var(--ds-ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

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

.news-lane h3,
.news-source-group h3 {
  margin: 0;
  color: var(--ds-ink);
  font-size: 1rem;
}

.news-lane-head,
.news-source-group-head {
  margin-bottom: 0.8rem;
}

.news-lane-head span,
.news-source-group-head span {
  color: var(--ds-faint);
  font-family: var(--ds-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.news-results-head {
  margin-top: 0.35rem;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  font-weight: 700;
}

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

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

.news-source-rows {
  display: grid;
  gap: 0.55rem;
}

.news-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  border-top: 1px solid var(--ds-border);
  padding-top: 0.7rem;
}

.news-source-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-source-row strong {
  color: var(--ds-ink);
  font-size: 0.92rem;
}

.news-source-row p {
  margin: 0.22rem 0 0;
  color: var(--ds-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.news-source-row > span {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.52rem;
  white-space: nowrap;
}

[data-theme="dark"] .news-console,
[data-theme="dark"] .news-briefing-main,
[data-theme="dark"] .news-briefing-side,
[data-theme="dark"] .news-lane,
[data-theme="dark"] .news-source-group {
  border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .news-search input,
[data-theme="dark"] .news-select,
[data-theme="dark"] .news-compact-item,
[data-theme="dark"] .news-signal-list span,
[data-theme="dark"] .news-tier {
  background: rgba(30, 24, 22, 0.46);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .news-card--critical .news-priority {
  color: #fca5a5;
}

[data-theme="dark"] .news-card--high .news-priority {
  color: #fbbf24;
}

[data-theme="dark"] .news-card--watch .news-priority {
  color: #6ee7b7;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.post-article {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem);
}

.post-nav-back {
  display: block;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: color var(--ds-motion-fast);
}

.post-nav-back:hover {
  color: var(--ds-blue);
}

.post-header {
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--ds-border);
}

.post-header .page-title {
  max-width: 100%;
}

.post-meta {
  margin-top: 1rem;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  font-weight: 600;
}

.post-body {
  min-width: 0;
  color: var(--ds-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.82;
}

.post-body h2 {
  margin: 2.5rem 0 0.9rem;
  color: var(--ds-ink);
  font-family: var(--ds-font-display);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.post-body h3 {
  margin: 2rem 0 0.65rem;
  color: var(--ds-ink);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-body p {
  margin: 0 0 1.4rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body a {
  color: var(--ds-blue);
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: color var(--ds-motion-fast), border-color var(--ds-motion-fast);
}

.post-body a:hover {
  color: var(--ds-blue-deep);
  border-bottom-color: var(--ds-blue);
}

[data-theme="dark"] .post-body a {
  color: var(--ds-cyan);
  border-bottom-color: rgba(245, 158, 11, 0.35);
}

.post-body code {
  font-family: var(--ds-font-mono);
  font-size: 0.875em;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 5px;
  padding: 0.18em 0.42em;
}

.post-body pre {
  margin-bottom: 1.4rem;
  padding: 1.25rem;
  overflow-x: auto;
  background: rgba(30, 24, 22, 0.05);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.92em;
}

[data-theme="dark"] .post-body code {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.16);
}

[data-theme="dark"] .post-body pre {
  background: rgba(19, 15, 14, 0.62);
}

.post-body blockquote {
  margin: 0 0 1.4rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--ds-cyan);
  color: var(--ds-muted);
  font-style: italic;
}

@keyframes drift {
  from {
    transform: rotate(0deg) translateX(0.5rem) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(0.5rem) rotate(-360deg);
  }
}

@keyframes gradient-breathe {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-1.5rem, 1rem, 0) rotate(4deg);
  }
}

@keyframes glow-slide {
  from {
    transform: translateX(-1rem) scale(0.96);
  }
  to {
    transform: translateX(1.25rem) scale(1.04);
  }
}

/* ─── Profile identity ─────────────────────────────────────────────────────── */

.hero-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid transparent;
  background-image: linear-gradient(var(--ds-surface), var(--ds-surface)),
                    linear-gradient(135deg, #2563eb, #7c3aed 60%, #c2410c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.hero-photo-name {
  display: block;
  font-size: var(--ds-text-base);
  font-weight: 700;
  color: var(--ds-ink);
  line-height: 1.2;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--ds-radius-pill);
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.available-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b45309;
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

[data-theme="dark"] .available-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ─── Tech stack grid ──────────────────────────────────────────────────────── */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.85rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem 0.5rem 0.9rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  text-align: center;
  cursor: default;
  transition: border-color var(--ds-motion-fast), transform var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
}

.tech-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.tech-item img {
  width: 34px;
  height: 34px;
}

.tech-item span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ds-muted);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .tech-item {
  border-color: rgba(148, 163, 184, 0.15);
}

/* ─── Skills categories ────────────────────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.skills-category {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.skills-category h4 {
  margin: 0 0 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

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

.skills-category li {
  font-size: var(--ds-text-xs);
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--ds-radius-pill);
  background: rgba(37, 99, 235, 0.06);
  color: var(--ds-ink-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .skills-category li {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.15);
  color: var(--ds-ink-soft);
}

/* ─── Project card image header ────────────────────────────────────────────── */

.project-card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--ds-radius-xl) - 2px) calc(var(--ds-radius-xl) - 2px) 0 0;
}

.project-card.has-image {
  padding-top: 0;
}

.project-card.has-image .project-preview {
  border-radius: 0;
}

/* ─── Social icon buttons ──────────────────────────────────────────────────── */

.social-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  color: var(--ds-ink-soft);
  font-size: var(--ds-text-xs);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--ds-motion-fast), color var(--ds-motion-fast), background var(--ds-motion-fast);
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--ds-blue);
  color: var(--ds-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* ─── Resume photo variant ─────────────────────────────────────────────────── */

.resume-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid transparent;
  background-image: linear-gradient(var(--ds-surface), var(--ds-surface)),
                    linear-gradient(135deg, #2563eb, #7c3aed 60%, #c2410c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18);
  display: block;
  margin-bottom: 1rem;
}

/* ─── Hero blog feed ────────────────────────────────────────────────────────── */

.hero-blog-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.hero-blog-label {
  font-size: var(--ds-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.hero-blog-featured {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
  transition: transform var(--ds-motion-fast), box-shadow var(--ds-motion-fast), border-color var(--ds-motion-fast);
}

.hero-blog-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.16);
}

[data-theme="dark"] .hero-blog-featured {
  border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .hero-blog-featured:hover {
  border-color: rgba(245, 158, 11, 0.28);
}

.hero-blog-img-wrap {
  height: 185px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1));
}

.hero-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 440ms ease;
}

.hero-blog-featured:hover .hero-blog-img-wrap img {
  transform: scale(1.04);
}

.hero-blog-text {
  padding: 1rem 1.1rem 1.2rem;
}

.hero-blog-cat {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-cyan);
}

.hero-blog-text h3 {
  margin: 0.45rem 0 0;
  color: var(--ds-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.36;
}

.hero-blog-text p {
  margin: 0.45rem 0 0;
  color: var(--ds-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-blog-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-blog-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ds-motion-fast), background var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.hero-blog-row:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.04);
  transform: translateX(2px);
}

[data-theme="dark"] .hero-blog-row {
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .hero-blog-row:hover {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(124, 58, 237, 0.06);
}

.hero-blog-row-img {
  width: 50px;
  height: 50px;
  border-radius: var(--ds-radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-blog-row-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-cyan);
}

.hero-blog-row-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ds-ink);
  margin-top: 0.2rem;
}

/* Professional refinement: keeps the interface serious without changing layout or data rendering. */
body {
  line-height: 1.62;
}

.page-container {
  width: calc(100% - clamp(2rem, 5vw, 4rem));
}

.page-title {
  max-width: 18ch;
  margin-top: clamp(1.6rem, 2.3vw, 2.35rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-title,
.cta-title {
  margin-top: clamp(1.45rem, 2.5vw, 2.4rem);
  max-width: 24ch;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.18;
}

.page-intro,
.lede,
.section-copy {
  max-width: 64ch;
  color: var(--ds-ink-soft);
  line-height: 1.66;
}

.page-intro {
  margin-top: clamp(1.15rem, 2vw, 1.75rem);
}

.lede {
  margin-top: 1.35rem;
}

.section-copy {
  margin-top: clamp(1.35rem, 2.2vw, 2rem);
}

.eyebrow,
.dashboard-label,
.blog-meta,
.service-card > span,
.project-preview span,
.blog-dir-label,
.post-related-eyebrow,
.post-toc-title {
  letter-spacing: 0.08em;
}

.button {
  min-height: 46px;
  font-weight: 720;
  padding: 0.78rem 1.05rem;
}

.button.primary {
  box-shadow: 0 10px 24px rgba(31, 95, 191, 0.18);
}

.button.secondary {
  background: var(--ds-surface-strong);
}

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

.page-panel,
.glass-card,
.project-card,
.blog-card,
.contact-panel,
.service-card,
.info-card,
.feature-card,
.hero-visual,
.hero-blog-featured,
.hero-blog-row,
.tech-item,
.news-card,
.trust-strip span {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface-strong);
  box-shadow: var(--ds-shadow-card);
}

[data-theme="dark"] .page-panel,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .contact-panel,
[data-theme="dark"] .service-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .hero-visual,
[data-theme="dark"] .hero-blog-featured,
[data-theme="dark"] .hero-blog-row,
[data-theme="dark"] .tech-item,
[data-theme="dark"] .news-card,
[data-theme="dark"] .trust-strip span {
  border-color: var(--ds-border);
  background: var(--ds-surface-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.project-card:hover,
.blog-card:hover,
.service-card:hover,
.feature-card:hover,
.info-card:hover,
.hero-blog-featured:hover,
.hero-blog-row:hover,
.tech-item:hover,
.news-card:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-card);
  transform: translateY(-1px);
}

.project-card,
.blog-card,
.service-card,
.info-card,
.feature-card,
.news-card {
  color: var(--ds-ink-soft);
}

.project-card h3,
.blog-card h3,
.service-card h3,
.info-card h3,
.feature-card h3,
.news-card h3 {
  color: var(--ds-ink);
  letter-spacing: 0;
}

.project-card p,
.blog-card p,
.service-card p,
.info-card p,
.feature-card p,
.news-desc {
  color: var(--ds-muted);
  line-height: 1.6;
}

.page-panel {
  position: relative;
  overflow: hidden;
}

.page-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #9f1239, #f59e0b);
}

.service-card,
.info-card {
  --ds-card-accent: #7c3aed;
  --ds-card-accent-rgb: 124, 58, 237;
}

.service-card:nth-child(2),
.info-card:nth-child(2) {
  --ds-card-accent: #d97706;
  --ds-card-accent-rgb: 217, 119, 6;
}

.service-card:nth-child(3),
.info-card:nth-child(3) {
  --ds-card-accent: #9f1239;
  --ds-card-accent-rgb: 159, 18, 57;
}

.service-card:nth-child(4),
.info-card:nth-child(4) {
  --ds-card-accent: #c2410c;
  --ds-card-accent-rgb: 194, 65, 12;
}

.service-card:nth-child(5) {
  --ds-card-accent: #6d28d9;
  --ds-card-accent-rgb: 109, 40, 217;
}

.service-card:nth-child(6) {
  --ds-card-accent: #a16207;
  --ds-card-accent-rgb: 161, 98, 7;
}

.service-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ds-card-accent);
}

.service-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  border: 1px solid rgba(var(--ds-card-accent-rgb), 0.28);
  border-radius: var(--ds-radius-md);
  background: rgba(var(--ds-card-accent-rgb), 0.1);
  color: var(--ds-card-accent);
  padding: 0.34rem 0.5rem;
}

.info-card h3 {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.info-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.28rem;
  border-radius: 2px;
  background: var(--ds-card-accent);
}

.service-grid--full .service-card p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .info-card {
  --ds-card-accent: #c4b5fd;
  --ds-card-accent-rgb: 196, 181, 253;
}

[data-theme="dark"] .service-card:nth-child(2),
[data-theme="dark"] .info-card:nth-child(2) {
  --ds-card-accent: #fbbf24;
  --ds-card-accent-rgb: 251, 191, 36;
}

[data-theme="dark"] .service-card:nth-child(3),
[data-theme="dark"] .info-card:nth-child(3) {
  --ds-card-accent: #fb7185;
  --ds-card-accent-rgb: 251, 113, 133;
}

[data-theme="dark"] .service-card:nth-child(4),
[data-theme="dark"] .info-card:nth-child(4) {
  --ds-card-accent: #fdba74;
  --ds-card-accent-rgb: 253, 186, 116;
}

[data-theme="dark"] .service-card:nth-child(5) {
  --ds-card-accent: #d8b4fe;
  --ds-card-accent-rgb: 216, 180, 254;
}

[data-theme="dark"] .service-card:nth-child(6) {
  --ds-card-accent: #f59e0b;
  --ds-card-accent-rgb: 245, 158, 11;
}

.project-grid,
.service-grid,
.blog-grid,
.content-grid,
.feature-grid,
.proof-grid {
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

.page-panel,
.contact-panel,
.info-card,
.feature-card,
.service-card,
.project-body,
.blog-card-body {
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.project-preview {
  padding: clamp(1rem, 1.8vw, 1.25rem);
}

.tag-list span,
.hero-meta span,
.trust-strip span,
.news-cat-badge,
.available-badge,
.blog-filter-btn {
  font-weight: 700;
}

.project-card.is-featured,
.available-badge,
.news-card--critical,
.news-card--high,
.news-card--watch {
  background-image: none;
}

.news-card::before,
.available-badge::before {
  display: none;
}

.tag-list span,
.hero-meta span,
.trust-strip span,
.news-cat-badge,
.available-badge,
.blog-filter-btn {
  border-radius: var(--ds-radius-md);
  box-shadow: none;
}

[data-theme="dark"] .button.primary {
  color: #15110f;
}

[data-theme="dark"] .button.secondary {
  border-color: var(--ds-border);
  background: rgba(30, 24, 22, 0.92);
  color: var(--ds-ink);
}

[data-theme="dark"] .site-header {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .page-intro,
[data-theme="dark"] .lede,
[data-theme="dark"] .section-copy,
[data-theme="dark"] .project-card p,
[data-theme="dark"] .blog-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .info-card p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .page-kicker-list li,
[data-theme="dark"] .news-desc {
  color: var(--ds-muted);
}

[data-theme="dark"] .tag-list span,
[data-theme="dark"] .hero-meta span,
[data-theme="dark"] .trust-strip span,
[data-theme="dark"] .news-cat-badge {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(159, 18, 57, 0.12);
  color: #fee7d2;
}

[data-theme="dark"] .blog-filter-bar .blog-filter-btn {
  border-color: var(--ds-border);
  background: rgba(30, 24, 22, 0.9);
  color: var(--ds-ink-soft);
}

[data-theme="dark"] .blog-filter-btn:hover,
[data-theme="dark"] .blog-filter-btn.is-active {
  background: var(--ds-blue);
  color: #15110f;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  body.is-enhanced .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    width: 100%;
    border-radius: 0;
  }

  .header-inner,
  .hero-grid,
  .page-hero-grid,
  .section-head,
  .contact-panel,
  .footer-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    padding-block: 0.75rem;
    padding-inline: 1rem;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav-links {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
  }

  .nav-links.is-open {
    max-height: 32rem;
    opacity: 1;
    padding: 0.5rem 0 0.75rem;
    pointer-events: auto;
  }

  .nav-links a {
    min-height: 46px;
    padding-inline: 0.85rem;
    text-align: left;
  }

  .hero-visual {
    min-height: 440px;
  }

  .trust-strip,
  .project-grid,
  .service-grid,
  .blog-grid,
  .feature-grid,
  .content-grid.two,
  .proof-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-briefing,
  .news-lanes,
  .news-source-board {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-container,
  .header-inner {
    width: calc(100% - 1rem);
    max-width: var(--ds-content);
  }

  .page-container,
  .page-panel,
  .news-console,
  .news-briefing,
  .news-briefing-main,
  .news-briefing-side,
  .news-lane,
  .news-source-group,
  .news-card,
  .news-compact-item {
    max-width: 100%;
  }

  .page-hero-grid,
  .section-head,
  .news-search-row,
  .news-filter-group {
    min-width: 0;
  }

  .page-title,
  .page-intro,
  .page-kicker-list li,
  .news-card h3,
  .news-desc,
  .news-compact-item strong {
    overflow-wrap: anywhere;
  }

  .page-panel,
  .news-console {
    padding-inline: 1rem;
  }

  .brand-mark img {
    width: 48px;
    height: 48px;
  }

  .brand-kicker {
    max-width: 17ch;
  }

  .hero,
  .page-hero {
    padding-top: 1.8rem;
  }

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

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .project-grid,
  .service-grid,
  .blog-grid,
  .feature-grid,
  .content-grid.two,
  .proof-grid,
  .news-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .news-list,
  .news-source-row {
    grid-template-columns: 1fr;
  }

  .news-console-head,
  .news-results-head,
  .news-card-top,
  .news-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-select-wrap {
    flex-basis: 100%;
  }

  .pipeline-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pipeline-line {
    width: 100% !important;
  }
}

/* ==========================================================================
   Blog filter bar & pagination (migrated from blog.html inline styles)
   ========================================================================== */

.blog-dir-section { margin-bottom: 1.5rem; }
.blog-dir-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin-bottom: .6rem; }
.blog-filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; }
.blog-filter-btn { font: inherit; cursor: pointer; border: 1px solid var(--border, #d1d5db); background: transparent; border-radius: 20px; padding: .3rem .85rem; font-size: .8rem; color: var(--text, #111); line-height: 1.4; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.blog-filter-btn--sm { font-size: .75rem; padding: .25rem .7rem; }
.blog-filter-btn:hover, .blog-filter-btn.is-active { background: var(--accent, #2563eb); color: #fff; border-color: transparent; transform: translateY(-1px); }
.blog-filter-count { opacity: .7; font-size: .75em; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.blog-meta-date, .blog-meta-read { font-size: .75rem; opacity: .55; }
[data-blog-pagination] { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
[data-theme="dark"] .blog-filter-btn { border-color: transparent; color: #1e293b; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+1) { background: #f7d7b5; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+2) { background: #e9d5ff; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+3) { background: #fecdd3; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+4) { background: #fde68a; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+5) { background: #e9c8b0; }
[data-theme="dark"] .blog-filter-bar .blog-filter-btn:nth-child(6n+6) { background: #ddd6fe; }
[data-theme="dark"] .blog-filter-btn:hover:not(.is-active) { filter: brightness(0.86); color: #1e293b; }
[data-theme="dark"] .blog-filter-btn.is-active { background: #fde68a; color: #1e293b; border-color: transparent; font-weight: 600; filter: none; }

/* ==========================================================================
   Blog post article layout (migrated from _includes/post-layout.njk inline styles)
   ========================================================================== */

.post-header-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.article-id { font-family: 'JetBrains Mono', monospace; font-size: .7rem; background: var(--surface-alt, #f1f5f9); border: 1px solid var(--border, #e5e7eb); border-radius: 4px; padding: .15rem .45rem; opacity: .6; letter-spacing: .03em; }
[data-theme="dark"] .article-id { background: rgba(30,41,59,.6); border-color: rgba(148,163,184,.15); }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; opacity: .6; font-size: .85rem; margin-top: .5rem; }

.post-breadcrumb { font-size: .8rem; opacity: .55; margin-bottom: 1.25rem; }
.post-breadcrumb a { color: inherit; text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb span[aria-current] { font-weight: 500; }

.post-layout-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.75rem;
  align-items: start;
  margin-top: 1.5rem;
}
.post-sidebar {
  position: static;
  min-width: 0;
}
.post-layout-body > .post-body {
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}

.post-tldr { background: var(--surface-alt, #f1f5f9); border-left: 3px solid var(--accent, #2563eb); border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; margin-top: 1.25rem; margin-bottom: 1.5rem; }
.post-tldr-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .5; margin-bottom: .35rem; font-family: 'Inter', sans-serif; }
.post-tldr p { font-family: 'Inter', sans-serif; font-size: .925rem; line-height: 1.65; margin: 0; }
[data-theme="dark"] .post-tldr { background: rgba(30,41,59,.55); border-left-color: #38bdf8; }

.post-toc { background: var(--surface-alt, #f1f5f9); border-radius: 8px; padding: .9rem 1.1rem; font-size: .82rem; }
.post-toc-title { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .5; margin-bottom: .6rem; }
.post-toc ol { margin: 0; padding-left: 1.1rem; }
.post-toc li { margin: .3rem 0; line-height: 1.4; }
.post-toc li.toc-h3 { padding-left: .65rem; font-size: .79rem; }
.post-toc a { color: var(--accent, #2563eb); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }
[data-theme="dark"] .post-toc { background: rgba(30,41,59,.55); }

.post-body { counter-reset: section-counter 0 figure-counter 0; }
.post-body h2 { counter-increment: section-counter; counter-reset: subsection-counter 0; }
.post-body h2::before { content: counter(section-counter) ". "; font-family: 'JetBrains Mono', monospace; font-size: .75em; font-weight: 500; opacity: .35; letter-spacing: -.02em; }
.post-body h3 { counter-increment: subsection-counter; }
.post-body h3::before { content: counter(section-counter) "." counter(subsection-counter) " "; font-family: 'JetBrains Mono', monospace; font-size: .73em; font-weight: 500; opacity: .35; }

.post-body figure { counter-increment: figure-counter; margin: 1.75rem 0; }
.post-body figcaption { font-size: .82rem; opacity: .7; margin-top: .5rem; font-style: italic; }
.post-body figcaption::before { content: "Figure " counter(figure-counter) ": "; font-weight: 700; font-style: normal; }

.post-body p, .post-body li, .post-body blockquote { font-family: 'Lora', Georgia, serif; line-height: 1.8; }
.post-body code { font-family: 'JetBrains Mono', monospace; font-size: .875em; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { font-family: 'Inter', sans-serif; }

.code-block-wrap { position: relative; }
.code-lang-label { position: absolute; top: .55rem; left: .85rem; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .45; font-family: 'JetBrains Mono', monospace; pointer-events: none; }
.code-copy-btn { position: absolute; top: .4rem; right: .5rem; font: inherit; font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: rgba(255,255,255,.65); border-radius: 4px; padding: .2rem .55rem; transition: background .15s, color .15s; }
.code-copy-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.code-copy-btn.copied { background: #059669; border-color: #059669; color: #fff; }

.post-meta-actions { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.post-cite-wrap { position: relative; display: inline-block; }
.post-cite-btn { font: inherit; font-size: .78rem; font-weight: 500; border: 1px solid var(--border, #d1d5db); background: transparent; border-radius: 6px; padding: .28rem .65rem; cursor: pointer; color: var(--text, #111); transition: background .15s; }
.post-cite-btn:hover { background: var(--surface-alt, #f1f5f9); }
[data-theme="dark"] .post-cite-btn { border-color: rgba(148,163,184,.25); color: var(--text); }
[data-theme="dark"] .post-cite-btn:hover { background: rgba(30,41,59,.5); }
.post-cite-popover { display: none; position: absolute; bottom: calc(100% + .6rem); left: 0; min-width: 340px; max-width: 90vw; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 1.1rem 1.1rem .9rem; box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 200; }
.post-cite-popover.is-open { display: block; }
.post-cite-section { margin-bottom: .75rem; }
.post-cite-section:last-child { margin-bottom: 0; }
.post-cite-format { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .5; margin: 0 0 .3rem; }
.post-cite-text { font-family: 'JetBrains Mono', monospace; font-size: .72rem; line-height: 1.55; background: var(--surface-alt, #f1f5f9); border-radius: 5px; padding: .5rem .65rem; margin-bottom: .45rem; white-space: pre-wrap; word-break: break-all; }
.post-cite-copy { font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; border: none; background: var(--accent, #2563eb); color: #fff; border-radius: 4px; padding: .22rem .55rem; transition: opacity .15s; }
.post-cite-copy:hover { opacity: .85; }
.post-cite-copy.copied { background: #059669; }
[data-theme="dark"] .post-cite-popover { background: #0f172a; border-color: rgba(148,163,184,.2); }
[data-theme="dark"] .post-cite-text { background: rgba(30,41,59,.65); }

.post-author-bio { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; margin: 2.5rem 0 0; border-top: 1px solid var(--border, #e5e7eb); }
.author-avatar { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent, #2563eb); color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.author-name { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.author-desc { margin: 0 0 .6rem; font-size: .85rem; line-height: 1.55; opacity: .75; font-family: 'Inter', sans-serif; }
.author-cta { font-size: .8rem; font-weight: 600; color: var(--accent, #2563eb); text-decoration: none; }
.author-cta:hover { text-decoration: underline; }

.post-related { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border, #e5e7eb); }
.post-related-eyebrow { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .5; margin-bottom: 1rem; }
.post-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.post-related-card { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: .85rem 1rem; text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-related-card:hover { border-color: var(--accent, #2563eb); box-shadow: 0 4px 16px rgba(37,99,235,.1); transform: translateY(-2px); }
.post-related-cat { font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent, #2563eb); opacity: .85; margin: 0 0 .3rem; }
.post-related-title-text { font-size: .875rem; font-weight: 600; line-height: 1.45; margin: 0; }
[data-theme="dark"] .post-related-card { border-color: rgba(148,163,184,.18); }
[data-theme="dark"] .post-related-card:hover { border-color: #38bdf8; box-shadow: 0 4px 16px rgba(56,189,248,.1); }

.post-prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 3rem; flex-wrap: wrap; border-top: 1px solid var(--border, #e5e7eb); padding-top: 1.25rem; }
.prevnext-link { font-size: .85rem; font-weight: 500; color: var(--accent, #2563eb); text-decoration: none; max-width: 46%; line-height: 1.5; }
.prevnext-link:hover { text-decoration: underline; }
.prevnext-older { margin-left: auto; text-align: right; }
.prevnext-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .5; margin-bottom: .2rem; color: var(--text, #111); }

.post-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.5rem 0; }
.post-body th { text-align: left; font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; padding: .5rem .75rem; border-bottom: 2px solid var(--border, #e5e7eb); }
.post-body td { padding: .6rem .75rem; border-bottom: 1px solid var(--border, #e5e7eb); font-family: 'Lora', Georgia, serif; line-height: 1.5; vertical-align: top; }
.post-body td code { font-family: 'JetBrains Mono', monospace; font-size: .82rem; background: var(--surface-alt, #f1f5f9); padding: .1rem .35rem; border-radius: 3px; }
.post-body tr:last-child td { border-bottom: none; }
[data-theme="dark"] .post-body th { border-bottom-color: rgba(148,163,184,.2); }
[data-theme="dark"] .post-body td { border-bottom-color: rgba(148,163,184,.1); }
[data-theme="dark"] .post-body td code { background: rgba(30,41,59,.6); }

.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.75rem auto; display: block; }
.post-body figure { margin: 2rem 0; }
.post-body figure img { margin: 0 auto .6rem; }

.post-body .video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin: 1.75rem 0; background: #000; }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body .media-caption { text-align: center; font-family: 'Inter', sans-serif; font-size: .82rem; opacity: .6; margin-top: -.75rem; margin-bottom: 1.5rem; font-style: italic; }

/* Blog readability polish: dense, readable, security-publication tone. */
[data-blog-directory] {
  max-width: 100%;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-meta {
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.7rem;
  color: var(--ds-muted);
}

.blog-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.02rem, 1.08vw, 1.14rem);
  line-height: 1.32;
  letter-spacing: 0;
}

.blog-card p {
  color: var(--ds-muted);
  line-height: 1.58;
}

.blog-grid[data-blog-all] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-grid[data-blog-all] .blog-card-body {
  padding: 1.1rem;
}

.blog-grid[data-blog-all] .blog-card h3 {
  font-size: 1.02rem;
}

.blog-grid[data-blog-all] .blog-card p {
  font-size: 0.92rem;
}

.post-article {
  max-width: min(var(--ds-content), 1160px);
}

.post-header {
  max-width: 76ch;
}

.post-header .page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.post-tldr {
  max-width: 76ch;
}

.post-layout-body {
  grid-template-columns: minmax(0, 76ch) minmax(210px, 240px);
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.post-sidebar {
  position: sticky;
  top: 1.25rem;
}

.post-article--latest .post-sidebar {
  position: static;
  top: auto;
}

.post-body {
  font-size: 1.03rem;
  line-height: 1.76;
}

.post-body p,
.post-body li {
  line-height: 1.76;
}

.post-body h2 {
  margin-top: 2.7rem;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.2;
}

.post-body h3 {
  margin-top: 2.1rem;
  line-height: 1.32;
}

.post-toc {
  border: 1px solid var(--ds-border);
}

.post-toc a {
  color: var(--ds-blue-deep);
}

[data-theme="dark"] .post-article,
[data-theme="dark"] [data-blog-directory],
[data-theme="dark"] [data-blog-all],
[data-theme="dark"] [data-blog-pagination] {
  color: #cdd8e7;
}

[data-theme="dark"] .post-header,
[data-theme="dark"] .post-related,
[data-theme="dark"] .post-prevnext {
  border-color: rgba(125, 182, 255, 0.18);
}

[data-theme="dark"] .post-body {
  color: #cdd8e7;
}

[data-theme="dark"] .post-body p,
[data-theme="dark"] .post-body li,
[data-theme="dark"] .post-body blockquote {
  color: #cdd8e7;
}

[data-theme="dark"] .post-body h2,
[data-theme="dark"] .post-body h3,
[data-theme="dark"] .post-header .page-title {
  color: #f3f7ff;
}

[data-theme="dark"] .post-meta,
[data-theme="dark"] .post-breadcrumb,
[data-theme="dark"] .post-toc-title,
[data-theme="dark"] .blog-dir-label,
[data-theme="dark"] .blog-meta-date,
[data-theme="dark"] .blog-meta-read {
  color: #9aaac0;
  opacity: 1;
}

[data-theme="dark"] .post-toc,
[data-theme="dark"] .post-tldr,
[data-theme="dark"] .post-related-card,
[data-theme="dark"] .post-author-bio {
  border-color: rgba(125, 182, 255, 0.18);
  background: rgba(22, 18, 16, 0.94);
}

[data-theme="dark"] .post-toc a,
[data-theme="dark"] .post-nav-back,
[data-theme="dark"] .author-cta,
[data-theme="dark"] .prevnext-link,
[data-theme="dark"] .post-related-cat {
  color: #7dd3fc;
}

[data-theme="dark"] .post-body a {
  color: #7dd3fc;
  border-bottom-color: rgba(251, 191, 36, 0.42);
}

[data-theme="dark"] .post-body a:hover {
  color: #b7e8ff;
  border-bottom-color: #7dd3fc;
}

[data-theme="dark"] .post-body code,
[data-theme="dark"] .post-body td code {
  color: #f6e8ff;
  background: rgba(159, 18, 57, 0.14);
  border-color: rgba(251, 191, 36, 0.22);
}

[data-theme="dark"] .post-body pre {
  color: #f6e8ff;
  background: #120f0e;
  border-color: rgba(125, 182, 255, 0.2);
}

[data-theme="dark"] .post-body blockquote {
  border-left-color: #c084fc;
  background: rgba(124, 58, 237, 0.08);
  padding: 0.85rem 1rem;
  font-style: normal;
}

[data-theme="dark"] [data-blog-directory] {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(125, 182, 255, 0.16);
  border-radius: var(--ds-radius-lg);
  background: rgba(22, 18, 16, 0.82);
}

[data-theme="dark"] .blog-dir-section {
  margin-bottom: 1rem;
}

[data-theme="dark"] .blog-dir-section:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .blog-filter-bar {
  gap: 0.5rem;
}

[data-theme="dark"] .blog-filter-bar .blog-filter-btn {
  border-color: rgba(125, 182, 255, 0.22);
  background: rgba(38, 31, 27, 0.92);
  color: #1f2937;
}

[data-theme="dark"] .blog-filter-btn:hover,
[data-theme="dark"] .blog-filter-btn.is-active {
  border-color: rgba(21, 17, 15, 0.2);
  background: #fde68a;
  color: #111827;
  filter: none;
}

[data-theme="dark"] .blog-filter-count {
  color: #334155;
  opacity: 1;
}

[data-theme="dark"] .blog-card {
  border-color: rgba(125, 182, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 28, 46, 0.98), rgba(9, 18, 31, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] a.blog-card:hover {
  border-color: rgba(251, 191, 36, 0.56);
  box-shadow: 0 18px 40px rgba(159, 18, 57, 0.12);
}

[data-theme="dark"] .blog-card-img {
  border-bottom: 1px solid rgba(125, 182, 255, 0.16);
  background: #120f0e;
}

[data-theme="dark"] .blog-card-meta {
  gap: 0.45rem;
}

[data-theme="dark"] .blog-meta {
  color: #7dd3fc;
}

[data-theme="dark"] .blog-card h3 {
  color: #f4f8ff;
}

[data-theme="dark"] .blog-card p {
  color: #b7c4d4;
}

[data-theme="dark"] .blog-grid[data-blog-all] {
  gap: 0.9rem;
}

[data-theme="dark"] .blog-grid[data-blog-all] .blog-card-body {
  padding: 1.15rem;
}

[data-theme="dark"] .blog-grid[data-blog-all] .blog-card h3 {
  margin-top: 0.65rem;
  font-size: 1.02rem;
}

[data-theme="dark"] .blog-grid[data-blog-all] .blog-card p {
  -webkit-line-clamp: 2;
}

@media (max-width: 860px) {
  .post-layout-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .post-sidebar {
    position: static;
    margin-top: 1.5rem;
  }
  .post-layout-body > .post-body { margin-top: 0; }
}

@media (max-width: 600px) {
  .post-cite-popover { min-width: min(320px, 90vw); left: auto; right: 0; }
  .post-related-grid { grid-template-columns: 1fr; }
  .prevnext-link { max-width: 100%; }
  .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-meta-actions { margin-top: .5rem; }
}
