/*
 * Responsive overrides for smaller screens.
 * Loaded conditionally via media query to enhance usability on touch devices.
 */

@media (max-width: 1400px) {
  .cortex-hud,
  .cortex-control-panel {
    display: none !important;
  }

  .intro-message {
    display: none;
  }

  :root {
    --mobile-gutter: clamp(1rem, 4vw, 1.75rem);
    --mobile-stack-gap: clamp(1.1rem, 4vw, 1.9rem);
    --mobile-readable-width: 68rem;
  }

  html {
    font-size: clamp(15px, 1.6vw + 12px, 16px);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    background-attachment: fixed;
  }

  body,
  body.framework-theme {
    display: flex;
    flex-direction: column;
  }

  .page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--mobile-stack-gap);
  }

  main,
  .page-wrapper,
  .content,
  .framework-shell,
  .framework-content,
  .contact-wrapper,
  .protected-wrapper,
  .about-wrapper,
  .relay-container,
  .docs-wrapper,
  .section-wrapper,
  .u-page-wide {
    width: min(100%, var(--mobile-readable-width));
    margin-inline: auto;
  }

  main,
  .framework-shell,
  .content,
  .contact-wrapper,
  .protected-wrapper,
  .about-wrapper,
  .relay-container,
  .docs-wrapper,
  .section-wrapper {
    padding-top: max(var(--mobile-gutter), env(safe-area-inset-top, 0px));
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
  }

  body.page-home main {
    /* Let the hero card align directly with the viewport edge on touch devices. */
    padding-top: 0;
  }

  body.page-home .page-wrapper > .cortex-log:first-of-type {
    margin-top: 0;
  }

  .page-wrapper {
    padding-top: 0;
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
  }

  body.page-home .page-wrapper {
    /* Provide just enough clearance for device safe areas, capped at 5px. */
    padding-top: clamp(0px, env(safe-area-inset-top, 0px), 5px);
  }

  .page-wrapper > *,
  .framework-shell > *,
  .content > *,
  .framework-content > *,
  .contact-wrapper > *,
  .protected-wrapper > *,
  .about-wrapper > *,
  .relay-container > *,
  main > section,
  main > article {
    margin-block: var(--mobile-stack-gap);
  }

  .page-wrapper > #cortex {
    margin: 0;
  }

  .page-wrapper > :first-child {
    margin-top: 0;
  }

  .page-wrapper > .cortex-log:first-of-type,
  .page-wrapper > .cortex-log:first-child {
    margin-top: 0;
  }

  header,
  footer,
  nav,
  section,
  article {
    width: 100%;
  }

  body.page-home {
    padding-bottom: calc(clamp(6rem, 18vw, 8rem) + env(safe-area-inset-bottom, 0px));
  }

  body.page-home .site-footer {
    display: none;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
  }

  h4,
  h5,
  h6 {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    letter-spacing: 0.04em;
  }

  p,
  li,
  dd {
    font-size: clamp(0.98rem, 2.2vw, 1.08rem);
    line-height: 1.65;
  }

  ul,
  ol {
    padding-left: clamp(1.1rem, 6vw, 1.6rem);
  }

  blockquote {
    margin-inline: 0;
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  pre,
  code,
  kbd,
  samp {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    white-space: pre-wrap;
    word-break: break-word;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    padding: clamp(0.6rem, 3vw, 0.9rem);
    text-align: left;
  }

  thead {
    position: sticky;
    top: 0;
    background: inherit;
  }

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

  iframe,
  embed {
    min-height: clamp(220px, 36vw, 320px);
  }

  figure,
  figcaption {
    width: 100%;
  }

  form,
  fieldset {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 4vw, 1.2rem);
  }

  fieldset {
    border-radius: clamp(0.75rem, 4vw, 1.2rem);
    padding: clamp(1rem, 5vw, 1.75rem);
  }

  label,
  input,
  select,
  textarea {
    width: 100%;
  }

  input,
  select,
  textarea,
  button {
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    padding: clamp(0.65rem, 3vw, 0.95rem) clamp(0.8rem, 4vw, 1.1rem);
  }

  button,
  .button,
  .btn,
  .cta {
    width: 100%;
    justify-content: center;
  }

  .intro-message {
    max-width: min(92vw, 36rem);
    margin-top: clamp(1.25rem, 4vw, 2rem);
    padding-inline: clamp(1rem, 4vw, 1.75rem);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  }

  body.page-home .cortex-sidepanel {
    display: none;
  }

  body.page-home .cortex-log {
    position: relative;
    inset: auto;
    max-width: min(100%, 34rem);
    margin: clamp(1rem, 6vw, 1.6rem) auto;
    padding: clamp(1rem, 6vw, 1.45rem) clamp(1.05rem, 6vw, 1.6rem);
    border-radius: clamp(0.85rem, 4vw, 1.2rem);
    background: linear-gradient(210deg, rgba(10, 16, 28, 0.95), rgba(3, 10, 20, 0.85));
    border: 1px solid rgba(102, 204, 255, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  }

  body.page-home [data-cortex-log-state="collapsed"] .cortex-log__body,
  body.page-home [data-cortex-log-state="collapsed"] .cortex-log__cta {
    display: none;
  }

  body.page-home .cortex-log h1 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  body.page-home .cortex-log p {
    font-size: clamp(0.92rem, 4vw, 1.02rem);
  }

  body.page-home .cortex-log__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: clamp(0.55rem, 4vw, 0.75rem) clamp(0.85rem, 6vw, 1.3rem);
    border-radius: 999px;
    border: 1px solid rgba(102, 204, 255, 0.35);
    background: rgba(6, 16, 28, 0.85);
    color: rgba(214, 244, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  body.page-home .cortex-log__toggle:focus-visible,
  body.page-home .cortex-log__toggle:hover {
    outline: none;
    background: rgba(12, 26, 40, 0.95);
    border-color: rgba(160, 236, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.15);
  }

  body.page-home [data-cortex-log-state="collapsed"] .cortex-log__body {
    max-height: clamp(6.2rem, 28vw, 8rem);
    overflow: hidden;
    position: relative;
  }

  body.page-home [data-cortex-log-state="collapsed"] .cortex-log__body::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: clamp(2rem, 12vw, 3rem);
    background: linear-gradient(0deg, rgba(10, 16, 28, 0.96), rgba(10, 16, 28, 0));
  }

  body.page-home [data-cortex-log-state="expanded"] .cortex-log__body {
    max-height: none;
  }

  body.page-home [data-cortex-log-state="expanded"] .cortex-log__body::after {
    display: none;
  }

  body.page-home .mobile-node-directory {
    display: block;
    width: min(100%, 34rem);
    margin: clamp(0.75rem, 5vw, 1.4rem) auto;
    padding: clamp(0.35rem, 2vw, 0.6rem);
    position: relative;
    z-index: 7;
    border-radius: clamp(0.85rem, 3.6vw, 1.2rem);
    background: linear-gradient(200deg, rgba(10, 16, 28, 0.92), rgba(4, 12, 20, 0.85));
    border: 1px solid rgba(102, 204, 255, 0.22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  }

  body.page-home .mobile-node-directory {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(0.85rem, 5vw, 1.75rem);
    margin: 0;
    width: min(92vw, 34rem);
    z-index: 24;
  }

  @supports (bottom: max(0px, 0px)) {
    body.page-home .mobile-node-directory {
      bottom: max(env(safe-area-inset-bottom, 0px), clamp(0.85rem, 5vw, 1.75rem));
    }
  }

  body.page-home .mobile-node-directory__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.6rem, 3vw, 0.9rem);
    padding: clamp(0.75rem, 4.8vw, 1rem) clamp(0.85rem, 6vw, 1.2rem);
    border: 1px solid rgba(102, 204, 255, 0.35);
    border-radius: clamp(0.75rem, 3.4vw, 1.05rem);
    background: rgba(6, 12, 22, 0.75);
    color: rgba(212, 242, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.8rem, 3.8vw, 0.92rem);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  body.page-home .mobile-node-directory__toggle::before {
    content: "";
    width: clamp(1rem, 4vw, 1.35rem);
    height: clamp(0.75rem, 3vw, 1rem);
    flex: 0 0 auto;
    border-radius: 0.25rem;
    background:
      linear-gradient(
        to bottom,
        rgba(212, 242, 255, 0.95) 0%,
        rgba(212, 242, 255, 0.95) 20%,
        transparent 20%,
        transparent 40%,
        rgba(212, 242, 255, 0.95) 40%,
        rgba(212, 242, 255, 0.95) 60%,
        transparent 60%,
        transparent 80%,
        rgba(212, 242, 255, 0.95) 80%,
        rgba(212, 242, 255, 0.95) 100%
      );
  }

  body.page-home .mobile-node-directory__toggle:focus-visible,
  body.page-home .mobile-node-directory__toggle:hover {
    outline: none;
    background: rgba(12, 24, 38, 0.85);
    border-color: rgba(160, 236, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.12);
  }

  body.page-home .mobile-node-directory__label {
    flex: 1 1 auto;
    text-align: left;
  }

  body.page-home .mobile-node-directory__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    transition: transform 0.25s ease;
  }

  body.page-home [data-node-directory-open="true"] .mobile-node-directory__chevron {
    transform: rotate(180deg);
  }

  body.page-home [data-node-directory-open="true"] .mobile-node-directory__toggle {
    border-color: rgba(0, 255, 204, 0.45);
    color: #ffffff;
  }

  body.page-home .mobile-node-directory__panel {
    margin-top: clamp(0.35rem, 2vw, 0.6rem);
    padding: clamp(0.45rem, 3vw, 0.75rem) clamp(0.55rem, 5vw, 1rem) clamp(0.65rem, 4.5vw, 1.05rem);
    border-radius: clamp(0.7rem, 3vw, 1rem);
    background: rgba(4, 10, 18, 0.9);
    border: 1px solid rgba(102, 204, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    max-height: min(60vh, 28rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.page-home .mobile-node-directory__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + clamp(0.4rem, 2.5vw, 0.7rem));
    margin: 0;
    width: 100%;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    max-height: min(70vh, 32rem);
  }

  body.page-home .mobile-node-directory__panel[hidden] {
    display: none;
  }

  body.page-home .mobile-node-directory__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 4vw, 0.85rem);
  }

  body.page-home .mobile-node-directory__link {
    width: 100%;
    min-height: clamp(3.3rem, 10vw, 4.05rem);
    padding: clamp(1rem, 4.4vw, 1.25rem) clamp(1.1rem, 5.4vw, 1.5rem);
    border-radius: clamp(0.75rem, 3.4vw, 1.05rem);
    border: 1px solid rgba(102, 204, 255, 0.28);
    background: rgba(9, 16, 28, 0.85);
    color: rgba(221, 243, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  body.page-home .mobile-node-directory__link:focus-visible,
  body.page-home .mobile-node-directory__link:hover {
    outline: none;
    background: rgba(14, 26, 40, 0.95);
    border-color: rgba(160, 236, 255, 0.55);
    transform: translateY(-1px);
  }

  .mobile-node-directory__link.is-active {
    background: linear-gradient(130deg, rgba(0, 255, 204, 0.2), rgba(110, 68, 255, 0.25));
    border-color: rgba(0, 255, 204, 0.45);
    color: #ffffff;
  }

  .node-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 4vw, 1.5rem);
    padding-inline: clamp(1rem, 6vw, 2.5rem);
  }

  .node {
    flex: 1 1 calc(50% - 1rem);
    max-width: clamp(7.5rem, 45vw, 10.5rem);
    min-width: 6rem;
    padding: clamp(0.9rem, 4vw, 1.2rem);
    border-radius: clamp(1.1rem, 4vw, 1.6rem);
  }

  .content,
  .framework-shell {
    margin: clamp(1.5rem, 6vw, 3rem) auto;
    padding: clamp(1.35rem, 5vw, 2.75rem);
    border-radius: clamp(1.35rem, 5vw, 1.9rem);
  }

  .framework-shell .back-link,
  .page-wrapper .back-link,
  a.back-link {
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    letter-spacing: 0.08em;
  }

  .framework-card {
    gap: clamp(1rem, 4vw, 1.75rem);
    padding: clamp(1.35rem, 4vw, 2rem);
  }

  .framework-card__meta {
    gap: clamp(0.5rem, 3vw, 0.85rem);
    font-size: clamp(0.7rem, 2vw, 0.85rem);
  }

  .framework-card__body {
    gap: clamp(0.9rem, 3vw, 1.35rem);
  }

  .framework-card__body p,
  .framework-card__keypoints li {
    font-size: clamp(0.95rem, 3.4vw, 1.05rem);
    line-height: 1.6;
  }

  .framework-card__footer {
    flex-wrap: wrap;
    gap: clamp(1rem, 4vw, 1.6rem);
  }

  .framework-card__meters {
    width: 100%;
  }

  .framework-card__cta {
    justify-content: center;
    min-height: 2.85rem;
  }

  .cortex-control-panel {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    margin: clamp(1.5rem, 6vw, 2.5rem) auto 0;
    width: min(100%, 34rem);
    backdrop-filter: blur(10px);
  }

  .framework-grid {
    gap: clamp(1.1rem, 4vw, 1.8rem);
  }

  .framework-grid-item,
  .callout,
  .panel,
  .feature-block,
  .stat-block,
  .highlight {
    padding: clamp(1rem, 4vw, 1.6rem);
    border-radius: clamp(0.85rem, 4vw, 1.25rem);
  }

  footer,
  .site-footer {
    margin-top: clamp(2rem, 8vw, 3.5rem);
    padding-inline: clamp(1.25rem, 5vw, 2rem);
    text-align: center;
    width: min(100%, var(--mobile-readable-width));
    margin-inline: auto;
  }
}

