/* Demo embed styles — shared by homepage case studies and workflow dashboard */

:root {
      --bg: #050810;
      --bg-elevated: #0a1220;
      --bg-panel: #0d1420;
      --text: #e8f4ff;
      --text-muted: #8aaabb;
      --text-dim: #5a7a99;
      --accent: #00e5ff;
      --accent-dim: rgba(0, 229, 255, 0.15);
      --border: rgba(0, 229, 255, 0.12);
      --max: 1080px;
    }



@media (pointer: coarse) {
      .site-bg-spotlight {
        background: radial-gradient(
          ellipse 90% 55% at 50% 12%,
          rgba(0, 229, 255, 0.05),
          transparent 70%
        );
      }
    }

    a {
      color: var(--accent);
      text-decoration: none;
      transition: opacity 0.2s;
    }

    a:hover { opacity: 0.8; }

    .shell {
      position: relative;
      z-index: 1;
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Hero */
    .hero {
      padding: 4.5rem 0 3rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
    }

    .eyebrow {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      opacity: 0.75;
      margin-bottom: 1rem;
    }

    .hero-copy {
      min-width: 0;
    }

    .hero h1 {
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin-bottom: 1rem;
    }

    .hero-lead {
      font-size: 1.05rem;
      color: var(--text-muted);
      max-width: 34rem;
      margin-bottom: 1.75rem;
    }

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

    .pill-groups {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 1.5rem;
      max-width: 34rem;
    }

    .pill-group-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 0.35rem;
    }

    .case-study-cta {
      margin-top: 1.25rem;
      padding: 1rem 1.15rem;
      border-top: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.85rem 1.25rem;
    }

    .case-study-cta-text {
      margin: 0;
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 28rem;
      line-height: 1.45;
    }

    .section-cta {
      margin-top: 1.5rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.85rem 1.25rem;
    }

    .glossary-teaser-note {
      font-size: 0.85rem;
      color: var(--text-dim);
      margin-top: 0.75rem;
    }

    .glossary-teaser-section {
      border-top: none;
      padding-top: 0;
    }

    .glossary-teaser-slot {
      scroll-margin-top: 2.25rem;
      margin-left: -1.5rem;
      margin-right: -1.5rem;
      padding: 2.5rem 1.5rem 3rem;
      border-top: 2px solid rgba(0, 229, 255, 0.28);
    }

    .glossary-teaser-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 0.75rem;
      align-items: center;
      margin-top: 0.25rem;
    }

    .section-cta-text {
      margin: 0;
      flex: 1;
      min-width: 12rem;
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .pill {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.68rem;
      letter-spacing: 0.06em;
      padding: 0.45rem 0.85rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
      cursor: default;
      transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
    }

    .pill:hover {
      color: var(--accent);
      border-color: rgba(0, 229, 255, 0.45);
      background: rgba(0, 229, 255, 0.08);
      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.25),
        0 0 24px rgba(0, 229, 255, 0.1);
      transform: translateY(-2px);
    }

    .card-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.75rem 1.25rem 1.25rem;
      background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 60%), var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 14px;
      min-width: 0;
      align-self: start;
    }

    .card-panel-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 1.25rem;
      align-self: flex-start;
    }

    /* Sections */
    .section {
      padding: 3.5rem 0;
      border-top: 1px solid var(--border);
    }

    .section-head {
      margin-bottom: 2rem;
    }

    .section-head h2 {
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-bottom: 0.5rem;
    }

    .section-head p {
      color: var(--text-muted);
      max-width: 36rem;
    }

    .case-study-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 1.25rem;
      max-width: 52rem;
    }

    .case-study-nav-btn {
      display: flex;
      align-items: flex-start;
      gap: 0.65rem;
      flex: 1 1 16rem;
      min-width: min(100%, 16rem);
      padding: 0.75rem 1rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-muted);
      text-align: left;
      transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .case-study-nav-btn:hover {
      opacity: 1;
      border-color: rgba(0, 229, 255, 0.35);
      background: rgba(0, 229, 255, 0.06);
      color: var(--text);
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
    }

    .case-study-nav-num {
      flex-shrink: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      line-height: 1.4;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      border: 1px solid rgba(0, 229, 255, 0.3);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.08);
    }

    .case-study-nav-label {
      font-size: 0.88rem;
      line-height: 1.45;
      color: inherit;
    }

    .case-studies-stack {
      margin-top: 1.75rem;
    }

    .case-study-slot {
      scroll-margin-top: 2.25rem;
      margin-left: -1.5rem;
      margin-right: -1.5rem;
      padding: 2.5rem 1.5rem 3rem;
      border-top: 2px solid rgba(0, 229, 255, 0.28);
    }

    .case-study-slot--tone-a {
      background: linear-gradient(180deg, rgba(10, 18, 32, 0.95) 0%, rgba(5, 8, 16, 0.6) 100%);
      box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.12);
    }

    .case-study-slot--tone-b {
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(10, 18, 32, 0.85) 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .case-study-break {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      margin: 0 -1.5rem;
      padding: 2.25rem 1.5rem;
      background: rgba(0, 229, 255, 0.04);
      border-top: 2px solid rgba(0, 229, 255, 0.35);
      border-bottom: 2px solid rgba(0, 229, 255, 0.35);
    }

    .case-study-break-line {
      flex: 1;
      height: 2px;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 229, 255, 0.55) 50%,
        transparent
      );
    }

    .case-study-break-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.35rem;
      text-align: center;
      flex-shrink: 0;
      min-width: 12rem;
    }

    .case-study-break-num {
      font-family: "JetBrains Mono", monospace;
      font-size: clamp(1.75rem, 5vw, 2.5rem);
      font-weight: 600;
      letter-spacing: 0.08em;
      line-height: 1;
      color: var(--accent);
      text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
    }

    .case-study-break-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .case-study-break-text {
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text-muted);
      max-width: 22rem;
      line-height: 1.4;
    }

    .case-study-title-num {
      display: block;
      width: fit-content;
      font-family: "JetBrains Mono", monospace;
      font-size: clamp(0.95rem, 2.8vw, 1.2rem);
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--bg);
      margin-bottom: 0.25rem;
      padding: 0.55rem 1rem;
      border: 1px solid rgba(0, 229, 255, 0.65);
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.95) 0%, rgba(0, 180, 220, 0.85) 100%);
      box-shadow: 0 0 28px rgba(0, 229, 255, 0.25);
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }

    .team-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }

    .team-card-header {
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 1rem;
    }

    .team-name {
      font-weight: 600;
      font-size: 1rem;
    }

    .team-role {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .team-bio {
      padding: 1rem 1.25rem 0;
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
    }

    .team-card--video-first .team-bio {
      padding: 1rem 1.25rem 1.15rem;
    }

    .team-bio p {
      margin: 0 0 0.75rem;
    }

    .team-bio p:last-child {
      margin-bottom: 0;
    }

    .team-creds {
      margin: 0.65rem 0 0;
      padding: 0 0 0 1.1rem;
      font-size: 0.82rem;
      line-height: 1.5;
      color: var(--text-dim);
    }

    .team-creds li {
      margin-bottom: 0.35rem;
    }

    .team-creds li:last-child {
      margin-bottom: 0;
    }

    .team-bio .team-bio-collapsible.case-study-collapsible {
      margin: 0.85rem 0 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(0, 229, 255, 0.02);
    }

    .team-bio .team-bio-collapsible + .team-bio-collapsible {
      margin-top: 0.65rem;
    }

    .team-bio-collapsible .team-creds {
      margin: 0;
    }

    .team-expertise-grid {
      display: grid;
      gap: 1rem;
    }

    .team-expertise-group h4 {
      margin: 0 0 0.4rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      opacity: 0.85;
    }

    .team-expertise-group ul {
      margin: 0;
      padding-left: 1.1rem;
      font-size: 0.82rem;
      line-height: 1.5;
      color: var(--text-muted);
    }

    .team-expertise-group li + li {
      margin-top: 0.25rem;
    }

    .team-card-links {
      display: flex;
      gap: 0.85rem;
      flex-shrink: 0;
      font-size: 0.85rem;
    }

    .team-card video {
      width: 100%;
      display: block;
      aspect-ratio: 16 / 9;
      background: #000;
    }

    .team-card video::-webkit-media-controls-download-button,
    .case-study-video::-webkit-media-controls-download-button {
      display: none;
    }

    .contact-bar {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .contact-item {
      padding: 1.25rem;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: 10px;
    }

    .contact-item dt {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      opacity: 0.7;
      margin-bottom: 0.4rem;
    }

    .contact-item dd {
      font-size: 0.92rem;
      color: var(--text-muted);
    }

    .contact-item dd a { color: var(--text); }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.65rem 1.25rem;
      border-radius: 8px;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .btn-primary {
      background: rgba(0, 229, 255, 0.12);
      border: 1px solid rgba(0, 229, 255, 0.45);
      color: var(--text);
    }

    .btn-primary:hover {
      background: rgba(0, 229, 255, 0.2);
      box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
      opacity: 1;
    }

    .btn-secondary {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-muted);
    }

    .btn-secondary:hover {
      border-color: rgba(0, 229, 255, 0.3);
      color: var(--text);
      opacity: 1;
    }

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

    .services-flip-hint {
      font-size: 0.85rem;
      color: var(--text-dim);
      margin-top: -1rem;
      margin-bottom: 1.25rem;
    }

    .service-card--flip {
      perspective: 1000px;
      padding: 0;
      background: transparent;
      border: none;
      min-height: 11.5rem;
    }

    .service-flip-wrap {
      width: 100%;
      height: 100%;
      min-height: 11.5rem;
      position: relative;
      cursor: pointer;
    }

    .service-flip-inner {
      width: 100%;
      height: 100%;
      min-height: 11.5rem;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    }

    .service-flip-inner.is-flipped {
      transform: rotateY(180deg);
    }

    .service-flip-inner.is-flipped .service-flip-front {
      pointer-events: none;
    }

    .service-flip-inner:not(.is-flipped) .service-flip-back {
      pointer-events: none;
    }

    .service-flip-inner.is-flipped .service-flip-back {
      z-index: 2;
    }

    .service-flip-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      border-radius: 12px;
      border: 1px solid var(--border);
      padding: 1.35rem;
      background: var(--bg-elevated);
      display: flex;
      flex-direction: column;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .service-flip-face::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 12px;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent 55%);
    }

    .service-flip-back {
      transform: rotateY(180deg);
      background: var(--bg-panel);
      border-color: rgba(0, 229, 255, 0.28);
      box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
    }

    .service-card--flip h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      position: relative;
      z-index: 1;
    }

    .service-flip-front p {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.55;
      flex: 1;
      position: relative;
      z-index: 1;
    }

    .service-flip-hint {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-top: 0.75rem;
      position: relative;
      z-index: 1;
    }

    .service-glossary-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.35rem;
      position: relative;
      z-index: 1;
    }

    .service-glossary-term {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      line-height: 1.3;
      position: relative;
      z-index: 1;
    }

    .service-glossary-def {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.55;
      flex: 1 1 auto;
      min-height: 0;
      max-height: 5.5rem;
      overflow-y: auto;
      position: relative;
      z-index: 1;
    }

    .service-glossary-link {
      font-size: 0.8rem;
      margin-top: 0.65rem;
      position: relative;
      z-index: 3;
      align-self: flex-start;
      pointer-events: auto;
    }

    .service-card--flip:focus-visible .service-flip-wrap {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 12px;
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-width: 42rem;
    }

    .faq-item {
      padding: 1.15rem 1.25rem;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: 10px;
    }

    .faq-item dt {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
    }

    .faq-item dd {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .case-study-card {
      background: var(--bg-elevated);
      border: 1px solid rgba(0, 229, 255, 0.22);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    }

    .case-study-header {
      padding: 1.5rem 1.5rem 1.35rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
    }

    .case-study-title {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      font-size: clamp(1.15rem, 3vw, 1.45rem);
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 0.35rem;
    }

    .case-study-subtitle {
      font-size: 0.92rem;
      color: var(--text-muted);
      max-width: 36rem;
      line-height: 1.55;
    }

    .case-study-badge {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.4rem 0.65rem;
      border: 1px solid rgba(0, 229, 255, 0.25);
      border-radius: 999px;
      color: var(--accent);
      background: rgba(0, 229, 255, 0.06);
      white-space: nowrap;
    }

    .case-study-body {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      grid-template-rows: auto auto;
      gap: 0;
    }

    .case-study-visual {
      grid-column: 1;
      grid-row: 1;
      background: #000;
      border-right: 1px solid var(--border);
      min-width: 0;
    }

    .case-study-content {
      grid-column: 2;
      grid-row: 1;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      border-left: 1px solid var(--border);
      margin-left: -1px;
    }

    .case-study-quant-process {
      border-bottom: 1px solid var(--border);
      background: #000;
    }

    .case-study-quant-process-figure {
      margin: 0;
      padding: 0.65rem 1rem 1rem;
    }

    .case-study-quant-process-figure picture,
    .case-study-quant-process-figure img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
    }

    .case-study-widgets-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

    .case-study-risk-video-row {
      grid-column: 1 / -1;
      grid-row: 3;
      background: #000;
      border-top: 1px solid var(--border);
    }

    .case-study-risk-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: start;
    }

    .case-study-risk-video-block {
      border-top: 1px solid var(--border);
    }

    .case-study-risk-video-block .case-study-risk-panel-body {
      min-height: 238px;
      justify-content: center;
      align-items: center;
    }

    .case-study-risk-video-block .case-study-video {
      width: 85%;
      max-width: 85%;
      margin-left: auto;
      margin-right: auto;
    }

    .case-study-risk-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      border-right: 1px solid var(--border);
    }

    .case-study-risk-panel:last-child {
      border-right: none;
    }

    .case-study-risk-panel-body {
      flex: 1;
      display: flex;
      align-items: stretch;
      min-height: 0;
      background: #000;
    }

    .case-study-risk-panel-body--stack {
      flex-direction: column;
    }

    .port-sim-visual {
      flex-shrink: 0;
      min-height: 340px;
      max-width: 100%;
    }

    .port-sim-reference-body {
      flex: 1;
      min-height: 0;
    }

    .port-sim-reference-body picture {
      flex: 1;
      min-height: 0;
    }

    .port-sim-reference-body img {
      width: 100%;
      height: auto;
      max-width: 100%;
    }

    .port-sim-reference-caption {
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
      text-align: center;
    }

    .port-sim-viewer {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 340px;
      max-width: 100%;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

    .port-sim-chart {
      flex: 1;
      min-height: 300px;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    .port-sim-chart .js-plotly-plot,
    .port-sim-chart .plot-container,
    .port-sim-chart .svg-container {
      max-width: 100% !important;
    }

    .port-sim-loading {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.92);
    }

    .port-sim-loading[hidden] {
      display: none;
    }

    .port-sim-stats {
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
    }

    .port-sim-scenario {
      border-top: 1px solid var(--border);
      padding: 0.75rem;
      background: #0a1220;
    }

    .port-sim-hypothetical {
      border-top: none;
      flex-shrink: 0;
    }

    .port-sim-reference-caption {
      border-bottom: 1px solid var(--border);
    }

    .port-sim-factors .port-sim-scenario-factors {
      margin: 0;
    }

    .port-sim-scenario-label {
      display: block;
      margin-bottom: 0.45rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .port-sim-scenario-text {
      width: 100%;
      min-height: 3.25rem;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.45);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.82rem;
      line-height: 1.45;
      resize: vertical;
    }

    .port-sim-scenario-text:focus {
      outline: none;
      border-color: rgba(0, 229, 255, 0.35);
    }

    .port-sim-scenario-factors {
      margin: 0.65rem 0 0;
      padding: 0;
      border: none;
    }

    .port-sim-scenario-checks {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem 1rem;
    }

    .port-sim-scenario-checks label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.72rem;
      color: var(--text-muted);
      white-space: nowrap;
      cursor: pointer;
    }

    .port-sim-scenario-checks label:has(input:disabled) {
      cursor: default;
    }

    .port-sim-scenario-checks input[type="checkbox"] {
      width: 0.85rem;
      height: 0.85rem;
      margin: 0;
      accent-color: var(--accent);
    }

    .case-study-risk-panel-body picture,
    .case-study-risk-panel-body img {
      width: 100%;
      height: auto;
      display: block;
    }

    .case-study-risk-panel .case-study-video {
      width: 100%;
      margin: 0;
      aspect-ratio: auto;
      max-height: none;
    }

    .case-study-video-block {
      border-bottom: 1px solid var(--border);
    }

    .case-study-block-label {
      padding: 0.65rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .case-study-ticker-bar {
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

    .case-study-ticker-bar .pdf-deck-picker {
      border-bottom: none;
    }

    .case-study-widgets {
      display: grid;
      grid-template-columns: 1fr 1fr;
      flex: 1;
      min-height: 0;
    }

    .case-study-widget {
      display: flex;
      flex-direction: column;
      min-height: 380px;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

    .case-study-widget:last-child {
      border-right: none;
    }

    .case-study-widget-head {
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .case-study-widget-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .pdf-slide-viewer {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 100%;
    }

    .pdf-deck-picker {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      padding: 0.65rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

    .pdf-deck-picker button {
      padding: 0.35rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      color: var(--text-dim);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

    .pdf-deck-picker button:hover {
      color: var(--text-muted);
      border-color: rgba(0, 229, 255, 0.25);
    }

    .pdf-deck-picker button[aria-selected="true"] {
      color: var(--accent);
      border-color: rgba(0, 229, 255, 0.45);
      background: rgba(0, 229, 255, 0.08);
    }

    .case-study-ticker-bar .pdf-deck-picker {
      border-bottom: none;
    }

    .vol-surface-viewer {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 320px;
      height: 100%;
      overflow: visible;
    }

    .case-study-widget:has(.vol-surface-viewer) .case-study-widget-body {
      overflow: visible;
    }

    .vol-surface-chart {
      flex: 1;
      min-height: 280px;
      width: 100%;
    }

    .vol-surface-caption {
      position: relative;
      z-index: 4;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem;
      padding: 0.55rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      background: #0a1220;
    }

    .vol-surface-caption-sep {
      opacity: 0.45;
    }

    .vol-surface-source-picker {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
    }

    .vol-surface-live-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.12rem 0.38rem;
      border: 1px solid rgba(0, 229, 255, 0.35);
      border-radius: 4px;
      background: rgba(0, 229, 255, 0.08);
      color: var(--accent);
      font-size: inherit;
      letter-spacing: inherit;
      line-height: 1.2;
    }

    .vol-surface-live-dot {
      width: 0.42rem;
      height: 0.42rem;
      border-radius: 50%;
      background: #6b7280;
      flex-shrink: 0;
    }

    .vol-surface-live-tag[data-status="ok"] .vol-surface-live-dot {
      background: #22c55e;
      box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    }

    .vol-surface-live-tag[data-status="error"] .vol-surface-live-dot {
      background: #ef4444;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
    }

    .vol-surface-live-tag[data-status="pending"] .vol-surface-live-dot {
      background: #6b7280;
      animation: vol-live-pulse 1.2s ease-in-out infinite;
    }

    @keyframes vol-live-pulse {
      0%, 100% { opacity: 0.45; }
      50% { opacity: 1; }
    }

    .vol-surface-source-chips {
      display: inline-flex;
      align-items: stretch;
      gap: 0.35rem;
      flex-wrap: wrap;
    }

    .vol-surface-source-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.2rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.62rem;
      letter-spacing: 0.05em;
      text-transform: none;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .vol-surface-source-chip:hover:not(:disabled) {
      border-color: rgba(0, 229, 255, 0.35);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.06);
    }

    .vol-surface-source-chip.is-active {
      border-color: rgba(0, 229, 255, 0.5);
      background: rgba(0, 229, 255, 0.1);
      color: var(--accent);
      cursor: default;
    }

    .vol-surface-source-chip.is-private {
      cursor: not-allowed;
      opacity: 0.5;
      text-decoration: line-through;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

    .vol-surface-source-chip.is-private:hover {
      border-color: var(--border);
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

    .vol-surface-source-chip-dot {
      font-size: 0.55rem;
      line-height: 1;
      opacity: 0.85;
    }

    .vol-surface-source-hint {
      width: 100%;
      margin-top: 0.15rem;
      font-size: 0.52rem;
      letter-spacing: 0.04em;
      text-transform: none;
      color: var(--text-dim);
    }

    .vol-surface-caption-fallback {
      color: var(--text-dim);
    }

    .vol-surface-loading {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

    .vol-surface-loading[hidden] {
      display: none;
    }

    .library-hub-section {
      padding-top: 0.5rem;
      padding-bottom: 2.5rem;
    }

    .library-hub-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }

    .library-hub-card {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--bg-elevated);
    }

    .library-hub-thumb-strip {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      margin-top: 0.5rem;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }

    .library-hub-thumb {
      display: block;
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #050810;
    }

    .library-hub-thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 12%;
      transition: transform 0.35s ease, opacity 0.25s;
    }

    .library-hub-thumb::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 16, 0.55) 100%);
      pointer-events: none;
    }

    .library-hub-thumb:hover img {
      transform: scale(1.03);
      opacity: 0.92;
    }

    .library-hub-card-inner {
      padding: 1.15rem 1.25rem 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      flex: 1;
    }

    .library-hub-card h3 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: -0.01em;
    }

    .library-hub-card-summary {
      margin: 0;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .library-hub-deck-count {
      margin: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .library-hub-cta {
      align-self: flex-start;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .library-hub-featured-label {
      margin: 0.25rem 0 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .library-hub-featured {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(0, 229, 255, 0.04);
      color: var(--text-muted);
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .library-hub-featured:hover {
      border-color: rgba(0, 229, 255, 0.35);
      background: rgba(0, 229, 255, 0.08);
      color: var(--accent);
      opacity: 1;
    }

    .library-hub-featured img {
      flex: 0 0 auto;
      width: 4.5rem;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: 4px;
      border: 1px solid var(--border);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .library-hub-featured-text {
      font-size: 0.82rem;
      line-height: 1.4;
    }

    .library-hub-featured-text strong {
      display: block;
      color: var(--text);
      font-weight: 600;
      margin-bottom: 0.15rem;
    }

    .library-hub-footnote {
      margin: 1rem 0 0;
      font-size: 0.75rem;
      line-height: 1.5;
      color: var(--text-dim);
      max-width: 52rem;
    }

    .alt-data-section {
      padding-top: 2.75rem;
      padding-bottom: 2.75rem;
    }

    .alt-data-section .section-head {
      margin-bottom: 1.25rem;
    }

    .alt-data-title-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem 1rem;
      margin-bottom: 0.35rem;
    }

    .alt-data-title-row h2 {
      margin-bottom: 0;
    }

    .polymarket-trends-updated {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      color: var(--text-dim);
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .polymarket-trends-toolbar {
      margin-bottom: 0.85rem;
    }

    .polymarket-trends-toggle-hint {
      margin: 0 0 0.55rem;
      font-size: 0.78rem;
      line-height: 1.4;
      color: var(--text-muted);
      max-width: 52rem;
    }

    .polymarket-trends-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    .polymarket-trends-tab {
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 500;
      padding: 0.4rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: rgba(5, 8, 16, 0.9);
      color: var(--text-muted);
      cursor: pointer;
      transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    }

    .polymarket-trends-tab:hover {
      border-color: rgba(0, 229, 255, 0.35);
      color: var(--text);
    }

    .polymarket-trends-tab.is-active {
      border-color: rgba(0, 229, 255, 0.45);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.08);
    }

    .polymarket-trends {
      min-height: 4.5rem;
    }

    .polymarket-trends-loading,
    .polymarket-trends-empty {
      margin: 0;
      font-size: 0.88rem;
      color: var(--text-muted);
    }

    .polymarket-trends-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
      gap: 0.75rem;
      width: 100%;
    }

    .polymarket-trends-card {
      margin: 0;
      min-width: 0;
    }

    .polymarket-trends-card-link {
      display: block;
      height: 100%;
      min-height: 6.75rem;
      padding: 0.85rem 0.95rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background:
        radial-gradient(ellipse at 100% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        rgba(5, 8, 16, 0.9);
      color: inherit;
      text-decoration: none;
      transition: border-color 0.15s ease, background 0.15s ease;
    }

    .polymarket-trends-card-link:hover {
      border-color: rgba(0, 229, 255, 0.35);
      background:
        radial-gradient(ellipse at 100% 0%, rgba(0, 229, 255, 0.1) 0%, transparent 55%),
        rgba(8, 12, 22, 0.95);
    }

    .polymarket-trends-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.45rem;
    }

    .polymarket-trends-yes {
      font-family: var(--font-mono);
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: -0.02em;
    }

    .polymarket-trends-change {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      color: var(--text-dim);
      white-space: nowrap;
    }

    .polymarket-trends-change.is-up {
      color: #5ee89a;
    }

    .polymarket-trends-change.is-down {
      color: #ff8a8a;
    }

    .polymarket-trends-change.is-featured {
      display: block;
      font-size: 1.05rem;
      font-weight: 500;
      letter-spacing: -0.01em;
      margin-bottom: 0.4rem;
    }

    .polymarket-trends-card--trending .polymarket-trends-title {
      margin-bottom: 0.35rem;
    }

    .polymarket-trends-title {
      margin: 0 0 0.4rem;
      font-size: 0.82rem;
      line-height: 1.35;
      color: var(--text);
    }

    .polymarket-trends-meta {
      margin: 0;
      font-family: var(--font-mono);
      font-size: 0.68rem;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .polymarket-trends-disclaimer {
      margin: 0.65rem 0 0;
      font-size: 0.68rem;
      line-height: 1.45;
      color: var(--text-dim);
      max-width: 52rem;
    }

    .tv-market-context {
      margin-bottom: 2rem;
    }

    .tv-market-context-intro {
      margin: 0 0 1rem;
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      max-width: 52rem;
    }

    .tv-market-page-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin: 0 0 1rem;
      padding: 0.55rem 0.95rem;
      border: 1px solid rgba(0, 229, 255, 0.45);
      border-radius: 6px;
      background: rgba(0, 229, 255, 0.1);
      color: var(--accent);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .tv-market-page-cta:hover {
      border-color: rgba(0, 229, 255, 0.65);
      background: rgba(0, 229, 255, 0.16);
      color: #fff;
      text-decoration: none;
      opacity: 1;
    }

    .tv-market-page-cta-arrow {
      font-size: 0.95rem;
      line-height: 1;
      transition: transform 0.15s ease;
    }

    .tv-market-page-cta:hover .tv-market-page-cta-arrow {
      transform: translateX(3px);
    }

    .tv-market-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      width: 100%;
    }

@media (min-width: 900px) {
      .tv-market-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
      }
    }

    .tv-panel {
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(5, 8, 16, 0.72);
      min-width: 0;
      overflow: hidden;
    }

    .tv-panel-head {
      padding: 0.65rem 0.85rem 0.5rem;
      border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    }

    .tv-panel-head h3 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
    }

    .tv-panel-head p {
      margin: 0.25rem 0 0;
      font-size: 0.76rem;
      color: var(--text-dim);
      line-height: 1.4;
    }

    .tv-news-toolbar {
      padding: 0.55rem 0.85rem 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    .tv-news-tab {
      font-family: inherit;
      font-size: 0.76rem;
      font-weight: 500;
      padding: 0.38rem 0.7rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: rgba(5, 8, 16, 0.9);
      color: var(--text-muted);
      cursor: pointer;
      transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    }

    .tv-news-tab:hover {
      border-color: rgba(0, 229, 255, 0.35);
      color: var(--text);
    }

    .tv-news-tab.is-active {
      border-color: rgba(0, 229, 255, 0.45);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.08);
    }

    .tv-news-hint {
      margin: 0;
      padding: 0.45rem 0.85rem 0.55rem;
      font-size: 0.74rem;
      line-height: 1.45;
      color: var(--text-dim);
    }

    .tv-news-stage,
    .tv-market-stage {
      min-height: 22rem;
      height: 26rem;
      position: relative;
    }

    .tv-market-stage {
      min-height: 24rem;
      height: 28rem;
    }

    .tv-news-stage .tradingview-widget-container,
    .tv-market-stage .tradingview-widget-container,
    .tv-forex-heatmap-stage .tradingview-widget-container {
      height: 100%;
    }

    .tv-panel--forex-heatmap {
      margin-top: 1rem;
    }

    .tv-forex-heatmap-stage {
      min-height: 22rem;
      height: 26rem;
      position: relative;
    }

    .tv-market-context:not(.is-loaded) .tv-news-stage::before,
    .tv-market-context:not(.is-loaded) .tv-market-stage::before,
    .tv-market-context:not(.is-loaded) .tv-forex-heatmap-stage::before {
      content: "Loading market widgets…";
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      color: var(--text-muted);
      pointer-events: none;
    }

    .tv-market-footnote {
      margin: 0.75rem 0 0;
      font-size: 0.74rem;
      line-height: 1.45;
      color: var(--text-dim);
      max-width: 52rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.65rem;
    }

    .tv-market-page-cta--compact {
      margin: 0;
    }

    .tv-market-disclaimer {
      margin: 0.45rem 0 0;
      font-size: 0.74rem;
      line-height: 1.45;
      color: var(--text-dim);
    }

    .alt-data-subhead {
      margin: 0 0 0.85rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
    }

    .pdf-slide-stage {
      position: relative;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 16 / 9;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
      overflow: hidden;
    }

    .pdf-slide-stage canvas {
      display: block;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    }

    .pdf-slide-loading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.85);
    }

    .pdf-slide-loading[hidden] {
      display: none;
    }

    .pdf-slide-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      padding: 0.65rem 0.75rem;
      border-top: 1px solid var(--border);
      background: #0a1220;
    }

    .pdf-slide-controls button {
      width: 2rem;
      height: 2rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-size: 1.1rem;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .pdf-slide-controls button:hover:not(:disabled) {
      color: var(--accent);
      border-color: rgba(0, 229, 255, 0.35);
      background: rgba(0, 229, 255, 0.06);
    }

    .pdf-slide-controls button:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .pdf-slide-status {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      color: var(--text-dim);
      min-width: 5.5rem;
      text-align: center;
    }

    .case-study-video-placeholder {
      aspect-ratio: 16 / 9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.65rem;
      padding: 2rem 1.5rem;
      text-align: center;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 55%),
        linear-gradient(160deg, #0a1220 0%, #050810 100%);
    }

    .case-study-video-placeholder[hidden] {
      display: none;
    }

    .case-study-video-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      opacity: 0.85;
    }

    .case-study-video-placeholder p {
      font-size: 0.88rem;
      color: var(--text-muted);
      max-width: 18rem;
      line-height: 1.5;
    }

    .case-study-video-path {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.04em;
      color: var(--text-dim);
      padding: 0.35rem 0.55rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

    .case-study-video {
      width: 100%;
      display: block;
      aspect-ratio: 16 / 9;
      background: #000;
    }

    .case-study-video[hidden] {
      display: none;
    }

    .case-study-pipeline {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    .case-study-pipeline:not(.intake-pipeline) span {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.35rem 0.6rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

    .intake-pipeline .intake-stage {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.35rem 0.6rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

    .case-study-outcomes {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }

    .case-study-outcomes li {
      position: relative;
      padding-left: 1rem;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .case-study-outcomes li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.7;
    }

    .case-study-disclaimer {
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.5;
      padding-top: 0.25rem;
      border-top: 1px solid var(--border);
    }

    .case-study-disclaimer a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .case-study-disclaimer strong {
      color: var(--text-muted);
      font-weight: 600;
    }

    .case-study-body--quant,
    .case-study-body--intake {
      grid-template-columns: 1fr;
    }

    .case-study-body--intake .case-study-content {
      grid-column: 1;
      border-left: none;
      margin-left: 0;
    }

    .intake-pipeline-block {
      padding: 0.85rem 1rem 0.65rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
    }

    .intake-pipeline-block .case-study-block-label {
      margin: 0 0 0.55rem;
      padding: 0;
      border: none;
      background: transparent;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .intake-pipeline {
      margin: 0;
    }

    .intake-pipeline .intake-stage {
      opacity: 0.55;
      transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .intake-pipeline .intake-stage--active {
      opacity: 1;
      border-color: rgba(0, 229, 255, 0.55);
      background: rgba(0, 229, 255, 0.14);
      color: var(--accent);
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }

    .intake-pipeline .intake-stage--done {
      opacity: 1;
      border-color: rgba(57, 255, 20, 0.4);
      background: rgba(57, 255, 20, 0.1);
      color: #86efac;
    }

    .intake-pipeline .intake-stage--active.intake-stage--done {
      border-color: rgba(0, 229, 255, 0.55);
      box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25), 0 0 12px rgba(0, 229, 255, 0.12);
    }

    .case-study-intake-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

    .case-study-intake-split {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      align-items: stretch;
    }

    .case-study-intake-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

    .case-study-intake-panel:last-child {
      border-right: none;
    }

    .case-study-intake-panel-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: #000;
    }

    .intake-agent-mount {
      position: relative;
      flex: 1;
      min-height: 420px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: stretch;
      padding: 0;
      overflow: hidden;
      /* Fixed descendants (widget :host) position relative to this box, not the viewport */
      transform: translateZ(0);
      background:
        radial-gradient(ellipse at 50% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

    .intake-agent-mount elevenlabs-convai {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-height: 360px;
      margin: 0;
      z-index: 2;
      --elevenlabs-convai-widget-width: 100%;
      --elevenlabs-convai-widget-height: 100%;
    }

    .intake-agent-loading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.92);
      z-index: 1;
    }

    .intake-agent-loading[hidden] {
      display: none;
    }

    .intake-agent-hint {
      padding: 0.55rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
      line-height: 1.45;
    }

    .intake-agent-debug {
      margin: 0;
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.52rem;
      letter-spacing: 0.04em;
      background: #0a1220;
      line-height: 1.4;
      color: var(--accent);
      max-height: 4.5rem;
      overflow: auto;
    }

    .intake-agent-debug[hidden] {
      display: none !important;
    }

    .intake-record {
      flex: 1;
      padding: 0.85rem 0.9rem 1rem;
      background: #0a1220;
      overflow: auto;
    }

    .intake-record-intro {
      margin: 0 0 0.75rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .intake-record-status {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.65rem;
      margin: 0 0 0.75rem;
      padding: 0.45rem 0.55rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }

    .intake-record-status strong {
      color: var(--accent);
      font-weight: 600;
    }

    #intake-last-tool {
      color: var(--accent);
      opacity: 0.85;
    }

    .intake-record-row--flash dd {
      animation: intake-field-flash 0.65s ease;
    }

    @keyframes intake-field-flash {
      0% { color: #86efac; }
      100% { color: var(--text-muted); }
    }

    .intake-record-row dd[data-risk="true"] {
      color: #fca5a5;
    }

    .intake-record-grid {
      display: grid;
      gap: 0.55rem;
      margin: 0;
    }

    .intake-record-row {
      display: grid;
      grid-template-columns: 7.5rem 1fr;
      gap: 0.65rem;
      align-items: start;
      padding: 0.45rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .intake-record-row dt {
      margin: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .intake-record-row dd {
      margin: 0;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.4;
      word-break: break-word;
    }

    .intake-record-row dd[data-empty="true"]::before {
      content: "—";
      color: var(--text-dim);
    }

    .case-study-intake-governance {
      border-top: 1px solid var(--border);
      padding: 0.85rem 1rem;
      background: #0a1220;
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

    .case-study-intake-governance strong {
      color: var(--text-muted);
      font-weight: 600;
    }

    .case-study-intake-live-disclaimer {
      /* Placed directly under intake governance in the live voice demo */
      border-top: none;
      padding: 0 1rem 0 1rem;
      margin: 0.65rem 0 0;
    }

    .case-study-body--n8n {
      grid-template-columns: 1fr;
    }

    .case-study-body--n8n .case-study-content {
      grid-column: 1;
      border-left: none;
      margin-left: 0;
    }

    .case-study-n8n-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

    .case-study-n8n-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: stretch;
    }

    .case-study-n8n-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

    .case-study-n8n-panel:last-child {
      border-right: none;
    }

    .case-study-n8n-panel-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: #000;
    }

    .n8n-workflow-trigger {
      padding: 1rem 1rem 0.85rem;
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

    .n8n-workflow-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      align-items: center;
      margin-top: 0.65rem;
    }

    .n8n-ticker-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
      width: 100%;
      margin-bottom: 0.15rem;
    }

    .n8n-ticker-input {
      flex: 1;
      min-width: 8rem;
      max-width: 12rem;
      padding: 0.5rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: #0a1220;
      color: var(--text);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.85rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .n8n-ticker-input:focus {
      outline: none;
      border-color: rgba(0, 229, 255, 0.45);
      box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.12);
    }

    .n8n-trigger-btn {
      padding: 0.5rem 1rem;
      border: 1px solid rgba(0, 229, 255, 0.45);
      border-radius: 6px;
      background: rgba(0, 229, 255, 0.12);
      color: var(--accent);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    }

    .n8n-trigger-btn:hover:not(:disabled) {
      background: rgba(0, 229, 255, 0.2);
      border-color: var(--accent);
    }

    .n8n-trigger-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .n8n-workflow-hint {
      margin-top: 0.55rem;
      font-size: 0.72rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

    .n8n-pipeline-block {
      padding: 0.85rem 1rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
    }

    .n8n-pipeline-block .case-study-block-label {
      margin: 0 0 0.55rem;
      padding: 0;
      border: none;
      background: transparent;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .n8n-pipeline-idle {
      margin: 0;
      font-size: 0.75rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

    .n8n-progress-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }

    .n8n-progress-wrap[hidden],
    .n8n-run-summary[hidden],
    .n8n-stage-track[hidden],
    .n8n-response-details[hidden],
    .n8n-run-idle[hidden] {
      display: none !important;
    }

    .n8n-progress-meta {
      display: flex;
      justify-content: space-between;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
    }

    .n8n-progress-bar {
      height: 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .n8n-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(0, 229, 255, 0.85), rgba(57, 255, 20, 0.75));
      transition: width 0.35s ease;
    }

    .n8n-progress-bar[data-tone="partial"] .n8n-progress-fill {
      background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(0, 229, 255, 0.6));
    }

    .n8n-progress-bar[data-tone="error"] .n8n-progress-fill {
      background: linear-gradient(90deg, rgba(255, 80, 80, 0.9), rgba(251, 191, 36, 0.5));
    }

    .n8n-demo-tickers {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.5rem;
    }

    .n8n-demo-ticker {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      border: 1px solid var(--border);
      color: var(--text-dim);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .n8n-demo-ticker:hover {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-muted);
    }

    .n8n-demo-ticker--ok {
      border-color: rgba(57, 255, 20, 0.35);
      color: #86efac;
    }

    .n8n-demo-ticker--warn {
      border-color: rgba(251, 191, 36, 0.45);
      color: #fcd34d;
    }

    .n8n-source-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem;
      margin-top: 0.55rem;
    }

    .n8n-source-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .n8n-source-chip {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.28rem 0.55rem;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-dim);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .n8n-source-chip:hover {
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
    }

    .n8n-source-chip.is-active {
      border-color: rgba(0, 229, 255, 0.45);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.08);
    }

    .n8n-source-chip--private {
      opacity: 0.55;
      cursor: default;
      text-decoration: line-through;
    }

    .n8n-run-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 280px;
      max-height: 420px;
      padding: 0.85rem 1rem 1rem;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        #050810;
      overflow: hidden;
    }

    .n8n-run-status {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 1rem;
      margin-bottom: 0.55rem;
      flex-shrink: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
    }

    .n8n-run-status strong {
      color: var(--accent);
      font-weight: 500;
    }

    .n8n-run-status[data-state="ok"] strong {
      color: #86efac;
    }

    .n8n-run-status[data-state="partial"] strong {
      color: #fcd34d;
    }

    .n8n-run-status[data-state="error"] strong {
      color: #fca5a5;
    }

    .n8n-run-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.45rem 0.75rem;
      margin-bottom: 0.65rem;
      flex-shrink: 0;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

    .n8n-summary-item {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
    }

    .n8n-summary-item--wide {
      grid-column: 1 / -1;
    }

    .n8n-summary-item span {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.52rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .n8n-summary-item strong {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.35;
      word-break: break-word;
    }

    .n8n-summary-item strong.n8n-summary-message {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
    }

    .n8n-stage-track {
      list-style: none;
      margin: 0 0 0.55rem;
      padding: 0;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

    .n8n-step {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.55rem;
      align-items: start;
      padding: 0.5rem 0.65rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .n8n-step:last-child {
      border-bottom: none;
    }

    .n8n-step-marker {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      padding-top: 0.15rem;
    }

    .n8n-step-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid var(--text-dim);
      background: transparent;
      flex-shrink: 0;
    }

    .n8n-step-line {
      width: 2px;
      flex: 1;
      min-height: 0.75rem;
      margin-top: 0.2rem;
      background: rgba(255, 255, 255, 0.08);
    }

    .n8n-step:last-child .n8n-step-line {
      display: none;
    }

    .n8n-step--ok .n8n-step-dot {
      border-color: #86efac;
      background: rgba(57, 255, 20, 0.35);
      box-shadow: 0 0 8px rgba(57, 255, 20, 0.25);
    }

    .n8n-step--ok .n8n-step-line {
      background: rgba(57, 255, 20, 0.25);
    }

    .n8n-step--error .n8n-step-dot {
      border-color: #fca5a5;
      background: rgba(255, 80, 80, 0.35);
      box-shadow: 0 0 8px rgba(255, 80, 80, 0.2);
    }

    .n8n-step--degraded .n8n-step-dot {
      border-color: #fcd34d;
      background: rgba(251, 191, 36, 0.35);
    }

    .n8n-step--pending .n8n-step-dot {
      border-color: rgba(0, 229, 255, 0.35);
      animation: n8n-pulse 1.2s ease-in-out infinite;
    }

    .n8n-step--running .n8n-step-dot {
      border-color: var(--accent);
      background: rgba(0, 229, 255, 0.35);
      animation: n8n-pulse 1s ease-in-out infinite;
    }

    @keyframes n8n-pulse {
      0%, 100% { opacity: 0.45; }
      50% { opacity: 1; }
    }

    .n8n-step-body {
      min-width: 0;
    }

    .n8n-step-label {
      display: block;
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.3;
    }

    .n8n-step-meta {
      display: block;
      margin-top: 0.15rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.04em;
      color: var(--text-dim);
    }

    .n8n-step--ok .n8n-step-meta {
      color: #86efac;
    }

    .n8n-step--error .n8n-step-meta {
      color: #fca5a5;
    }

    .n8n-step--degraded .n8n-step-meta {
      color: #fcd34d;
    }

    .n8n-step-msg {
      display: block;
      margin-top: 0.2rem;
      font-size: 0.68rem;
      color: #fca5a5;
      line-height: 1.35;
    }

    .n8n-response-details {
      flex-shrink: 0;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

    .n8n-response-details summary {
      cursor: pointer;
      padding: 0.5rem 0.65rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      user-select: none;
    }

    .n8n-response-details summary:hover {
      color: var(--accent);
    }

    .n8n-response-details[open] summary {
      border-bottom: 1px solid var(--border);
      color: var(--accent);
    }

    .n8n-run-log {
      margin: 0;
      max-height: 9.5rem;
      padding: 0.55rem 0.65rem;
      color: var(--text-muted);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      line-height: 1.45;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .n8n-run-idle {
      margin: 0;
      flex: 1;
      font-size: 0.78rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

    .case-study-concept-video-row,
    .n8n-workflow-video-row {
      border-top: 1px solid var(--border);
      padding: 1rem 1.25rem 1.15rem;
      background: #0a1220;
    }

    .case-study-concept-video-row--lead,
    .n8n-workflow-video-row--lead {
      border-top: none;
      border-bottom: 1px solid var(--border);
    }

    .case-study-concept-video-caption,
    .n8n-video-caption {
      margin: 0 0 0.65rem;
      font-size: 0.78rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

    .case-study-concept-video-block .case-study-video,
    .n8n-workflow-video-block .case-study-video {
      width: 100%;
      max-height: min(52vh, 420px);
      border-radius: 8px;
      background: #000;
    }

    .case-study-collapsible {
      border-top: 1px solid var(--border);
      background: #0a1220;
    }

    .case-study-collapsible summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      cursor: pointer;
      padding: 0.85rem 1.25rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      list-style: none;
      user-select: none;
    }

    .case-study-collapsible summary::-webkit-details-marker {
      display: none;
    }

    .case-study-collapsible-title {
      flex: 1;
      min-width: 0;
      text-transform: none;
      letter-spacing: 0.03em;
      line-height: 1.4;
      font-size: 0.68rem;
    }

    .case-study-collapsible-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
      text-transform: none;
      letter-spacing: 0.04em;
    }

    .case-study-collapsible:not([open]) .case-study-expand-hint {
      display: inline;
    }

    .case-study-collapsible-chevron {
      width: 0.45rem;
      height: 0.45rem;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(-45deg);
      transition: transform 0.2s ease, opacity 0.2s;
      opacity: 0.75;
    }

    .case-study-collapsible[open] .case-study-collapsible-chevron {
      transform: rotate(45deg);
      margin-top: 0.12rem;
    }

    .case-study-collapsible summary:hover {
      color: var(--accent);
    }

    .case-study-collapsible summary:hover .case-study-collapsible-chevron {
      opacity: 1;
    }

    .case-study-collapsible[open] summary {
      border-bottom: 1px solid var(--border);
      color: var(--accent);
    }

    .case-study-collapsible-body {
      padding: 0.85rem 1.25rem 1rem;
    }

    .case-study-collapsible-body .case-study-pipeline {
      margin-bottom: 1rem;
    }

    .case-study-collapsible-body .case-study-outcomes {
      margin-bottom: 0.75rem;
    }

    .case-study-live-demo-inner .case-study-widgets-row,
    .case-study-live-demo-inner .case-study-risk-video-row {
      grid-column: auto;
      grid-row: auto;
    }

    .case-study-live-demo-inner .case-study-n8n-row,
    .case-study-live-demo-inner .case-study-intake-row {
      border-top: none;
    }

    .case-study-expand-hint {
      display: none;
      font-size: 0.55rem;
      color: var(--accent);
      opacity: 0.95;
    }

    .case-study-n8n-governance {
      border-top: 1px solid var(--border);
      padding: 0.85rem 1rem;
      background: #0a1220;
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

    .case-study-transcript {
      font-size: 0.88rem;
      color: var(--text-muted);
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.02);
    }

    .case-study-transcript summary {
      cursor: pointer;
      padding: 0.75rem 1rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      list-style: none;
    }

    .case-study-transcript summary::-webkit-details-marker {
      display: none;
    }

    .case-study-transcript p {
      padding: 0 1rem 1rem;
      line-height: 1.55;
      font-size: 0.86rem;
    }

    .site-footer-links {
      display: flex;
      gap: 1.25rem;
      flex-wrap: wrap;
    }

    .site-footer-links a {
      color: var(--text-dim);
    }

    .footer-social {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .footer-social svg {
      width: 13px;
      height: 13px;
      fill: currentColor;
      opacity: 0.8;
    }

    /* Footer */
    .site-footer {
      margin-top: 2rem;
      padding: 2rem 0 2.5rem;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.68rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
    }

@media (max-width: 960px) {
      .case-study-risk-split {
        grid-template-columns: 1fr;
      }

      .case-study-risk-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-risk-panel:last-child {
        border-bottom: none;
      }

      .port-sim-visual,
      .port-sim-viewer {
        min-height: 300px;
      }

      .port-sim-chart,
      .port-sim-loading {
        min-height: 260px;
      }

      .case-study-slot,
      .glossary-teaser-slot {
        padding: 1.75rem 1rem 2.25rem;
      }

      .case-study-break {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.75rem 1rem;
      }

      .case-study-break-line {
        width: 100%;
        max-width: 12rem;
      }

      .case-study-intake-split {
        grid-template-columns: 1fr;
      }

      .case-study-intake-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-intake-panel:last-child {
        border-bottom: none;
      }

      .case-study-n8n-split {
        grid-template-columns: 1fr;
      }

      .case-study-n8n-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-n8n-panel:last-child {
        border-bottom: none;
      }

      .intake-agent-mount {
        min-height: 360px;
      }

      .intake-record-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
      }
    }

@media (max-width: 860px) {
      .hero {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
      }

      .team-grid,
      .contact-bar,
      .services-grid,
      .library-hub-grid,
      .case-study-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
      }

      .case-study-visual {
        grid-column: 1;
        grid-row: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-content {
        grid-column: 1;
        grid-row: auto;
        border-left: none;
        margin-left: 0;
        border-bottom: 1px solid var(--border);
      }

      .case-study-widgets-row {
        grid-column: 1;
        grid-row: auto;
      }

      .case-study-risk-video-row {
        grid-column: 1;
        grid-row: auto;
      }

      .case-study-risk-split {
        grid-template-columns: 1fr;
      }

      .case-study-risk-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-risk-panel:last-child {
        border-bottom: none;
      }

      .port-sim-scenario-checks {
        gap: 0.4rem 0.75rem;
      }

      .port-sim-scenario-checks label {
        white-space: normal;
      }

      .case-study-widgets {
        grid-template-columns: 1fr;
      }

      .case-study-widget {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .case-study-widget:last-child {
        border-bottom: none;
      }
    }

.case-study-quant-process {
      border-bottom: 1px solid var(--border);
      background: #000;
    }

.case-study-quant-process-figure {
      margin: 0;
      padding: 0.65rem 1rem 1rem;
    }

.case-study-quant-process-figure picture,
    .case-study-quant-process-figure img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
    }

.case-study-widgets-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

.case-study-risk-video-row {
      grid-column: 1 / -1;
      grid-row: 3;
      background: #000;
      border-top: 1px solid var(--border);
    }

.case-study-risk-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: start;
    }

.case-study-risk-video-block {
      border-top: 1px solid var(--border);
    }

.case-study-risk-video-block .case-study-risk-panel-body {
      min-height: 238px;
      justify-content: center;
      align-items: center;
    }

.case-study-risk-video-block .case-study-video {
      width: 85%;
      max-width: 85%;
      margin-left: auto;
      margin-right: auto;
    }

.case-study-risk-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      border-right: 1px solid var(--border);
    }

.case-study-risk-panel:last-child {
      border-right: none;
    }

.case-study-risk-panel-body {
      flex: 1;
      display: flex;
      align-items: stretch;
      min-height: 0;
      background: #000;
    }

.case-study-risk-panel-body--stack {
      flex-direction: column;
    }

.port-sim-visual {
      flex-shrink: 0;
      min-height: 340px;
      max-width: 100%;
    }

.port-sim-reference-body {
      flex: 1;
      min-height: 0;
    }

.port-sim-reference-body picture {
      flex: 1;
      min-height: 0;
    }

.port-sim-reference-body img {
      width: 100%;
      height: auto;
      max-width: 100%;
    }

.port-sim-reference-caption {
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
      text-align: center;
    }

.port-sim-viewer {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 340px;
      max-width: 100%;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

.port-sim-chart {
      flex: 1;
      min-height: 300px;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

.port-sim-chart .js-plotly-plot,
    .port-sim-chart .plot-container,
    .port-sim-chart .svg-container {
      max-width: 100% !important;
    }

.port-sim-loading {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.92);
    }

.port-sim-loading[hidden] {
      display: none;
    }

.port-sim-stats {
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
    }

.port-sim-scenario {
      border-top: 1px solid var(--border);
      padding: 0.75rem;
      background: #0a1220;
    }

.port-sim-hypothetical {
      border-top: none;
      flex-shrink: 0;
    }

.port-sim-reference-caption {
      border-bottom: 1px solid var(--border);
    }

.port-sim-factors .port-sim-scenario-factors {
      margin: 0;
    }

.port-sim-scenario-label {
      display: block;
      margin-bottom: 0.45rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.port-sim-scenario-text {
      width: 100%;
      min-height: 3.25rem;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.45);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.82rem;
      line-height: 1.45;
      resize: vertical;
    }

.port-sim-scenario-text:focus {
      outline: none;
      border-color: rgba(0, 229, 255, 0.35);
    }

.port-sim-scenario-factors {
      margin: 0.65rem 0 0;
      padding: 0;
      border: none;
    }

.port-sim-scenario-checks {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem 1rem;
    }

.port-sim-scenario-checks label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.72rem;
      color: var(--text-muted);
      white-space: nowrap;
      cursor: pointer;
    }

.port-sim-scenario-checks label:has(input:disabled) {
      cursor: default;
    }

.port-sim-scenario-checks input[type="checkbox"] {
      width: 0.85rem;
      height: 0.85rem;
      margin: 0;
      accent-color: var(--accent);
    }

.case-study-risk-panel-body picture,
    .case-study-risk-panel-body img {
      width: 100%;
      height: auto;
      display: block;
    }

.case-study-risk-panel .case-study-video {
      width: 100%;
      margin: 0;
      aspect-ratio: auto;
      max-height: none;
    }

.case-study-block-label {
      padding: 0.65rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
    }

.case-study-ticker-bar {
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

.case-study-ticker-bar .pdf-deck-picker {
      border-bottom: none;
    }

.case-study-widgets {
      display: grid;
      grid-template-columns: 1fr 1fr;
      flex: 1;
      min-height: 0;
    }

.case-study-widget {
      display: flex;
      flex-direction: column;
      min-height: 380px;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

.case-study-widget:last-child {
      border-right: none;
    }

.case-study-widget-head {
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.case-study-widget-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

.pdf-slide-viewer {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 100%;
    }

.pdf-deck-picker {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      padding: 0.65rem 0.75rem;
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

.pdf-deck-picker button {
      padding: 0.35rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      color: var(--text-dim);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

.pdf-deck-picker button:hover {
      color: var(--text-muted);
      border-color: rgba(0, 229, 255, 0.25);
    }

.pdf-deck-picker button[aria-selected="true"] {
      color: var(--accent);
      border-color: rgba(0, 229, 255, 0.45);
      background: rgba(0, 229, 255, 0.08);
    }

.case-study-ticker-bar .pdf-deck-picker {
      border-bottom: none;
    }

.vol-surface-viewer {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 320px;
      height: 100%;
      overflow: visible;
    }

.case-study-widget:has(.vol-surface-viewer) .case-study-widget-body {
      overflow: visible;
    }

.vol-surface-chart {
      flex: 1;
      min-height: 280px;
      width: 100%;
    }

.vol-surface-caption {
      position: relative;
      z-index: 4;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem;
      padding: 0.55rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      background: #0a1220;
    }

.vol-surface-caption-sep {
      opacity: 0.45;
    }

.vol-surface-source-picker {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
    }

.vol-surface-live-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.12rem 0.38rem;
      border: 1px solid rgba(0, 229, 255, 0.35);
      border-radius: 4px;
      background: rgba(0, 229, 255, 0.08);
      color: var(--accent);
      font-size: inherit;
      letter-spacing: inherit;
      line-height: 1.2;
    }

.vol-surface-live-dot {
      width: 0.42rem;
      height: 0.42rem;
      border-radius: 50%;
      background: #6b7280;
      flex-shrink: 0;
    }

.vol-surface-live-tag[data-status="ok"] .vol-surface-live-dot {
      background: #22c55e;
      box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    }

.vol-surface-live-tag[data-status="error"] .vol-surface-live-dot {
      background: #ef4444;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
    }

.vol-surface-live-tag[data-status="pending"] .vol-surface-live-dot {
      background: #6b7280;
      animation: vol-live-pulse 1.2s ease-in-out infinite;
    }

.vol-surface-source-chips {
      display: inline-flex;
      align-items: stretch;
      gap: 0.35rem;
      flex-wrap: wrap;
    }

.vol-surface-source-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.2rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.62rem;
      letter-spacing: 0.05em;
      text-transform: none;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

.vol-surface-source-chip:hover:not(:disabled) {
      border-color: rgba(0, 229, 255, 0.35);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.06);
    }

.vol-surface-source-chip.is-active {
      border-color: rgba(0, 229, 255, 0.5);
      background: rgba(0, 229, 255, 0.1);
      color: var(--accent);
      cursor: default;
    }

.vol-surface-source-chip.is-private {
      cursor: not-allowed;
      opacity: 0.5;
      text-decoration: line-through;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

.vol-surface-source-chip.is-private:hover {
      border-color: var(--border);
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

.vol-surface-source-chip-dot {
      font-size: 0.55rem;
      line-height: 1;
      opacity: 0.85;
    }

.vol-surface-source-hint {
      width: 100%;
      margin-top: 0.15rem;
      font-size: 0.52rem;
      letter-spacing: 0.04em;
      text-transform: none;
      color: var(--text-dim);
    }

.vol-surface-caption-fallback {
      color: var(--text-dim);
    }

.vol-surface-loading {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

.vol-surface-loading[hidden] {
      display: none;
    }

.pdf-slide-stage {
      position: relative;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 16 / 9;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
      overflow: hidden;
    }

.pdf-slide-stage canvas {
      display: block;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    }

.pdf-slide-loading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.85);
    }

.pdf-slide-loading[hidden] {
      display: none;
    }

.pdf-slide-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      padding: 0.65rem 0.75rem;
      border-top: 1px solid var(--border);
      background: #0a1220;
    }

.pdf-slide-controls button {
      width: 2rem;
      height: 2rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-size: 1.1rem;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

.pdf-slide-controls button:hover:not(:disabled) {
      color: var(--accent);
      border-color: rgba(0, 229, 255, 0.35);
      background: rgba(0, 229, 255, 0.06);
    }

.pdf-slide-controls button:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

.pdf-slide-status {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      color: var(--text-dim);
      min-width: 5.5rem;
      text-align: center;
    }

.case-study-pipeline:not(.intake-pipeline) span {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.35rem 0.6rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

.intake-pipeline .intake-stage {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.35rem 0.6rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.02);
    }

.intake-pipeline-block {
      padding: 0.85rem 1rem 0.65rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
    }

.intake-pipeline-block .case-study-block-label {
      margin: 0 0 0.55rem;
      padding: 0;
      border: none;
      background: transparent;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.intake-pipeline {
      margin: 0;
    }

.intake-pipeline .intake-stage {
      opacity: 0.55;
      transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

.intake-pipeline .intake-stage--active {
      opacity: 1;
      border-color: rgba(0, 229, 255, 0.55);
      background: rgba(0, 229, 255, 0.14);
      color: var(--accent);
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }

.intake-pipeline .intake-stage--done {
      opacity: 1;
      border-color: rgba(57, 255, 20, 0.4);
      background: rgba(57, 255, 20, 0.1);
      color: #86efac;
    }

.intake-pipeline .intake-stage--active.intake-stage--done {
      border-color: rgba(0, 229, 255, 0.55);
      box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25), 0 0 12px rgba(0, 229, 255, 0.12);
    }

.case-study-intake-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

.case-study-intake-split {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      align-items: stretch;
    }

.case-study-intake-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

.case-study-intake-panel:last-child {
      border-right: none;
    }

.case-study-intake-panel-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: #000;
    }

.intake-agent-mount {
      position: relative;
      flex: 1;
      min-height: 420px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: stretch;
      padding: 0;
      overflow: hidden;
      /* Fixed descendants (widget :host) position relative to this box, not the viewport */
      transform: translateZ(0);
      background:
        radial-gradient(ellipse at 50% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
        #050810;
    }

.intake-agent-mount elevenlabs-convai {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-height: 360px;
      margin: 0;
      z-index: 2;
      --elevenlabs-convai-widget-width: 100%;
      --elevenlabs-convai-widget-height: 100%;
    }

.intake-agent-loading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      background: rgba(5, 8, 16, 0.92);
      z-index: 1;
    }

.intake-agent-loading[hidden] {
      display: none;
    }

.intake-agent-hint {
      padding: 0.55rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      background: #0a1220;
      line-height: 1.45;
    }

.intake-agent-debug {
      margin: 0;
      padding: 0.45rem 0.75rem;
      border-top: 1px solid var(--border);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.52rem;
      letter-spacing: 0.04em;
      background: #0a1220;
      line-height: 1.4;
      color: var(--accent);
      max-height: 4.5rem;
      overflow: auto;
    }

.intake-agent-debug[hidden] {
      display: none !important;
    }

.intake-record {
      flex: 1;
      padding: 0.85rem 0.9rem 1rem;
      background: #0a1220;
      overflow: auto;
    }

.intake-record-intro {
      margin: 0 0 0.75rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

.intake-record-status {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.65rem;
      margin: 0 0 0.75rem;
      padding: 0.45rem 0.55rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }

.intake-record-status strong {
      color: var(--accent);
      font-weight: 600;
    }

#intake-last-tool {
      color: var(--accent);
      opacity: 0.85;
    }

.intake-record-row--flash dd {
      animation: intake-field-flash 0.65s ease;
    }

@keyframes intake-field-flash {
      0% { color: #86efac; }
      100% { color: var(--text-muted); }
    }

.intake-record-row dd[data-risk="true"] {
      color: #fca5a5;
    }

.intake-record-grid {
      display: grid;
      gap: 0.55rem;
      margin: 0;
    }

.intake-record-row {
      display: grid;
      grid-template-columns: 7.5rem 1fr;
      gap: 0.65rem;
      align-items: start;
      padding: 0.45rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

.intake-record-row dt {
      margin: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.intake-record-row dd {
      margin: 0;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.4;
      word-break: break-word;
    }

.intake-record-row dd[data-empty="true"]::before {
      content: "—";
      color: var(--text-dim);
    }

.case-study-intake-governance {
      border-top: 1px solid var(--border);
      padding: 0.85rem 1rem;
      background: #0a1220;
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

.case-study-intake-governance strong {
      color: var(--text-muted);
      font-weight: 600;
    }

.case-study-intake-live-disclaimer {
      /* Placed directly under intake governance in the live voice demo */
      border-top: none;
      padding: 0 1rem 0 1rem;
      margin: 0.65rem 0 0;
    }

.case-study-n8n-row {
      grid-column: 1 / -1;
      grid-row: 2;
      background: #000;
      border-top: 1px solid var(--border);
    }

.case-study-n8n-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: stretch;
    }

.case-study-n8n-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-right: 1px solid var(--border);
    }

.case-study-n8n-panel:last-child {
      border-right: none;
    }

.case-study-n8n-panel-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: #000;
    }

.n8n-workflow-trigger {
      padding: 1rem 1rem 0.85rem;
      border-bottom: 1px solid var(--border);
      background: rgba(0, 229, 255, 0.03);
    }

.n8n-workflow-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      align-items: center;
      margin-top: 0.65rem;
    }

.n8n-ticker-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
      width: 100%;
      margin-bottom: 0.15rem;
    }

.n8n-ticker-input {
      flex: 1;
      min-width: 8rem;
      max-width: 12rem;
      padding: 0.5rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: #0a1220;
      color: var(--text);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.85rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

.n8n-ticker-input:focus {
      outline: none;
      border-color: rgba(0, 229, 255, 0.45);
      box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.12);
    }

.n8n-trigger-btn {
      padding: 0.5rem 1rem;
      border: 1px solid rgba(0, 229, 255, 0.45);
      border-radius: 6px;
      background: rgba(0, 229, 255, 0.12);
      color: var(--accent);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    }

.n8n-trigger-btn:hover:not(:disabled) {
      background: rgba(0, 229, 255, 0.2);
      border-color: var(--accent);
    }

.n8n-trigger-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

.n8n-workflow-hint {
      margin-top: 0.55rem;
      font-size: 0.72rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

.n8n-pipeline-block {
      padding: 0.85rem 1rem;
      border-bottom: 1px solid var(--border);
      background: #0a1220;
    }

.n8n-pipeline-block .case-study-block-label {
      margin: 0 0 0.55rem;
      padding: 0;
      border: none;
      background: transparent;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.n8n-pipeline-idle {
      margin: 0;
      font-size: 0.75rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

.n8n-progress-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }

.n8n-progress-wrap[hidden],
    .n8n-run-summary[hidden],
    .n8n-stage-track[hidden],
    .n8n-response-details[hidden],
    .n8n-run-idle[hidden] {
      display: none !important;
    }

.n8n-progress-meta {
      display: flex;
      justify-content: space-between;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
    }

.n8n-progress-bar {
      height: 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      overflow: hidden;
    }

.n8n-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(0, 229, 255, 0.85), rgba(57, 255, 20, 0.75));
      transition: width 0.35s ease;
    }

.n8n-progress-bar[data-tone="partial"] .n8n-progress-fill {
      background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(0, 229, 255, 0.6));
    }

.n8n-progress-bar[data-tone="error"] .n8n-progress-fill {
      background: linear-gradient(90deg, rgba(255, 80, 80, 0.9), rgba(251, 191, 36, 0.5));
    }

.n8n-demo-tickers {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.5rem;
    }

.n8n-demo-ticker {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      border: 1px solid var(--border);
      color: var(--text-dim);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

.n8n-demo-ticker:hover {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-muted);
    }

.n8n-demo-ticker--ok {
      border-color: rgba(57, 255, 20, 0.35);
      color: #86efac;
    }

.n8n-demo-ticker--warn {
      border-color: rgba(251, 191, 36, 0.45);
      color: #fcd34d;
    }

.n8n-source-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem;
      margin-top: 0.55rem;
    }

.n8n-source-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.n8n-source-chip {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      padding: 0.28rem 0.55rem;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-dim);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

.n8n-source-chip:hover {
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
    }

.n8n-source-chip.is-active {
      border-color: rgba(0, 229, 255, 0.45);
      color: var(--accent);
      background: rgba(0, 229, 255, 0.08);
    }

.n8n-source-chip--private {
      opacity: 0.55;
      cursor: default;
      text-decoration: line-through;
    }

.n8n-run-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 280px;
      max-height: 420px;
      padding: 0.85rem 1rem 1rem;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        #050810;
      overflow: hidden;
    }

.n8n-run-status {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 1rem;
      margin-bottom: 0.55rem;
      flex-shrink: 0;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
    }

.n8n-run-status strong {
      color: var(--accent);
      font-weight: 500;
    }

.n8n-run-status[data-state="ok"] strong {
      color: #86efac;
    }

.n8n-run-status[data-state="partial"] strong {
      color: #fcd34d;
    }

.n8n-run-status[data-state="error"] strong {
      color: #fca5a5;
    }

.n8n-run-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.45rem 0.75rem;
      margin-bottom: 0.65rem;
      flex-shrink: 0;
      padding: 0.55rem 0.65rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

.n8n-summary-item {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
    }

.n8n-summary-item--wide {
      grid-column: 1 / -1;
    }

.n8n-summary-item span {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.52rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

.n8n-summary-item strong {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.35;
      word-break: break-word;
    }

.n8n-summary-item strong.n8n-summary-message {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
    }

.n8n-stage-track {
      list-style: none;
      margin: 0 0 0.55rem;
      padding: 0;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

.n8n-step {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.55rem;
      align-items: start;
      padding: 0.5rem 0.65rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

.n8n-step:last-child {
      border-bottom: none;
    }

.n8n-step-marker {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      padding-top: 0.15rem;
    }

.n8n-step-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid var(--text-dim);
      background: transparent;
      flex-shrink: 0;
    }

.n8n-step-line {
      width: 2px;
      flex: 1;
      min-height: 0.75rem;
      margin-top: 0.2rem;
      background: rgba(255, 255, 255, 0.08);
    }

.n8n-step:last-child .n8n-step-line {
      display: none;
    }

.n8n-step--ok .n8n-step-dot {
      border-color: #86efac;
      background: rgba(57, 255, 20, 0.35);
      box-shadow: 0 0 8px rgba(57, 255, 20, 0.25);
    }

.n8n-step--ok .n8n-step-line {
      background: rgba(57, 255, 20, 0.25);
    }

.n8n-step--error .n8n-step-dot {
      border-color: #fca5a5;
      background: rgba(255, 80, 80, 0.35);
      box-shadow: 0 0 8px rgba(255, 80, 80, 0.2);
    }

.n8n-step--degraded .n8n-step-dot {
      border-color: #fcd34d;
      background: rgba(251, 191, 36, 0.35);
    }

.n8n-step--pending .n8n-step-dot {
      border-color: rgba(0, 229, 255, 0.35);
      animation: n8n-pulse 1.2s ease-in-out infinite;
    }

.n8n-step--running .n8n-step-dot {
      border-color: var(--accent);
      background: rgba(0, 229, 255, 0.35);
      animation: n8n-pulse 1s ease-in-out infinite;
    }

@keyframes n8n-pulse {
      0%, 100% { opacity: 0.45; }
      50% { opacity: 1; }
    }

.n8n-step-body {
      min-width: 0;
    }

.n8n-step-label {
      display: block;
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.3;
    }

.n8n-step-meta {
      display: block;
      margin-top: 0.15rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.04em;
      color: var(--text-dim);
    }

.n8n-step--ok .n8n-step-meta {
      color: #86efac;
    }

.n8n-step--error .n8n-step-meta {
      color: #fca5a5;
    }

.n8n-step--degraded .n8n-step-meta {
      color: #fcd34d;
    }

.n8n-step-msg {
      display: block;
      margin-top: 0.2rem;
      font-size: 0.68rem;
      color: #fca5a5;
      line-height: 1.35;
    }

.n8n-response-details {
      flex-shrink: 0;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
    }

.n8n-response-details summary {
      cursor: pointer;
      padding: 0.5rem 0.65rem;
      font-family: "JetBrains Mono", monospace;
      font-size: 0.58rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-dim);
      user-select: none;
    }

.n8n-response-details summary:hover {
      color: var(--accent);
    }

.n8n-response-details[open] summary {
      border-bottom: 1px solid var(--border);
      color: var(--accent);
    }

.n8n-run-log {
      margin: 0;
      max-height: 9.5rem;
      padding: 0.55rem 0.65rem;
      color: var(--text-muted);
      font-family: "JetBrains Mono", monospace;
      font-size: 0.62rem;
      line-height: 1.45;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
    }

.n8n-run-idle {
      margin: 0;
      flex: 1;
      font-size: 0.78rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

.case-study-concept-video-row,
    .n8n-workflow-video-row {
      border-top: 1px solid var(--border);
      padding: 1rem 1.25rem 1.15rem;
      background: #0a1220;
    }

.case-study-concept-video-row--lead,
    .n8n-workflow-video-row--lead {
      border-top: none;
      border-bottom: 1px solid var(--border);
    }

.case-study-concept-video-caption,
    .n8n-video-caption {
      margin: 0 0 0.65rem;
      font-size: 0.78rem;
      color: var(--text-dim);
      line-height: 1.45;
    }

.case-study-concept-video-block .case-study-video,
    .n8n-workflow-video-block .case-study-video {
      width: 100%;
      max-height: min(52vh, 420px);
      border-radius: 8px;
      background: #000;
    }

.case-study-live-demo-inner .case-study-widgets-row,
    .case-study-live-demo-inner .case-study-risk-video-row {
      grid-column: auto;
      grid-row: auto;
    }

.case-study-live-demo-inner .case-study-n8n-row,
    .case-study-live-demo-inner .case-study-intake-row {
      border-top: none;
    }

.case-study-n8n-governance {
      border-top: 1px solid var(--border);
      padding: 0.85rem 1rem;
      background: #0a1220;
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

.case-study-risk-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

.case-study-risk-panel:last-child {
        border-bottom: none;
      }

.port-sim-visual,
      .port-sim-viewer {
        min-height: 300px;
      }

.port-sim-chart,
      .port-sim-loading {
        min-height: 260px;
      }

.case-study-intake-split {
        grid-template-columns: 1fr;
      }

.case-study-intake-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

.case-study-intake-panel:last-child {
        border-bottom: none;
      }

.case-study-n8n-split {
        grid-template-columns: 1fr;
      }

.case-study-n8n-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

.case-study-n8n-panel:last-child {
        border-bottom: none;
      }

.intake-agent-mount {
        min-height: 360px;
      }

.intake-record-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
      }
    }

.case-study-widgets-row {
        grid-column: 1;
        grid-row: auto;
      }

.case-study-risk-video-row {
        grid-column: 1;
        grid-row: auto;
      }

.case-study-risk-split {
        grid-template-columns: 1fr;
      }

.case-study-risk-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

.case-study-risk-panel:last-child {
        border-bottom: none;
      }

.port-sim-scenario-checks {
        gap: 0.4rem 0.75rem;
      }

.port-sim-scenario-checks label {
        white-space: normal;
      }

.case-study-widgets {
        grid-template-columns: 1fr;
      }

.case-study-widget {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

.case-study-widget:last-child {
        border-bottom: none;
      }
    }
