/**
 * EDIINA public site — Portal 9 dark cinematic theme bridge
 * Loads after p9-shell, marketing.css, and runway-theme.css
 */

body.public-runway.p9-shell {
  --bg-main: var(--p9-bg-deep);
  --bg-panel: var(--p9-bg-panel);
  --bg-card: var(--p9-bg-card);
  --bg-elevated: var(--p9-bg-elevated);

  --text-primary: var(--p9-text);
  --text-secondary: var(--p9-text-muted);
  --text-muted: var(--p9-text-subtle);

  --cyan: var(--p9-cyan);
  --cyan-dim: rgba(20, 200, 255, 0.12);
  --cyan-glow: rgba(20, 200, 255, 0.35);
  --teal: var(--p9-cyan);
  --teal-hi: var(--p9-cyan-hi);
  --teal-dim: rgba(20, 200, 255, 0.1);
  --teal-glow: rgba(20, 200, 255, 0.28);

  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(20, 200, 255, 0.35);
  --hairline: rgba(255, 255, 255, 0.06);

  --mkt-content-max: 1200px;

  background: var(--p9-bg-deep);
  color: var(--p9-text);
  font-family: var(--font-sans);
  padding-top: 0;
}

body.public-runway.p9-shell .marketing-page,
body.public-runway.p9-shell main.page-main:not(.p9-content) {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* Ambient page glow */
body.public-runway.p9-shell::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 200, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(59, 45, 92, 0.12) 0%, transparent 50%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body.public-runway.p9-shell .site-header,
body.public-runway.p9-shell .marketing-page,
body.public-runway.p9-shell main.page-main,
body.public-runway.p9-shell .site-footer {
  position: relative;
  z-index: 1;
}

/* Typography — Instrument Serif display, Inter body */
body.public-runway.p9-shell,
body.public-runway.p9-shell .marketing-page,
body.public-runway.p9-shell main.page-main,
body.public-runway.p9-shell .site-header,
body.public-runway.p9-shell .site-footer {
  font-family: var(--font-sans);
}

body.public-runway.p9-shell .mkt-display,
body.public-runway.p9-shell .mkt-hero-title,
body.public-runway.p9-shell .mkt-services-title,
body.public-runway.p9-shell .mkt-section-title,
body.public-runway.p9-shell .mkt-tier-modal-title,
body.public-runway.p9-shell .display-5,
body.public-runway.p9-shell .p9-content :where(h1, h2) {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

body.public-runway.p9-shell :is(
  h3,
  h4,
  h5,
  h6,
  .h3,
  .h4,
  .h5,
  .h6,
  p,
  li,
  dd,
  dt,
  label,
  small,
  .btn,
  .form-control,
  .form-label,
  .form-select,
  table,
  th,
  td,
  .nav-links,
  .nav-link-plain,
  .menu-toggle,
  .mkt-compare,
  .mkt-compare-col,
  .mkt-guardrails-card,
  .mkt-guardrail-title,
  .mkt-guardrail-text,
  .mkt-step,
  .mkt-workflow-card,
  .mkt-workflow-icon,
  .card-body,
  .alert,
  .modal-content,
  .mkt-tier-summary,
  .mkt-tier-outcome
) {
  font-family: var(--font-sans);
  letter-spacing: normal;
}

body.public-runway.p9-shell .mkt-eyebrow,
body.public-runway.p9-shell .text-uppercase.small {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
}

body.public-runway.p9-shell .mkt-display .mkt-accent {
  background-image: linear-gradient(90deg, var(--p9-cyan) 0%, var(--p9-cyan-hi) 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Override p9-shell light defaults on dark pages */
body.public-runway.p9-shell.public-dark {
  background: var(--p9-bg-deep);
  color: var(--p9-text);
}

body.public-runway.p9-shell.public-dark .mkt-hero-band,
body.public-runway.p9-shell.public-dark .mkt-workflow-section,
body.public-runway.p9-shell.public-dark .mkt-about-hero,
body.public-runway.p9-shell.public-dark .mkt-section--panel,
body.public-runway.p9-shell.public-dark .mkt-cta-band,
body.public-runway.p9-shell.public-dark .mkt-runway-section {
  background: var(--p9-bg-deep) !important;
  border-block-color: var(--hairline) !important;
}

body.public-runway.p9-shell.public-dark .mkt-section--panel {
  background: var(--p9-bg-panel) !important;
}

body.public-runway.p9-shell.public-dark .mkt-display,
body.public-runway.p9-shell.public-dark .mkt-hero-title,
body.public-runway.p9-shell.public-dark .display-5,
body.public-runway.p9-shell.public-dark h1,
body.public-runway.p9-shell.public-dark h2,
body.public-runway.p9-shell.public-dark h3 {
  color: var(--p9-text) !important;
  text-shadow: none !important;
}

body.public-runway.p9-shell.public-dark .mkt-lead,
body.public-runway.p9-shell.public-dark .lead,
body.public-runway.p9-shell.public-dark .text-secondary,
body.public-runway.p9-shell.public-dark .mkt-section-sub,
body.public-runway.p9-shell.public-dark .mkt-workflow-card p,
body.public-runway.p9-shell.public-dark .mkt-tier-desc {
  color: var(--p9-text-muted) !important;
}

/* Content buttons — cyan glow (header keeps white P9 buttons) */
body.public-runway.p9-shell .marketing-page .btn-primary,
body.public-runway.p9-shell .p9-content .btn-primary {
  background: var(--p9-cyan) !important;
  border-color: var(--p9-cyan) !important;
  box-shadow: 0 0 20px var(--cyan-glow) !important;
  color: var(--p9-bg-deep) !important;
  font-weight: 600;
  transform: none;
}

body.public-runway.p9-shell .marketing-page .btn-primary:hover,
body.public-runway.p9-shell .p9-content .btn-primary:hover,
body.public-runway.p9-shell .marketing-page .btn-primary:focus-visible,
body.public-runway.p9-shell .p9-content .btn-primary:focus-visible {
  background: var(--p9-cyan-hi) !important;
  border-color: var(--p9-cyan-hi) !important;
  box-shadow: 0 0 28px var(--cyan-glow) !important;
  color: var(--p9-bg-deep) !important;
  transform: scale(1.02);
}

body.public-runway.p9-shell .marketing-page .btn-outline-secondary,
body.public-runway.p9-shell .marketing-page .btn-outline-primary,
body.public-runway.p9-shell .p9-content .btn-outline-secondary {
  background: rgba(11, 15, 20, 0.55) !important;
  border-color: rgba(245, 247, 250, 0.3) !important;
  color: var(--p9-text) !important;
}

body.public-runway.p9-shell .marketing-page .btn-outline-secondary:hover,
body.public-runway.p9-shell .marketing-page .btn-outline-primary:hover,
body.public-runway.p9-shell .p9-content .btn-outline-secondary:hover {
  background: rgba(20, 200, 255, 0.1) !important;
  border-color: var(--p9-cyan) !important;
  box-shadow: 0 0 18px rgba(20, 200, 255, 0.15) !important;
  color: var(--p9-text) !important;
}

/* Cards — service, workflow, tiers, bootstrap cards */
body.public-runway.p9-shell .mkt-workflow-card,
body.public-runway.p9-shell .mkt-tier,
body.public-runway.p9-shell .mkt-service-card,
body.public-runway.p9-shell .mkt-dats-panel,
body.public-runway.p9-shell .mkt-problem-needs,
body.public-runway.p9-shell .marketing-page .card,
body.public-runway.p9-shell .mkt-runway-form-card,
body.public-runway.p9-shell .p9-content form:not(.mkt-auth-form) {
  background: var(--p9-bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--p9-radius-lg) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.public-runway.p9-shell .mkt-service-card--highlight,
body.public-runway.p9-shell .mkt-dats-panel {
  background: linear-gradient(
    135deg,
    rgba(20, 200, 255, 0.08) 0%,
    rgba(59, 45, 92, 0.12) 45%,
    var(--p9-bg-card) 100%
  ) !important;
  border-color: var(--border-hi) !important;
}

body.public-runway.p9-shell .mkt-workflow-card:hover,
body.public-runway.p9-shell .mkt-tier:hover,
body.public-runway.p9-shell .mkt-service-card:hover,
body.public-runway.p9-shell .marketing-page .card:hover {
  border-color: var(--border-hi) !important;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(20, 200, 255, 0.08) !important;
}

body.public-runway.p9-shell .mkt-workflow-icon {
  background: var(--cyan-dim);
  border: 1px solid var(--border-hi);
  color: var(--p9-cyan);
}

body.public-runway.p9-shell .mkt-tier-price,
body.public-runway.p9-shell .mkt-trial-price,
body.public-runway.p9-shell .display-6 {
  color: var(--p9-cyan) !important;
}

body.public-runway.p9-shell .mkt-services-link,
body.public-runway.p9-shell .marketing-page a:not(.btn) {
  color: var(--p9-cyan);
}

body.public-runway.p9-shell .mkt-services-link:hover,
body.public-runway.p9-shell .marketing-page a:not(.btn):hover {
  color: var(--p9-cyan-hi);
}

/* Header logo sizing — public marketing shell only (~18% larger) */
body.public-runway.p9-shell .site-header .logo-img--nav {
  height: 3.25rem;
  width: auto;
}

body.public-runway.p9-shell .site-header .nav-actions .nav-link-plain {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s var(--p9-ease);
}

body.public-runway.p9-shell .site-header .nav-actions .nav-link-plain:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.public-runway.p9-shell .site-header .nav-actions form {
  display: inline;
  margin: 0;
}

body.public-runway.p9-shell .site-header .nav-actions .btn-link-signout {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}

body.public-runway.p9-shell .site-header .nav-actions .btn-link-signout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Footer accent hover — cyan + purple */
body.public-runway.p9-shell .site-footer .footer-col a:hover {
  box-shadow: 0 0 18px var(--cyan-glow);
  color: var(--p9-cyan-hi);
}

body.public-runway.p9-shell .site-footer .footer-brand .logo-img--footer {
  height: 2.5rem;
  width: auto;
}

/* Forms (auth + contact) */
body.public-runway.p9-shell .p9-content .form-label {
  color: var(--p9-text-muted);
  font-size: 0.88rem;
}

body.public-runway.p9-shell .p9-content .form-control {
  background: var(--p9-bg-deep);
  border: 1px solid var(--border);
  color: var(--p9-text);
}

body.public-runway.p9-shell .p9-content .form-control:focus {
  background: var(--p9-bg-deep);
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  color: var(--p9-text);
}

body.public-runway.p9-shell .alert {
  background: var(--p9-bg-card);
  border-color: var(--border);
  color: var(--p9-text);
}

body.public-runway.p9-shell .btn-close {
  filter: invert(1);
  opacity: 0.65;
}

/* Auth pages — centered login card */
body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: auto;
  padding: calc(var(--header-h) + clamp(1rem, 2.5vw, 1.5rem)) clamp(1.25rem, 4vw, 2rem)
    clamp(2.5rem, 6vw, 4rem) !important;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) > .container {
  margin: 0 auto;
  max-width: min(42rem, 100%);
  padding: 0;
  width: 100%;
}

body.public-runway.p9-shell .mkt-auth-shell {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin-inline: auto;
  max-width: 100%;
  width: 100%;
}

body.public-runway.p9-shell .mkt-auth-card {
  background: var(--p9-bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--p9-radius-xl);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(20, 200, 255, 0.08),
    0 0 48px rgba(59, 45, 92, 0.16);
  box-sizing: border-box;
  margin-inline: auto;
  max-width: min(42rem, 100%);
  padding: clamp(2rem, 4vw, 2.75rem);
  width: 100%;
}

body.public-runway.p9-shell .mkt-auth-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

body.public-runway.p9-shell .mkt-auth-lead {
  color: var(--p9-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

body.public-runway.p9-shell .mkt-auth-lead a {
  color: var(--p9-cyan);
}

body.public-runway.p9-shell .mkt-auth-lead a:hover {
  color: var(--p9-cyan-hi);
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) form,
body.public-runway.p9-shell .mkt-auth-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .form-label {
  color: var(--p9-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .form-control {
  background: var(--p9-bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--p9-radius);
  color: var(--p9-text);
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .form-control:focus {
  background: var(--p9-bg-deep);
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  color: var(--p9-text);
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .form-text a {
  color: var(--p9-cyan);
  font-size: 0.88rem;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .btn-primary {
  font-weight: 600;
  min-height: 3rem;
}

body.public-runway.p9-shell main.page-main.p9-content:not(.marketing-page) .btn-outline-secondary {
  min-height: 3rem;
}

/* Contact page — compact layout below header */
body.mkt-contact.p9-shell .marketing-page {
  padding-top: calc(var(--header-h) + clamp(1rem, 2.5vw, 1.5rem)) !important;
}

body.mkt-contact.p9-shell .mkt-contact-page {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem) !important;
}

body.mkt-contact.p9-shell .mkt-contact-inner {
  margin-inline: auto;
  max-width: 42rem;
  width: 100%;
}

body.mkt-contact.p9-shell .mkt-contact-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

body.mkt-contact.p9-shell .mkt-contact-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

body.mkt-contact.p9-shell .mkt-contact-lead {
  color: var(--p9-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

body.mkt-contact.p9-shell .mkt-runway-form-card .form-label {
  color: var(--p9-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.mkt-contact.p9-shell .mkt-runway-form-card .form-control {
  background: var(--p9-bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--p9-radius);
  color: var(--p9-text);
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

body.mkt-contact.p9-shell .mkt-runway-form-card textarea.form-control {
  min-height: 9rem;
}

body.mkt-contact.p9-shell .mkt-runway-form-card .form-control:focus {
  background: var(--p9-bg-deep);
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  color: var(--p9-text);
}

body.mkt-contact.p9-shell .mkt-runway-form-card .btn-primary {
  font-weight: 600;
  min-height: 3rem;
  min-width: 10rem;
}

/* Services page — compact vertical rhythm */
body.mkt-services.p9-shell .marketing-page {
  padding-top: calc(var(--header-h) + clamp(0.25rem, 1vw, 0.75rem)) !important;
}

body.mkt-services.p9-shell .marketing-page > .mkt-runway-section,
body.mkt-services.p9-shell .marketing-page > .mkt-section {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 !important;
}

body.mkt-services.p9-shell .marketing-page > .mkt-services-hero {
  padding-top: 0 !important;
}

body.mkt-services.p9-shell .marketing-page > .mkt-cta-band {
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 !important;
}

body.mkt-services.p9-shell .mkt-services-eyebrow {
  color: var(--p9-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-services-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

body.mkt-services.p9-shell .mkt-services-lead {
  color: var(--p9-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 42rem;
}

body.mkt-services.p9-shell .mkt-services-hero-video {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

body.mkt-services.p9-shell .mkt-services-video-frame--hero {
  min-height: clamp(12rem, 42vw, 28rem);
}

body.mkt-services.p9-shell .mkt-services-hero-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

body.mkt-services.p9-shell .mkt-services-feature-card,
body.mkt-services.p9-shell .mkt-services-info-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%),
    var(--p9-bg-card) !important;
  border-color: var(--border) !important;
}

body.mkt-services.p9-shell .mkt-services-feature-card--accent {
  background:
    linear-gradient(135deg, rgba(20, 200, 255, 0.08), rgba(59, 45, 92, 0.12) 45%, var(--p9-bg-card)) !important;
  border-color: var(--border-hi) !important;
}

body.mkt-services.p9-shell .mkt-services-feature-card .card-body,
body.mkt-services.p9-shell .mkt-services-info-card .card-body {
  gap: clamp(1rem, 2vw, 1.5rem);
}

body.mkt-services.p9-shell .mkt-services-card-eyebrow {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-services-card-title,
body.mkt-services.p9-shell .mkt-services-info-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

body.mkt-services.p9-shell .mkt-services-card-title {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  margin: 0 0 0.75rem;
}

body.mkt-services.p9-shell .mkt-services-info-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 0.9rem;
}

body.mkt-services.p9-shell .mkt-services-card-price {
  color: var(--p9-cyan);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}

body.mkt-services.p9-shell .mkt-services-card-copy {
  color: var(--p9-text-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.62;
  margin: 0;
  max-width: 58rem;
}

body.mkt-services.p9-shell .mkt-services-card-copy strong {
  color: var(--p9-text);
  font-weight: 650;
}

body.mkt-services.p9-shell .mkt-services-card-cta {
  font-weight: 600;
  letter-spacing: normal;
  min-height: 3rem;
  min-width: 10rem;
}

body.mkt-services.p9-shell .mkt-section-head--center {
  margin-inline: auto;
  max-width: 40rem;
  text-align: center;
}

body.mkt-services.p9-shell .mkt-compare {
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 0;
}

body.mkt-services.p9-shell .mkt-compare-col h3 {
  color: var(--p9-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 0.75rem;
}

body.mkt-services.p9-shell .mkt-compare-col ul {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.1rem;
}

body.mkt-services.p9-shell .mkt-compare-col--edna h3 {
  color: var(--p9-cyan-hi);
}

body.mkt-services.p9-shell .mkt-cta-band p {
  color: var(--p9-text-muted);
  margin-inline: auto;
  max-width: 36rem;
}

/* Tier cards — compact summary */
body.mkt-services.p9-shell .mkt-tier-card .card-body {
  font-family: var(--font-sans);
}

body.mkt-services.p9-shell .mkt-tier-eyebrow {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-tier-name {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

body.mkt-services.p9-shell .mkt-tier-price,
body.mkt-services.p9-shell .mkt-trial-price {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body.mkt-services.p9-shell .mkt-tier-price {
  margin-bottom: 0.75rem;
}

body.mkt-services.p9-shell .mkt-tier-price-period {
  color: var(--p9-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

body.mkt-services.p9-shell .mkt-tier-best-for {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

body.mkt-services.p9-shell .mkt-tier-summary {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

body.mkt-services.p9-shell .mkt-tier-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.45rem;
}

body.mkt-services.p9-shell .mkt-tier-summary dt {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0;
}

body.mkt-services.p9-shell .mkt-tier-summary dd {
  color: var(--p9-text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

body.mkt-services.p9-shell .mkt-tier-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.mkt-services.p9-shell .mkt-tier-details-btn {
  background: none;
  border: none;
  color: var(--p9-cyan-hi);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.mkt-services.p9-shell .mkt-tier-details-btn:hover {
  color: var(--p9-cyan);
}

body.mkt-services.p9-shell .mkt-tier-highlights {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

body.mkt-services.p9-shell .mkt-tier-highlight-block {
  margin: 0;
}

body.mkt-services.p9-shell .mkt-tier-highlight-heading {
  color: var(--p9-text);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-tier-highlight-list {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  list-style: disc;
  margin: 0;
  padding-left: 1.1rem;
}

body.mkt-services.p9-shell .mkt-tier-checklist {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mkt-services.p9-shell .mkt-tier-checklist li::before {
  color: var(--p9-cyan-hi);
  content: "✓";
  font-weight: 700;
  margin-right: 0.45rem;
}

body.mkt-services.p9-shell .mkt-tier-card--infrastructure .mkt-tier-name {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tier detail modal */
body.mkt-services.p9-shell .modal-backdrop {
  --bs-backdrop-bg: rgba(0, 0, 0, 0.72);
  --bs-backdrop-opacity: 1;
  background-color: rgba(0, 0, 0, 0.72);
  opacity: 1;
  z-index: 1000;
}

body.mkt-services.p9-shell .mkt-tier-modal {
  z-index: 1001;
}

body.mkt-services.p9-shell .mkt-tier-modal.show {
  opacity: 1;
}

body.mkt-services.p9-shell .mkt-tier-modal .modal-dialog {
  margin: 1.25rem auto;
  max-width: min(1050px, 94vw);
  pointer-events: auto;
  width: 100%;
}

body.mkt-services.p9-shell .mkt-tier-modal .modal-content {
  background: var(--p9-bg-elevated, #0f1419);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 0 48px rgba(0, 212, 255, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.55);
  color: var(--p9-text);
  font-family: var(--font-sans);
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

body.mkt-services.p9-shell .mkt-tier-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
}

body.mkt-services.p9-shell .mkt-tier-modal-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

body.mkt-services.p9-shell .mkt-tier-modal-close {
  filter: invert(1) grayscale(1);
  margin: 0;
  opacity: 0.8;
}

body.mkt-services.p9-shell .mkt-tier-modal-close:hover {
  opacity: 1;
}

body.mkt-services.p9-shell .mkt-tier-modal .modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

body.mkt-services.p9-shell .mkt-tier-modal-footer {
  border-top: 1px solid var(--border);
  justify-content: center;
  padding: 1.15rem 1.5rem 1.35rem;
}

body.mkt-services.p9-shell .mkt-tier-detail-panel:not([hidden]) {
  display: grid;
  gap: 1.15rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.mkt-services.p9-shell .mkt-tier-detail-panel:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mkt-services.p9-shell .mkt-tier-detail-intro,
  body.mkt-services.p9-shell .mkt-tier-detail-block--outcome {
    grid-column: 1 / -1;
  }
}

body.mkt-services.p9-shell .mkt-tier-detail-intro {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--p9-text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding-bottom: 0.35rem;
}

body.mkt-services.p9-shell .mkt-tier-detail-block {
  margin: 0;
}

body.mkt-services.p9-shell .mkt-tier-detail-heading {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-tier-detail-list {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mkt-services.p9-shell .mkt-tier-detail-list li {
  padding-left: 1.35rem;
  position: relative;
}

body.mkt-services.p9-shell .mkt-tier-detail-list li::before {
  color: var(--p9-cyan-hi);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

body.mkt-services.p9-shell .mkt-tier-detail-list li + li {
  margin-top: 0.4rem;
}

body.mkt-services.p9-shell .mkt-tier-detail-block--outcome {
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}

body.mkt-services.p9-shell .mkt-tier-detail-outcome-text {
  color: var(--p9-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

body.mkt-services.p9-shell .mkt-tier-outcome {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  padding-top: 0.85rem;
}

@media (max-width: 575.98px) {
  body.mkt-services.p9-shell .mkt-tier-modal .modal-header,
  body.mkt-services.p9-shell .mkt-tier-modal .modal-body,
  body.mkt-services.p9-shell .mkt-tier-modal-footer {
    padding-inline: 1.15rem;
  }
}

/* Guardrails + section typography */
body.mkt-services.p9-shell .mkt-section-eyebrow {
  color: var(--p9-cyan);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

body.mkt-services.p9-shell .mkt-section-title {
  color: var(--p9-text);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

body.mkt-services.p9-shell .mkt-section-lead {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

body.mkt-services.p9-shell .mkt-guardrails-card {
  font-family: var(--font-sans);
}

body.mkt-services.p9-shell .mkt-guardrail-title {
  color: var(--p9-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  text-transform: none;
}

body.mkt-services.p9-shell .mkt-guardrail-text {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Section spacing premium */
body.public-runway.p9-shell .mkt-section,
body.public-runway.p9-shell .mkt-runway-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

body.public-runway.p9-shell .container {
  max-width: var(--mkt-content-max);
}

/* Audience pills */
body.public-runway.p9-shell .mkt-audience-list li {
  background: var(--p9-bg-card);
  border: 1px solid var(--border);
  color: var(--p9-text-muted);
}

body.public-runway.p9-shell .mkt-audience-list li:hover {
  border-color: var(--border-hi);
  color: var(--p9-text);
}

/* CTA band */
body.public-runway.p9-shell .mkt-cta-band {
  background: linear-gradient(
    180deg,
    var(--p9-bg-panel) 0%,
    rgba(59, 45, 92, 0.15) 50%,
    var(--p9-bg-deep) 100%
  ) !important;
  border-top: 1px solid var(--hairline);
}

/* Cinema hero — video-forward layout */
body.mkt-home.p9-shell .mkt-hero-cinema {
  position: relative;
}

body.mkt-home.p9-shell .mkt-hero-cinema-media video,
body.mkt-home.p9-shell .mkt-hero-cinema-video {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

body.mkt-home.p9-shell .mkt-hero-cinema-video::-webkit-media-controls,
body.mkt-home.p9-shell .mkt-hero-cinema-video::-webkit-media-controls-enclosure,
body.mkt-home.p9-shell .mkt-hero-cinema-video::-webkit-media-controls-panel {
  display: none !important;
}

body.mkt-home.p9-shell .mkt-hero-cinema-scrim {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.mkt-home.p9-shell .mkt-hero-cinema-copy {
  align-content: end;
  display: grid;
  gap: 0.85rem;
  inset: 0;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
  position: absolute;
  text-align: center;
  z-index: 2;
}

body.mkt-home.p9-shell .mkt-hero-cinema-copy--headline {
  align-content: end;
  gap: 1rem;
  padding-bottom: clamp(2rem, 6vw, 3.75rem);
}

body.mkt-home.p9-shell .mkt-hero-cinema-copy > * {
  pointer-events: auto;
}

body.mkt-home.p9-shell .mkt-hero-cinema-copy .mkt-hero-title {
  font-size: clamp(1.85rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  margin: 0;
  max-width: 52rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

body.mkt-home.p9-shell .mkt-hero-cinema-copy--headline .mkt-eyebrow {
  color: var(--p9-cyan-hi);
  margin-bottom: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* Hero intro — copy and CTAs below video */
body.mkt-home.p9-shell .mkt-hero-intro {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

body.mkt-home.p9-shell .mkt-hero-intro-inner {
  margin-inline: auto;
  max-width: 56.25rem;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

body.mkt-home.p9-shell .mkt-hero-intro-lead {
  color: var(--p9-text-muted);
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  margin: 0 auto 1.75rem;
  max-width: 52rem;
}

body.mkt-home.p9-shell .mkt-hero-intro .mkt-hero-actions {
  justify-content: center;
  margin-top: 0;
}

body.mkt-home.p9-shell .mkt-hero-intro .mkt-hero-note {
  color: var(--p9-text-subtle);
  font-size: 0.88rem;
  margin: 1.25rem 0 0;
}

body.mkt-home.p9-shell .mkt-hero-intro .mkt-hero-note a {
  color: var(--p9-cyan);
}

body.mkt-home.p9-shell .mkt-hero-intro .mkt-hero-note a:hover {
  color: var(--p9-cyan-hi);
}

/* What is EDIINA — two-column split with demo video */
body.mkt-home.p9-shell .mkt-what-is-split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  body.mkt-home.p9-shell .mkt-what-is-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

body.mkt-home.p9-shell .mkt-what-is-copy .mkt-section-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: none;
}

body.mkt-home.p9-shell .mkt-what-is-media {
  width: 100%;
}

body.mkt-home.p9-shell .mkt-what-is-video-frame {
  aspect-ratio: 1080 / 1080;
  background: var(--p9-bg-deep);
  border: 1px solid var(--border-hi);
  border-radius: var(--p9-radius-xl);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(20, 200, 255, 0.08),
    0 0 40px rgba(59, 45, 92, 0.18);
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.mkt-home.p9-shell .mkt-what-is-video {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

body.mkt-home.p9-shell .mkt-what-is-video::-webkit-media-controls,
body.mkt-home.p9-shell .mkt-what-is-video::-webkit-media-controls-enclosure,
body.mkt-home.p9-shell .mkt-what-is-video::-webkit-media-controls-panel {
  display: none !important;
}

body.mkt-home.p9-shell .mkt-what-is-video-frame:hover .mkt-what-is-video {
  pointer-events: none;
}

body.mkt-home.p9-shell .mkt-what-is-video-frame:hover .mkt-what-is-video::-webkit-media-controls,
body.mkt-home.p9-shell .mkt-what-is-video-frame:hover .mkt-what-is-video::-webkit-media-controls-enclosure,
body.mkt-home.p9-shell .mkt-what-is-video-frame:hover .mkt-what-is-video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.mkt-home.p9-shell .mkt-hero-cinema-media {
  aspect-ratio: 16 / 9;
  background: var(--p9-bg-deep);
  container-type: size;
  overflow: hidden;
  position: relative;
  width: 100%;
}

@media (max-width: 575.98px) {
  body.mkt-home.p9-shell .mkt-hero-band--cinema {
    min-height: auto;
  }

  body.mkt-home.p9-shell .mkt-hero-cinema-media {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  body.mkt-home.p9-shell .mkt-hero-cinema-copy .mkt-hero-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}

body.mkt-home.p9-shell .mkt-problem-copy p {
  color: var(--p9-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

body.mkt-home.p9-shell .mkt-service-card h3 {
  color: var(--p9-text);
  margin-bottom: 0.75rem;
}

body.mkt-home.p9-shell .mkt-service-card ul,
body.mkt-home.p9-shell .mkt-service-card p {
  color: var(--p9-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.mkt-home.p9-shell .mkt-service-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

body.mkt-home.p9-shell .mkt-service-card li + li {
  margin-top: 0.35rem;
}

body.mkt-home.p9-shell .mkt-dats-section .mkt-section-head {
  margin-bottom: 1rem;
  max-width: none;
}

/* Cinema hero enhancements */
body.mkt-home.p9-shell .mkt-hero-band--cinema {
  background: transparent;
  min-height: clamp(30rem, 78vh, 44rem);
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(1.5rem, 3vw, 2rem);
}

body.mkt-home.p9-shell .mkt-hero-cinema-media {
  border-color: var(--border-hi);
  border-radius: var(--p9-radius-xl);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(20, 200, 255, 0.1),
    0 0 60px rgba(59, 45, 92, 0.2);
  max-height: min(78vh, 760px);
}

body.mkt-home.p9-shell .mkt-hero-cinema-scrim {
  background: linear-gradient(
    180deg,
    rgba(11, 15, 20, 0.08) 0%,
    rgba(11, 15, 20, 0.35) 45%,
    rgba(11, 15, 20, 0.72) 100%
  );
}

/* Five-step workflow grid */
body.public-runway.p9-shell .mkt-workflow-cards {
  display: grid;
  gap: 1rem;
}

body.public-runway.p9-shell .mkt-workflow-cards--five {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  body.public-runway.p9-shell .mkt-workflow-cards--five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  body.public-runway.p9-shell .mkt-workflow-cards--five {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Problem grid + service grid (site-wide tokens) */
body.public-runway.p9-shell .mkt-problem-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.public-runway.p9-shell .mkt-problem-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

body.public-runway.p9-shell .mkt-problem-needs {
  border-left: 3px solid var(--p9-cyan);
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
}

body.public-runway.p9-shell .mkt-problem-needs li {
  color: var(--p9-text);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}

body.public-runway.p9-shell .mkt-problem-needs li::before {
  color: var(--p9-cyan);
  content: "→";
  left: 0;
  position: absolute;
}

body.public-runway.p9-shell .mkt-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.public-runway.p9-shell .mkt-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.public-runway.p9-shell .mkt-service-card {
  padding: 1.35rem 1.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.public-runway.p9-shell .mkt-service-card ul {
  list-style: disc;
}

body.public-runway.p9-shell .mkt-compare ul,
body.public-runway.p9-shell .p9-content ul:not([class]) {
  list-style: disc;
  padding-left: 1.25rem;
}

body.public-runway.p9-shell .mkt-service-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

body.public-runway.p9-shell .mkt-dats-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

body.public-runway.p9-shell .mkt-why-matters {
  font-size: 1rem;
  line-height: 1.65;
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}

body.public-runway.p9-shell .mkt-audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

body.public-runway.p9-shell .mkt-audience-list li {
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
}

/* Hide legacy bootstrap nav when P9 shell active */
body.public-runway.p9-shell .mkt-runway-nav {
  display: none !important;
}

/* Mobile nav — show plain links when menu open */
@media (max-width: 768px) {
  body.public-runway.p9-shell .site-header .nav-actions .nav-link-plain {
    display: none;
  }

  body.public-runway.p9-shell .nav-main.nav-open .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  body.public-runway.p9-shell .nav-main.nav-open .nav-actions .nav-link-plain {
    display: inline-flex;
    min-height: 44px;
    width: 100%;
    align-items: center;
  }
}

/* Work Samples — cinematic showcase */
body.mkt-work-samples.p9-shell .marketing-page > .mkt-runway-hero.work-samples-hero {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

body.mkt-work-samples.p9-shell .work-samples-hero-title {
  line-height: 1.12;
  margin-inline: auto;
  max-width: 16ch;
}

body.mkt-work-samples.p9-shell .work-samples-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin-inline: auto;
  max-width: 46rem;
}

body.mkt-work-samples.p9-shell .work-samples-hero-video {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

body.mkt-work-samples.p9-shell .work-samples-transition {
  padding: clamp(0.85rem, 2vw, 1.35rem) 0 clamp(0.45rem, 1.25vw, 0.85rem);
}

body.mkt-work-samples.p9-shell .work-samples-section-eyebrow {
  letter-spacing: 0.12em;
}

body.mkt-work-samples.p9-shell .work-samples-transition-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin-inline: auto;
  max-width: 46rem;
}

body.mkt-work-samples.p9-shell .work-samples-grid {
  padding-top: clamp(0.65rem, 1.75vw, 1rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

body.mkt-work-samples.p9-shell .work-samples-showcase-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.mkt-work-samples.p9-shell .work-samples-showcase-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

body.mkt-work-samples.p9-shell .work-samples-video-trigger {
  cursor: pointer;
  display: block;
}

body.mkt-work-samples.p9-shell .work-samples-video-frame {
  background:
    radial-gradient(120% 120% at 50% 20%, rgba(0, 212, 255, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 16, 0.98));
  display: block;
  position: relative;
}

body.mkt-work-samples.p9-shell .work-samples-video-frame--hero {
  min-height: clamp(12rem, 42vw, 28rem);
}

body.mkt-work-samples.p9-shell .work-samples-video-scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body.mkt-work-samples.p9-shell .work-samples-video-thumb {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

body.mkt-work-samples.p9-shell .work-samples-showcase-card:hover .work-samples-video-thumb,
body.mkt-work-samples.p9-shell .work-samples-video-trigger:hover .work-samples-video-thumb,
body.mkt-work-samples.p9-shell .work-samples-video-trigger:focus-visible .work-samples-video-thumb {
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

body.mkt-work-samples.p9-shell .work-samples-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 5.5rem;
}

body.mkt-work-samples.p9-shell .work-samples-card-eyebrow {
  color: rgba(0, 212, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.mkt-work-samples.p9-shell .work-samples-card-title {
  line-height: 1.25;
}

body.mkt-work-samples.p9-shell .work-samples-hero-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

body.mkt-work-samples.p9-shell .modal-backdrop {
  --bs-backdrop-bg: rgba(0, 0, 0, 0.82);
  --bs-backdrop-opacity: 1;
  background-color: rgba(0, 0, 0, 0.82);
  opacity: 1;
  z-index: 1000;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal {
  z-index: 1001;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal.show {
  opacity: 1;
  pointer-events: auto;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal .modal-dialog {
  margin: 1rem auto;
  max-width: min(1200px, 94vw);
  width: 100%;
  pointer-events: auto;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal .modal-content {
  background: rgba(8, 12, 18, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.08),
    0 0 56px rgba(0, 212, 255, 0.14),
    0 28px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal-header {
  border: 0;
  padding: 0.75rem 0.75rem 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal-close {
  filter: invert(1);
  opacity: 0.85;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal-close:hover {
  opacity: 1;
}

body.mkt-work-samples.p9-shell .work-samples-video-modal-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  body.mkt-work-samples.p9-shell .work-samples-hero-title {
    max-width: none;
  }

  body.mkt-work-samples.p9-shell .work-samples-card-copy {
    min-height: 4.75rem;
  }

  body.mkt-work-samples.p9-shell .work-samples-video-modal .modal-dialog {
    margin: 0.75rem auto;
    max-width: 96vw;
  }
}
