/* C37-WEB-HOMEPAGE-001 — Brand Film Integration, Pillars, Scenarios & Connected Engine
   Inherits Circle37 design tokens from kit.css & hero.css (2px ink borders, square corners, #ffffff/#0a0a0a/#e6e6e6/#1a1a1a/#ff5a00). */

/* Lead emphasis inside hero deck (replaces above-heading eyebrow per Brand Kit & Impeccable rules) */
.hero-b .deck-lead {
  color: var(--white);
  font-weight: 700;
}

/* Global inline play triangle size (scoped across hero, scenarios, and insights) */
.play-tri {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex: none;
  display: inline-block;
  transition: fill .2s, transform .2s;
}

/* Option A: Adjacent understated film button */
.hero-b .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}
.hero-b .hero-actions .btn {
  gap: 14px;
  padding: 0 18px;
}
.hero-b .hero-actions .btn-go {
  border-color: var(--orange);
}
.hero-b .hero-actions .btn:hover {
  padding-right: 68px;
}
.btn-film {
  background: var(--nylon);
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-film .play-tri {
  width: 12px;
  height: 12px;
  fill: var(--orange);
}
.btn-film:hover,
.btn-film:focus-visible {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.btn-film:hover .play-tri,
.btn-film:focus-visible .play-tri {
  fill: var(--ink);
  transform: translateX(2px);
}
.btn-film::after {
  background: var(--stripe-o);
}
.hero-sub-action {
  width: 100%;
  margin-top: 2px;
}

/* Option B: Play control integrated inside .ring-stage .core */
.ring-stage .core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ring-stage .core img {
  min-width: 90px;
}
.ring-play-core {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.92);
  color: var(--white);
  border: 2px solid var(--orange);
  font: 700 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.ring-play-core .play-tri {
  width: 10px;
  height: 10px;
  fill: var(--orange);
  flex: none;
}
.ring-play-core:hover,
.ring-play-core:focus-visible {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
}
.ring-play-core:hover .play-tri,
.ring-play-core:focus-visible .play-tri {
  fill: var(--ink);
}

/* Option C: Film invitation strip beneath the circle (above the fold) */
.hero-c .ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px var(--gut) 54px 0;
  min-height: 520px;
}
.hero-c .ring-stage {
  position: relative;
  width: min(440px, 44svh);
  left: auto;
  top: auto;
  transform: none;
}
.film-invite {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(520px, 100%);
  padding: 10px 14px;
  background: var(--nylon);
  color: var(--white);
  border: 2px solid var(--white);
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
.film-invite:hover,
.film-invite:focus-visible {
  border-color: var(--orange);
  background: var(--ink);
}
.film-invite-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: var(--ink);
}
.film-invite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-invite-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.film-invite-kicker {
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.film-invite-title {
  font: 700 13px/1.25 var(--mono);
  color: var(--white);
}
.film-invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--orange);
  color: var(--ink);
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.film-invite-cta .play-tri {
  width: 10px;
  height: 10px;
  fill: var(--ink);
}

/* Accessible Brand Film Modal (<dialog>) */
.film-dialog {
  width: min(1120px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 2px solid var(--white);
  background: var(--ink);
  color: var(--white);
  overflow: auto;
}
.film-dialog::backdrop {
  background: rgba(10, 10, 10, 0.88);
}
@media (prefers-reduced-motion: no-preference) {
  .film-dialog[open] {
    animation: c37-iris-in 0.34s cubic-bezier(.16, 1, .3, 1) both;
  }
  @keyframes c37-iris-in {
    from { opacity: 0; clip-path: circle(8% at 50% 50%); }
    to { opacity: 1; clip-path: circle(120% at 50% 50%); }
  }
}
.film-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  background: var(--nylon);
}
.film-dialog-title {
  font: 700 12px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}
.film-dialog-title span {
  color: var(--orange);
}
.film-dialog-close {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--white);
  font: 700 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.film-dialog-close:hover,
.film-dialog-close:focus-visible {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.film-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.film-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-post-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
  text-align: center;
}
.film-post-cta[hidden] {
  display: none;
}
.film-post-cta h3 {
  font: 900 clamp(32px, 4.5vw, 56px)/.88 var(--display);
  text-transform: uppercase;
  color: var(--white);
  max-width: 22ch;
}
.film-post-cta p {
  font-size: 15px;
  color: var(--mute-on-dark);
  max-width: 48ch;
}
.film-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.film-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  color: var(--mute-on-dark);
}
.film-yt-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.film-yt-link:hover,
.film-yt-link:focus-visible {
  color: var(--orange);
}

/* Pillar capability links (kit.css .incl compatible) + subtle specialist strip */
.parts .incl li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.parts .incl li a:hover,
.parts .incl li a:focus-visible {
  color: var(--orange-ink);
}
.sector-strip-sec {
  padding-top: 0;
  padding-bottom: clamp(28px, 4vw, 44px);
  background: var(--white);
}
.sector-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--grey);
  padding: 14px 18px;
}
.sector-strip-copy {
  font-size: 13px;
  color: var(--ink);
}
.sector-strip-copy a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sector-strip-copy a:hover,
.sector-strip-copy a:focus-visible {
  color: var(--orange-ink);
}

