/* ==========================================================================
   Morrow tech — dark homepage
   Loaded after styles.css. Color only, under .theme-dark.
   Canvas #0E1216 · text #F4F7FA · body #A3B0BC
   Accent #6D92B1 (same hue as #2E7CB5) · button fill #426C8E, white label
   ========================================================================== */

html.theme-dark,
body.theme-dark {
  color-scheme: dark;
  --bg: #0E1216;
  --bg-lift: #12181E;
  --bg-soft: #24303C;
  --bg-tint: #161C24;
  --bg-deep: #0B0F13;
  --surface: #1E2832;
  --surface-2: #1A232C;
  --line: rgba(244, 247, 250, 0.14);
  --navy: #6D92B1;
  --coral: #6D92B1;
  --coral-bright: #7F9EB9;
  --on-accent: #FFFFFF;
  --paper: #F4F7FA;
  --muted: #A3B0BC;
  --sky: #6D92B1;
  --sky-deep: #6D92B1;
  --accent-deep: #426C8E;
  --btn: #426C8E;
  --btn-hover: #3C6687;
  background: #0E1216;
  color: #F4F7FA;
}

.theme-dark ::selection {
  background: #6D92B1;
  color: #0E1216;
}

.theme-dark .skip-link {
  background: #F4F7FA;
  color: #0E1216;
}

.theme-dark a:focus-visible,
.theme-dark button:focus-visible,
.theme-dark summary:focus-visible {
  outline-color: #6D92B1;
}

/* ---------- Buttons and links ---------- */
.theme-dark .btn--accent {
  background: #426C8E;
  color: #FFFFFF;
}
.theme-dark .btn--accent:hover,
.theme-dark .btn--accent:active {
  background: #3C6687;
  color: #FFFFFF;
}
.theme-dark .btn--ghost {
  border-color: rgba(244, 247, 250, 0.62);
  color: #F4F7FA;
  background: transparent;
}
.theme-dark .btn--ghost:hover {
  border-color: #F4F7FA;
  color: #F4F7FA;
  background: transparent;
}

.theme-dark .link-cta,
.theme-dark .founder__link,
.theme-dark .footer__contact > a,
.theme-dark .footer__legal a,
.theme-dark .role__cta {
  color: #6D92B1;
}
.theme-dark .founder__link:hover {
  color: #84A2BC;
}
.theme-dark .footer__contact > a {
  border-bottom-color: rgba(109, 146, 177, 0.55);
}
.theme-dark .footer__contact > a:hover {
  border-bottom-color: #6D92B1;
}

.theme-dark input,
.theme-dark textarea,
.theme-dark select {
  background: #1E2832;
  color: #F4F7FA;
  border-color: rgba(244, 247, 250, 0.28);
}

/* ---------- Nav ---------- */
.theme-dark .nav.scrolled {
  background: rgba(14, 18, 22, 0.9);
  box-shadow: 0 1px 0 rgba(244, 247, 250, 0.12);
}
.theme-dark .nav__mobile {
  background: rgba(14, 18, 22, 0.96);
  border-bottom-color: rgba(244, 247, 250, 0.14);
}
.theme-dark .nav__wordmark,
.theme-dark .footer__wordmark {
  color: #F4F7FA;
}
.theme-dark .nav__tagline,
.theme-dark .footer__tag,
.theme-dark .footer__label {
  color: #A3B0BC;
}
.theme-dark .footer__col a {
  color: #F4F7FA;
  border-bottom: 0;
}
.theme-dark .footer__col a:hover {
  color: #6D92B1;
}

/* ---------- Hero shimmer ---------- */
.theme-dark #hero-title .hero__line.accent {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #6D92B1 0%,
    #6D92B1 45.5%,
    #7F9EB9 48%,
    #96AEC3 50%,
    #7F9EB9 52%,
    #6D92B1 54.5%,
    #6D92B1 100%
  );
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-accent-shimmer 2.9s ease-in-out infinite alternate;
}

