:root {
  --bg: #090a0c;
  --surface: transparent;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f2f4f6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #ef4444; /* Clean sharp red */
  --accent-faded: rgba(239, 68, 68, 0.2);
  --hero-intelligence-top: #151921;
  --hero-research-top: #1a1722;
  --hero-products-top: #161d18;
  --hero-services-top: #1d171b;
  --hero-about-top: #18191d;
  --hero-mid: #0d0f12;
  --hero-bottom: #090a0c;
  --max-width: 1320px;
  --transition: all 0.25s ease-out;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.page-home { --hero-top: #121418; }
body.page-intelligence { --hero-top: var(--hero-intelligence-top); }
body.page-research { --hero-top: var(--hero-research-top); }
body.page-products { --hero-top: var(--hero-products-top); }
body.page-services { --hero-top: var(--hero-services-top); }
body.page-about { --hero-top: var(--hero-about-top); }
body.page-simulation { --page-width: 1180px; }

a,
button {
  font: inherit;
  transition: var(--transition);
}

.content-wrap {
  width: min(calc(100% - 2.5rem), var(--page-width, var(--max-width)));
  margin: 0 auto;
}

/* Navbar always uses the global max-width, never the narrower per-page override */
.nav-bar.content-wrap {
  width: min(calc(100% - 2.5rem), var(--max-width));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 10, 12, 0.95);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover .brand-logo {
  opacity: 1;
}

.brand-logo {
  display: block;
  width: 48px;
  height: auto;
  flex: 0 0 auto;
  opacity: 0.9;
  transition: var(--transition);
}

.brand-copy {
  display: flex;
  align-items: center;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.top-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}

.top-nav a::before {
  content: '';
  position: absolute;
  top: -8px; /* Move slightly above for an edgy look */
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.top-nav a:hover::before,
.top-nav a:focus-visible::before,
.top-nav a[aria-current="page"]::before {
  width: 100%;
}

.top-nav a[aria-current="page"],
.top-nav a:hover,
.top-nav a:focus-visible {
  color: #fff;
  outline: none;
}

/* Hero Section */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 60%, var(--hero-bottom) 100%);
}

#dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, transparent 100%);
}

.home-hero-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: 4rem 0 3rem;
}

.home-copy {
  max-width: 980px;
}

.eyebrow,
.column-count,
.item-meta {
  font-family: var(--font-mono);
}

.eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.home-copy h1,
.research-feature h3 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-weight: 500;
}

.home-copy h1 {
  display: grid;
  gap: 0.1em;
  max-width: 12ch;
  font-size: clamp(4.5rem, 11vw, 8.8rem);
}

.home-copy h1 span {
  opacity: 0;
  animation: fadeTextIn 1.2s ease-out forwards;
}

.home-copy h1 span:first-child {
  animation-delay: 0.3s;
}

.home-copy h1 span:last-child {
  color: var(--text-secondary);
  animation-delay: 1.5s;
}

@keyframes fadeTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-main {
  padding-top: 2rem;
  position: relative;
  z-index: 5;
}

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

body.page-home .site-footer {
  border-top: none;
  margin-top: 0;
}

.site-footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer-company {
  color: var(--text-primary);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.page-intro {
  padding: 1rem 0 0;
}

.intro-layout {
  display: block;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.intro-layout h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 400;
}

.article-page-intro .intro-layout {
  max-width: 58rem;
}

.article-page-intro .intro-layout h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
}

body.page-research:not(.page-article) .intro-layout {
  border-bottom: none;
}

body.page-research.page-article .intro-layout {
  border-bottom: none;
}

.hero-text,
.feed-item p,
.research-item p,
.research-feature p,
.service-item p,
.contact-panel p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-text {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-size: 1.1rem;
}

.home-meta {
  display: grid;
  align-content: end;
  gap: 1rem;
  padding-bottom: 1rem;
}