@media (min-width: 721px) and (max-width: 1400px) {
  body {
    align-items: stretch;
  }

  main,
  .page-wrapper,
  .framework-shell,
  .content,
  .contact-wrapper,
  .relay-container {
    margin: clamp(1.25rem, 7vw, 2.25rem) auto;
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
    padding-top: max(clamp(1.25rem, 6vw, 2rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(1.25rem, 6vw, 2rem), env(safe-area-inset-bottom, 0px));
  }

  .intro-message {
    margin-top: clamp(1rem, 6vw, 1.6rem);
    padding-inline: clamp(0.9rem, 6vw, 1.5rem);
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-gutter: clamp(1rem, 5vw, 1.5rem);
  }

  body {
    align-items: stretch;
  }

  .cortex-rotation-status,
  .cortex-rotation-controls {
    display: none;
  }

  main,
  .page-wrapper,
  .framework-shell,
  .content,
  .contact-wrapper,
  .relay-container {
    margin: clamp(1.25rem, 7vw, 2.25rem) auto;
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
    padding-top: max(clamp(1.25rem, 6vw, 2rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(1.25rem, 6vw, 2rem), env(safe-area-inset-bottom, 0px));
  }

  .intro-message {
    margin-top: clamp(1rem, 6vw, 1.6rem);
    padding-inline: clamp(0.9rem, 6vw, 1.5rem);
  }

  .node-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .node {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .framework-card__meta,
  .framework-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .framework-card__meters {
    grid-template-columns: 1fr;
  }

  .framework-card__cta,
  button,
  .button,
  .btn,
  .cta {
    width: 100%;
  }

  .cortex-control-panel {
    width: min(100%, 32rem);
    border-radius: clamp(1rem, 4vw, 1.4rem);
    padding: clamp(1rem, 5vw, 1.5rem);
  }

  .focus-controls {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.65rem, 4vw, 1rem);
  }

  .focus-controls select,
  .focus-controls .focus-engage,
  .focus-controls .focus-clear {
    flex: 1 1 100%;
    width: 100%;
  }

  html:not(.js-enabled) #cortex {
    opacity: 1;
    pointer-events: none;
    visibility: visible;
  }

  table {
    font-size: clamp(0.9rem, 3.2vw, 0.98rem);
  }

  .no-js-warning {
    width: min(100%, 40rem);
    margin: clamp(1.4rem, 6vw, 2.4rem) auto;
    padding: clamp(1.2rem, 5vw, 2rem);
    border-radius: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.65;
    text-align: left;
  }

  .no-js-warning p {
    font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  }

  .noscript-links {
    display: flex;
    flex-direction: column;
    gap: clamp(0.9rem, 4vw, 1.4rem);
    margin-top: clamp(1rem, 4vw, 1.6rem);
  }

  .noscript-links > p {
    margin: 0;
  }

  .noscript-framework-list {
    display: grid;
    gap: clamp(0.85rem, 4vw, 1.35rem);
    padding-left: clamp(1rem, 5vw, 1.5rem);
  }

  .noscript-framework-list li {
    margin: 0;
  }

  .noscript-framework-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .deep-layer-modal {
    width: min(100%, 34rem);
    max-width: min(94vw, 34rem);
    padding: clamp(1.6rem, 6vw, 2.4rem);
  }

  .deep-layer-modal h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
  }

  .deep-layer-modal p {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  }

  .deep-layer-modal__actions {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.75rem, 4vw, 1.1rem);
  }

  .deep-layer-button {
    flex: 1 1 auto;
    width: 100%;
    min-height: clamp(2.8rem, 9vw, 3.4rem);
  }

  .deep-layer-teleport__ring {
    width: 110vmin;
    height: 110vmin;
    margin: -55vmin 0 0 -55vmin;
  }

  .framework-grid,
  .framework-grid--two,
  .two-column,
  .split-grid,
  .feature-grid,
  .contact-grid,
  .u-page-wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 5vw, 1.8rem);
  }
}