/* Section 6: Business Problem Scenarios (concise ruled 3x2 / 2x3 grid, zero bloat) */
.scenarios-sec {
  background: var(--white);
}
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.scenario-item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}
.scenario-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.scenario-item h3 {
  font: 900 clamp(24px, 2.3vw, 32px)/.9 var(--display);
  text-transform: uppercase;
}
.scenario-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 38ch;
}
.scenario-item > .link {
  justify-self: start;
  margin-top: 4px;
}
.scenario-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  background: var(--grey);
  color: var(--ink);
  font: 700 11px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.scenario-play:hover,
.scenario-play:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

/* Section 7: Connected Circle37 Engine (lightweight deterministic stepper) */
.engine-sec {
  background: var(--nylon);
  color: var(--white);
}
.engine-sec .sec-head p {
  color: var(--mute-on-dark);
}
.engine-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.engine-step {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  padding: 12px 12px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 70px;
  transition: background-color .15s, color .15s;
}
.engine-step:first-child {
  border-left: 0;
}
.engine-step .step-num {
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--orange);
}
.engine-step .step-name {
  font: 900 22px/.95 var(--display);
  text-transform: uppercase;
}
.engine-step[aria-selected="true"] {
  background: var(--orange);
  color: var(--ink);
}
.engine-step[aria-selected="true"] .step-num {
  color: var(--ink);
}
.engine-step:hover:not([aria-selected="true"]),
.engine-step:focus-visible:not([aria-selected="true"]) {
  background: #222;
}
.engine-detail {
  margin-top: 20px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: var(--ink);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.engine-detail-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.engine-detail h3 {
  font: 900 clamp(30px, 3.2vw, 44px)/.9 var(--display);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.engine-detail p {
  font-size: 15px;
  color: var(--mute-on-dark);
  max-width: 58ch;
}
.engine-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.engine-sources span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
  font: 600 11px/1.2 var(--mono);
  text-transform: uppercase;
  color: #e6e6e6;
}
.engine-sources span.active-source {
  border-color: var(--orange);
  color: var(--orange);
}

/* Section 9: Insights & Readiness Band (2-column concise strip) */
.insights-band {
  background: var(--grey);
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.insight-card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.insight-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 4px;
}
.insight-tag {
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.insight-card h3 {
  font: 900 30px/.95 var(--display);
  text-transform: uppercase;
}
.insight-card p {
  font-size: 13px;
  color: var(--mute);
}

/* Responsive overrides across tablet & mobile */
@media (max-width: 1100px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-c .ring-wrap {
    padding: 0 var(--gut) 48px;
    min-height: 0;
    width: 100%;
    aspect-ratio: auto;
    margin: 0 auto 20px;
  }
  .hero-c .ring-stage {
    width: min(74vw, 420px);
  }
  .engine-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .engine-step {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .engine-step:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .engine-step:nth-child(-n+2) {
    border-top: 0;
  }
  .engine-detail {
    grid-template-columns: 1fr;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .scenario-play {
    min-height: 44px;
  }
  .film-invite {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px 12px;
  }
  .film-invite-thumb {
    width: 88px;
  }
  .film-invite-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .engine-steps {
    grid-template-columns: 1fr;
  }
  .engine-step:nth-child(even) {
    border-left: 0;
  }
  .engine-step:nth-child(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .ring-play-core {
    padding: 8px 10px;
    font-size: 10px;
  }
  .film-dialog-head {
    padding: 10px 12px;
    gap: 10px;
  }
  .film-dialog-title {
    font-size: 11px;
  }
  .film-dialog-close {
    padding: 0 10px;
    font-size: 11px;
  }
  .film-stage:has(.film-post-cta:not([hidden])) {
    aspect-ratio: auto;
  }
  .film-stage:has(.film-post-cta:not([hidden])) video {
    display: none;
  }
  .film-post-cta {
    position: relative;
    inset: auto;
    padding: 20px 16px;
    gap: 14px;
  }
  .film-post-cta h3 {
    font-size: clamp(26px, 7.5vw, 36px);
  }
  .film-post-actions {
    width: 100%;
    flex-direction: column;
  }
  .film-post-actions .btn {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 10px 14px;
    justify-content: center;
  }
  .film-dialog-foot {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* Keep hero film CTA above fold & completely clear of cookie banner at 320x568 & 390x844 */
@media (max-width: 420px) {
  .hero-b {
    padding-top: 10px;
    padding-bottom: 20px;
    gap: 12px;
  }
  .hero-b .copy {
    gap: 8px;
  }
  .hero-b .h {
    font-size: clamp(32px, 10vw, 44px);
    line-height: .88;
  }
  .hero-b .deck {
    font-size: 12px;
    line-height: 1.38;
  }
  .hero-b .hero-actions {
    gap: 6px;
  }
  .hero-b .hero-actions .btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .hero-b {
    padding-top: 4px;
    gap: 8px;
  }
  .hero-b .copy {
    gap: 6px;
  }
  .hero-b .deck {
    line-height: 1.32;
  }
}