/* ---------- Section bands (flat zebra: base / lift / deep) ---------- */
.theme-dark .hero,
.theme-dark .marquee,
.theme-dark #why,
.theme-dark #about,
.theme-dark #careers {
  background: var(--bg);
}
.theme-dark .section--tint,
.theme-dark #work,
.theme-dark #faq {
  background: var(--bg-lift);
}
.theme-dark #services {
  background: var(--bg);
}
.theme-dark #offerings {
  background: var(--bg-lift);
}
.theme-dark .finalcta,
.theme-dark .footer {
  background: var(--bg-deep);
}

/* ---------- Cards ---------- */
.theme-dark .bento__cell,
.theme-dark .case,
.theme-dark .founder,
.theme-dark .faq__item,
.theme-dark .role,
.theme-dark .fit-card {
  background: linear-gradient(180deg, #212B36 0%, #1C2530 100%);
  border-color: rgba(244, 247, 250, 0.14);
  box-shadow: none;
}
.theme-dark .fit-card:hover {
  border-color: #6D92B1;
  background: linear-gradient(180deg, #24303C 0%, #1C2530 100%);
}
.theme-dark .bento__cell:hover,
.theme-dark .case:hover,
.theme-dark .founder:hover,
.theme-dark .role:hover,
.theme-dark .faq__item[open],
.theme-dark .stack__list li:hover {
  border-color: rgba(244, 247, 250, 0.34);
}

.theme-dark .case__problem span,
.theme-dark .case__meta dt {
  opacity: 1;
}

.theme-dark .why__num {
  -webkit-text-stroke: 1.5px rgba(168, 190, 208, 0.55);
}
.theme-dark .why__num--accent {
  -webkit-text-stroke: 1.5px #6D92B1;
}

.theme-dark .founder__avatar {
  background: #426C8E;
  color: #FFFFFF;
}

/* ---------- How we work ---------- */
.theme-dark #process-curve stop:first-child {
  stop-color: #8BA7BE;
}
.theme-dark #process-curve stop:last-child {
  stop-color: #6D92B1;
}
.theme-dark .process__marker {
  background: #1C2530;
  border-color: rgba(109, 146, 177, 0.75);
  color: #6D92B1;
  box-shadow: none;
}
.theme-dark .process__step--accent .process__marker {
  background: #6D92B1;
  border-color: #6D92B1;
  color: #0E1216;
}
.theme-dark .step__num,
.theme-dark .step__arrow {
  color: var(--coral);
}
.theme-dark .step__arrow {
  opacity: 0.9;
}

/* ---------- Trust chips ---------- */
.theme-dark .trust-chip {
  color: #F4F7FA;
  border-color: rgba(244, 247, 250, 0.22);
  background: #24303C;
}