@media (max-width: 520px) {
  :root {
    --mobile-gutter: clamp(0.75rem, 5vw, 1.25rem);
  }

  html {
    font-size: clamp(15px, 3vw + 11px, 15px);
  }

  .intro-message {
    margin-top: clamp(1rem, 6vw, 1.5rem);
    padding-inline: clamp(0.75rem, 6vw, 1.5rem);
  }

  .content,
  .framework-shell,
  .page-wrapper,
  .contact-wrapper,
  .relay-container {
    margin: clamp(1rem, 8vw, 1.9rem) auto;
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
    padding-top: max(clamp(1.1rem, 8vw, 1.8rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(1.1rem, 8vw, 1.8rem), env(safe-area-inset-bottom, 0px));
  }

  body.page-home .mobile-node-directory {
    width: 100%;
    margin: clamp(0.9rem, 7vw, 1.6rem) auto 0;
  }

  body.page-home .mobile-node-directory__toggle {
    min-height: clamp(3.25rem, 12vw, 4.1rem);
    padding: clamp(0.95rem, 5.2vw, 1.2rem) clamp(1rem, 6.2vw, 1.35rem);
    letter-spacing: 0.1em;
  }

  body.page-home .mobile-node-directory__link {
    min-height: clamp(3.3rem, 12vw, 4.1rem);
    padding: clamp(0.9rem, 5.4vw, 1.15rem) clamp(0.95rem, 6.4vw, 1.25rem);
    letter-spacing: 0.06em;
  }

  .cortex-control-panel {
    padding: clamp(0.85rem, 6vw, 1.3rem);
    gap: clamp(0.75rem, 6vw, 1.2rem);
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .node {
    padding: clamp(0.8rem, 6vw, 1.1rem);
    border-radius: clamp(1rem, 6vw, 1.4rem);
  }

  .framework-card {
    padding: clamp(1.1rem, 7vw, 1.6rem);
  }

  .framework-card__meta {
    font-size: clamp(0.68rem, 2.5vw, 0.8rem);
  }

  .framework-card__cta {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    padding: clamp(0.65rem, 4vw, 0.9rem) clamp(1rem, 6vw, 1.35rem);
  }

  .framework-grid-item,
  .callout,
  .panel,
  .feature-block,
  .stat-block,
  .highlight {
    padding: clamp(0.9rem, 6vw, 1.4rem);
  }

  th,
  td {
    padding: clamp(0.5rem, 4vw, 0.75rem);
  }
}