.home-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-links a {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-links a::before {
  content: "—";
  margin-right: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.home-links a:hover::before {
  color: var(--accent);
  margin-right: 1.5rem;
}

.home-links a:hover,
.home-links a:focus-visible {
  color: #fff;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 2.85rem;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: normal;
}

.primary-action {
  border: 1px solid var(--accent);
  background: rgba(239, 68, 68, 0.12);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(239, 68, 68, 0.18);
  outline: none;
}

.home-content-section {
  background: var(--bg);
}

.home-content-section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-top: 1px solid var(--line);
}

.home-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  gap: 3rem;
  align-items: start;
}

.home-offer-primary {
  max-width: 46rem;
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
}

.home-offer-primary h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.home-offer-primary p,
.home-evidence-list p {
  margin: 1.4rem 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.home-evidence-list {
  padding-top: 1rem;
}

.page-section {
  padding: 2.5rem 0;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 1.5rem;
}

.column-count,
.item-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.column-header h3,
.contact-panel h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feed-list,
.research-list,
.services-list {
  display: grid;
}

.intelligence-status {
  min-height: 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelligence-status.is-error {
  color: var(--accent);
}

.research-list-panel {
  display: grid;
  align-content: start;
}

/* Sharp minimal items instead of cards */
.feed-item,
.research-item,
.service-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.feed-item-expandable {
  padding: 0;
}

.feed-item-toggle {
  list-style: none;
  display: block;
  padding: 1.5rem 0;
  cursor: pointer;
}

.feed-item-toggle::-webkit-details-marker {
  display: none;
}

.feed-item a,
.research-item a,
.service-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.research-link {
  display: block;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-status {
  position: relative;
  padding-left: 1rem;
}

.item-status::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
}

.severity-critical::before,
.severity-escalated::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.severity-high::before,
.severity-advisory::before,
.severity-new::before {
  background: #f59e0b;
}

.severity-medium::before,
.severity-monitored::before,
.severity-tracked::before {
  background: #cbd1d6;
}

.severity-assessed::before {
  background: #3b82f6;
}

.feed-item h4,
.research-item h4,
.service-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.2s;
}

.feed-item:hover h4,
.research-item:hover h4,
.service-item:hover h4 {
  color: var(--accent);
}

.feed-item-expandable[open] h4,
.feed-item-toggle:focus-visible h4 {
  color: var(--accent);
}

.feed-item p,
.research-item p,
.service-item p,
.research-feature p,
.contact-panel p {
  margin: 0;
}

.item-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.item-footer span:not(:last-child)::after {
  content: "/";
  margin-left: 1rem;
  color: var(--line-strong);
}

.feed-item-toggle:focus-visible {
  outline: none;
}

.feed-item-chevron {
  display: inline-flex;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 1.1rem;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feed-item-expandable[open] .feed-item-chevron {
  transform: rotate(225deg);
  border-color: var(--accent);
}

.feed-item-details {
  padding: 0 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.feed-detail-body {
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: normal;
}

.feed-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feed-detail-field {
  display: grid;
  gap: 0.25rem;
}

.feed-detail-field dt,
.feed-detail-links h5 {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-detail-field dd {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.feed-detail-links {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feed-detail-links ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.5rem;
}

.feed-detail-links a {
  color: var(--text-secondary);
  word-break: break-word;
}

.feed-detail-links a:hover,
.feed-detail-links a:focus-visible {
  color: var(--accent);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 2.5rem;
}

.research-feature {
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
  max-width: 45rem;
}

.research-feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.research-preview-image,
.research-list-thumb {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.research-preview-image {
  max-width: 21rem;
  margin: 0 0 1.4rem;
}

.research-list-thumb {
  max-width: 9rem;
  margin: 0 0 1.1rem;
}

.research-feature h3 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 400;
}

.research-feature-link:hover h3,
.research-feature-link:focus-visible h3 {
  color: var(--accent);
}

.research-feature p {
  font-size: 1.05rem;
}

.research-feature .item-meta {
  margin-bottom: 1.5rem;
}

.research-cta,
.research-link-copy,
.article-source,
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.research-cta::before,
.research-link-copy::before,
.article-source::before,
.article-back::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.research-cta:hover,
.research-feature-link:hover .research-cta,
.research-link:hover .research-link-copy,
.research-feature-link:focus-visible .research-cta,
.research-link:focus-visible .research-link-copy,
.article-source:hover,
.article-back:hover {
  color: var(--accent);
}

.research-cta:hover::before,
.research-feature-link:hover .research-cta::before,
.research-link:hover .research-link-copy::before,
.research-feature-link:focus-visible .research-cta::before,
.research-link:focus-visible .research-link-copy::before,
.article-source:hover::before,
.article-back:hover::before {
  width: 2.6rem;
}

.research-feature-link:focus-visible {
  outline: none;
}

.research-link-copy {
  margin-top: 1.1rem;
}

.research-detail {
  padding-top: 0.6rem;
}

.article-detail {
  padding-top: 1.2rem;
  border-top: 1px solid var(--accent);
}

.article-detail-page {
  padding-top: 0.4rem;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 3rem;
}

.article-rail {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 1.4rem;
}

.article-back {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.article-rail-copy {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.article-rail-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-main {
  min-width: 0;
  max-width: 52rem;
}

.article-main h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.article-dek {
  margin: 1.4rem 0 0;
  max-width: 46rem;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.75rem 0 2.1rem;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.2rem 0 2rem;
}

.article-origin {
  margin: 0.35rem 0 2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body {
  display: grid;
  min-width: 0;
  gap: 1.2rem;
}

.article-body > * {
  min-width: 0;
}

.article-body h3,
.article-body h4 {
  margin: 1.7rem 0 0;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.article-body p,
.article-body li,
.article-note {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding-left: 1.35rem;
}

.article-body table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(9, 10, 12, 0.5);
}

.article-body thead {
  background: rgba(239, 68, 68, 0.08);
}

.article-body th,
.article-body td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-body th {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.article-body a:hover,
.article-body a:focus-visible {
  border-color: currentColor;
  outline: none;
}

.article-body pre {
  margin: 0;
  padding: 1.15rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(9, 10, 12, 0.72);
  color: #d7dee7;
}

.article-body code,
.article-subtle,
.article-body pre {
  font-family: var(--font-mono);
}

.article-body :not(pre) > code {
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 0.95em;
}

.article-body pre code {
  display: block;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 0.86rem;
}

.article-body .article-mermaid {
  display: flex;
  justify-content: center;
  padding: 1.3rem;
  min-height: 14rem;
}

.article-body .article-mermaid svg {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: auto;
}

.article-cve-detail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-cve-detail + .article-cve-detail {
  margin-top: -1px;
}

.article-cve-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.article-cve-detail summary::-webkit-details-marker {
  display: none;
}

.article-cve-detail summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.article-cve-detail[open] summary::after {
  content: "-";
}

.article-cve-detail summary h4 {
  margin: 0;
}

.article-cve-detail summary:hover h4,
.article-cve-detail summary:focus-visible h4 {
  color: var(--accent);
}

.article-cve-detail summary:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0.35rem;
}

.article-cve-detail table,
.article-cve-detail p {
  margin-bottom: 1.1rem;
}

.article-figure {
  min-width: 0;
  max-width: 100%;
  margin: 0.3rem 0;
}

.article-video {
  width: 100%;
  overflow: hidden;
}

.article-figure-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.article-video iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line-strong);
}

.article-subtle,
figcaption {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
}

.article-note {
  padding: 1.15rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: rgba(239, 68, 68, 0.07);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.56fr);
  gap: 2.5rem;
}

.services-list {
  max-width: none;
}

.service-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.05fr) minmax(220px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.service-item-link {
  color: inherit;
  text-decoration: none;
}

.service-item-link:focus-visible {
  outline: none;
}

.service-item-link:hover .research-link-copy,
.service-item-link:focus-visible .research-link-copy,
.service-item-link:focus-visible h4 {
  color: var(--accent);
}

.service-item-link:hover .research-link-copy::before,
.service-item-link:focus-visible .research-link-copy::before {
  width: 2.6rem;
}

.service-marker {
  display: block;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
  padding-top: 0.05rem;
}

.service-main h4 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.service-main p {
  max-width: 30rem;
}

.service-points {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.service-points li {
  position: relative;
  padding-left: 1rem;
  border: 0;
  background: transparent;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 1px;
  background: var(--accent);
}

.contact-panel {
  position: sticky;
  top: 110px;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  max-width: 25rem;
  align-self: start;
}

.contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
}

.contact-link:hover {
  color: var(--accent);
  border-color: transparent;
}

body.page-research,
body.page-products,
body.page-services,
body.page-about,
body.page-intelligence {
  --page-width: 1120px;
}

.product-feature h3 {
  max-width: none;
}

.product-lede {
  max-width: 42rem;
}

.product-card-heading,
.product-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-card-heading {
  margin-bottom: 0.7rem;
}

.product-card-heading h4,
.product-identity h3 {
  margin: 0;
}

.product-identity {
  margin-bottom: 1.5rem;
}

.product-icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.product-icon-frame-large {
  flex-basis: 7.5rem;
  width: 7.5rem;
  height: 7.5rem;
  padding: 1rem;
}

.product-card-icon,
.product-hero-icon {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.product-card-icon {
  max-width: 4.5rem;
  max-height: 3.6rem;
}

.product-hero-icon {
  max-width: 5.9rem;
  max-height: 4.9rem;
}

.product-copy {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.product-outcome-figure {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.product-outcome-crop {
  width: min(100%, 44rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.12), transparent 58%),
    #f8fafc;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.26);
}

.product-outcome-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.product-directory-link {
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.9fr);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-directory-link:hover .research-link-copy,
.product-directory-link:focus-visible .research-link-copy,
.product-directory-link:focus-visible h4 {
  color: var(--accent);
}

.product-directory-link:focus-visible {
  outline: none;
}

.product-context .service-points {
  margin-top: 1.3rem;
}

.product-note {
  margin-top: 2rem;
}

.about-single-pane {
  max-width: 58rem;
  margin: 0 auto;
}

.about-single-pane .eyebrow,
.about-single-pane .item-meta,
.about-single-pane .column-count,
.about-single-pane .column-header h3 {
  text-transform: none;
  letter-spacing: 0.02em;
}

.about-single-pane .column-header {
  margin-top: 2rem;
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-profile-media {
  margin: 0;
}

.about-profile-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.about-profile-copy {
  max-width: 42rem;
}

.about-profile-copy h4 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
}

.about-profile-copy p + p {
  margin-top: 1rem;
}

.intelligence-frame {
  max-width: 100%;
}

.intel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.intel-tab {
  padding: 0 0 0.5rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.intel-tab:hover,
.intel-tab:focus-visible {
  color: #fff;
  outline: none;
}

.intel-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.intel-panel {
  border-top: none;
  padding-top: 0;
}

.simulation-intro-layout {
  display: grid;
  gap: 1rem;
  max-width: 58rem;
}

.simulation-intro-layout .article-back {
  margin-top: 0;
}

.simulation-intro-layout .article-dek {
  margin-top: 0.2rem;
}

.simulation-service-layout {
  align-items: start;
}

.simulation-article {
  min-width: 0;
}

.simulation-detail-section {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 2.7rem;
}

.simulation-detail-section:last-child {
  margin-bottom: 0;
}

.simulation-summary {
  border-top-color: var(--accent);
}

.simulation-detail-section h2 {
  margin: 0 0 1.2rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.simulation-copy-block {
  display: grid;
  gap: 1.1rem;
  max-width: 48rem;
}

.simulation-copy-block p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.simulation-process-list .item-meta {
  margin-bottom: 0.8rem;
}

.simulation-shot-fader {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.1), transparent 56%),
    rgba(255, 255, 255, 0.02);
}

.simulation-shot-fader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.simulation-shot-button {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  animation: simulationShotFade 16s ease-in-out infinite;
}

.simulation-shot-button:nth-child(2) {
  animation-delay: 4s;
}

.simulation-shot-button:nth-child(3) {
  animation-delay: 8s;
}

.simulation-shot-button:nth-child(4) {
  animation-delay: 12s;
}

.simulation-shot-fader:hover .simulation-shot-button,
.simulation-shot-fader:focus-within .simulation-shot-button {
  animation-play-state: paused;
}

.simulation-shot-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  filter: saturate(0.85) contrast(1.08);
  transition: transform 0.35s ease, opacity 0.25s ease, filter 0.25s ease;
}

.simulation-shot-button:hover,
.simulation-shot-button:focus-visible {
  z-index: 3;
  border-color: var(--accent);
  outline: none;
}

.simulation-shot-button:hover img,
.simulation-shot-button:focus-visible img {
  transform: scale(1.025);
  opacity: 1;
  filter: saturate(1) contrast(1.04);
}

.simulation-hover-item {
  position: relative;
  cursor: default;
}

.simulation-hover-item h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.simulation-hover-item h4::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.simulation-hover-item p {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, margin-top 0.32s ease, opacity 0.24s ease;
}

.simulation-hover-item:hover p,
.simulation-hover-item:focus p,
.simulation-hover-item:focus-within p {
  max-height: 12rem;
  margin-top: 0.8rem;
  opacity: 1;
}

.simulation-hover-item:hover h4::after,
.simulation-hover-item:focus h4::after,
.simulation-hover-item:focus-within h4::after {
  content: "-";
}

.simulation-hover-item:focus {
  outline: none;
}

.simulation-scenario-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.simulation-contact-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.simulation-contact-actions .contact-link {
  margin-top: 0;
  width: fit-content;
}

.simulation-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  width: min(calc(100% - 2rem), 72rem);
  height: fit-content;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 12, 0.98);
  color: var(--text-primary);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
}

.simulation-lightbox.is-open {
  display: block;
}

.simulation-lightbox::before {
  content: "";
  position: fixed;
  inset: -100vh;
  z-index: -1;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.simulation-lightbox figure {
  margin: 0;
}

.simulation-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border: 1px solid var(--line-strong);
}

.simulation-lightbox figcaption {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

.simulation-lightbox-close {
  display: block;
  margin: 0 0 0.8rem auto;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simulation-lightbox-close:hover,
.simulation-lightbox-close:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (max-width: 1080px) {
  .research-layout,
  .services-layout,
  .home-offer-grid,
  .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-rail {
    position: static;
  }

  .service-item {
    grid-template-columns: 56px 1fr;
  }

  .service-points {
    grid-column: 2;
    margin-top: 0;
  }

  .product-identity {
    align-items: flex-start;
  }

  .product-directory-link {
    grid-template-columns: 1fr;
  }

  .product-directory-link .service-points {
    grid-column: auto;
  }

  .about-profile {
    grid-template-columns: 1fr;
  }

  .about-profile-media {
    max-width: 280px;
  }
}

/* ── Hamburger toggle (hidden on desktop) ───────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

/* X state */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  background: rgba(9, 10, 12, 0.98);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

  .mobile-drawer.open {
    max-height: 320px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-points {
    grid-column: auto;
  }

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  gap: 0;
}

.mobile-drawer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.mobile-drawer-inner a:hover,
.mobile-drawer-inner a[aria-current="page"] {
  color: #fff;
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 760px) {
  .content-wrap,
  .nav-bar.content-wrap {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .article-body :not(pre) > code,
  .article-body a {
    overflow-wrap: anywhere;
  }

  .product-card-heading,
  .product-identity {
    flex-wrap: wrap;
  }

  .product-icon-frame-large {
    flex-basis: 6.5rem;
    width: 6.5rem;
    height: 6.5rem;
  }

  .nav-bar {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 58px;
    padding: 0;
  }

  /* Hide desktop nav in the header bar */
  .nav-bar .top-nav {
    display: none;
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Show mobile drawer */
  .mobile-drawer {
    display: block;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 49;
  }

  .home-copy h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .page-section {
    padding-top: 2rem;
  }

  .article-main h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .article-dek {
    font-size: 1rem;
  }

  .simulation-scenario-list {
    grid-template-columns: 1fr;
  }

}

@keyframes simulationShotFade {
  0%,
  100% {
    opacity: 0;
    z-index: 1;
  }

  5%,
  25% {
    opacity: 1;
    z-index: 2;
  }

  30% {
    opacity: 0;
    z-index: 1;
  }
}