/* ---------- Discovery artifact + methodology ---------- */
.theme-dark .discovery__figure,
.theme-dark .discovery__deliverable {
  background: linear-gradient(180deg, #1A232C 0%, #161C24 100%);
  border-color: rgba(244, 247, 250, 0.12);
}
.theme-dark .discovery__caption {
  border-top-color: rgba(244, 247, 250, 0.1);
}
.theme-dark .method__num {
  color: var(--coral);
}

/* ---------- AI in the workflow ---------- */
.theme-dark .ai-stack__figure,
.theme-dark .ai-flow__figure {
  background: linear-gradient(180deg, #1A232C 0%, #161C24 100%);
  border-color: rgba(244, 247, 250, 0.12);
}
.theme-dark .ai-roi {
  border-color: rgba(109, 146, 177, 0.22);
  background:
    linear-gradient(165deg, #1A2430 0%, #151C24 52%, #12181E 100%);
}
.theme-dark .ai-roi__funnel {
  background: linear-gradient(180deg, #1E2832 0%, #182028 100%);
  border-color: rgba(109, 146, 177, 0.2);
}
.theme-dark .ai-flow__step {
  background: #12181E;
  border-color: rgba(244, 247, 250, 0.12);
}
.theme-dark .ai-stack__flow,
.theme-dark .ai-flow__connector {
  color: var(--coral);
}
.theme-dark .ai-roi__funnel-viz {
  color: var(--coral-bright);
}
.theme-dark .ai-roi__funnel-band {
  fill: rgba(127, 158, 185, 0.1);
  stroke: var(--coral-bright);
}
.theme-dark .ai-roi__funnel-band--mid {
  fill: rgba(109, 146, 177, 0.16);
  stroke: var(--coral);
}
.theme-dark .ai-roi__funnel-band--narrow {
  fill: rgba(66, 108, 142, 0.28);
  stroke: var(--accent-deep);
}
.theme-dark .ai-roi__item:nth-child(odd) {
  background: linear-gradient(180deg, #212B36 0%, #1A232C 100%);
}
.theme-dark .ai-roi__item:nth-child(even) {
  background: linear-gradient(180deg, #1E2832 0%, #18222C 100%);
}
.theme-dark .ai-roi__item:nth-child(odd):hover,
.theme-dark .ai-roi__item:nth-child(odd):focus-within {
  background: linear-gradient(180deg, #24303C 0%, #1C2530 100%);
  border-color: rgba(109, 146, 177, 0.5);
}
.theme-dark .ai-roi__item:nth-child(even):hover,
.theme-dark .ai-roi__item:nth-child(even):focus-within {
  background: linear-gradient(180deg, #243440 0%, #1C2832 100%);
  border-color: rgba(127, 158, 185, 0.55);
}
.theme-dark .ai-roi__icon {
  box-shadow: none;
}
.theme-dark .ai-roi__item:nth-child(3n+1) .ai-roi__icon {
  color: var(--coral-bright);
  background: rgba(127, 158, 185, 0.12);
  border-color: rgba(127, 158, 185, 0.28);
}
.theme-dark .ai-roi__item:nth-child(3n+2) .ai-roi__icon {
  color: var(--coral);
  background: rgba(109, 146, 177, 0.12);
  border-color: rgba(109, 146, 177, 0.26);
}
.theme-dark .ai-roi__item:nth-child(3n) .ai-roi__icon {
  color: var(--accent-deep);
  background: rgba(66, 108, 142, 0.22);
  border-color: rgba(66, 108, 142, 0.4);
}
.theme-dark .ai-roi__item {
  box-shadow: none;
}
.theme-dark .ai-pitfalls {
  background: var(--bg-lift);
  border-color: rgba(244, 247, 250, 0.1);
}
.theme-dark .ai-layer__tag,
.theme-dark .ai-flow__layer {
  color: var(--coral);
}
.theme-dark .ai-layer__desc strong {
  color: var(--paper);
}
.theme-dark .ai-stack__svg-edge {
  fill: var(--muted);
}

/* ---------- Ways to work ---------- */
.theme-dark .where {
  background: var(--bg-lift);
  border-color: rgba(244, 247, 250, 0.1);
}
.theme-dark .where-item__num {
  color: var(--coral);
  opacity: 0.9;
}

.theme-dark .case-demo__video,
.theme-dark .case-artifact__img {
  background: #1C2530;
  border-color: rgba(244, 247, 250, 0.14);
}

/* ---------- Compare hub / decision brief ---------- */
.theme-dark .compare-card,
.theme-dark .use-if__item,
.theme-dark .compare-pair__card,
.theme-dark .scenario-card,
.theme-dark .compare-decision {
  background: #12181E;
  border-color: rgba(244, 247, 250, 0.14);
}
.theme-dark .compare-card:hover {
  border-color: rgba(244, 247, 250, 0.34);
}
.theme-dark .compare-hub__chip,
.theme-dark .compare-brief__meta span {
  background: #24303C;
}
.theme-dark .compare-cta {
  background: linear-gradient(180deg, #24303C 0%, #12181E 100%);
  border-color: rgba(244, 247, 250, 0.14);
}
.theme-dark .compare-decision {
  border-left-color: #6D92B1;
}
.theme-dark .compare-card__cta,
.theme-dark .compare-faq summary {
  color: #F4F7FA;
}
.theme-dark .compare-card__cta {
  color: #6D92B1;
}

/* ---------- Reduced motion: solid accent, no shimmer ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-dark #hero-title .hero__line.accent {
    animation: none;
    color: #6D92B1;
    -webkit-text-fill-color: #6D92B1;
    background-image: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
  }
}
