.prairie-bridge {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  overflow: hidden;
}

.prairie-bridge::before {
  content: "";
  position: absolute;
  inset: 8% 3%;
  z-index: -1;
  border-radius: 44%;
  background: radial-gradient(circle at 70% 45%, rgba(183, 223, 234, 0.3), transparent 58%);
  filter: blur(22px);
}

.prairie-bridge-copy h2 {
  margin: 0 0 28px;
  font-size: clamp(42px, 3.45vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.prairie-bridge-copy h2 span {
  display: block;
  white-space: nowrap;
}

.prairie-bridge-copy h2 span + span {
  margin-top: 0.12em;
}

.prairie-bridge-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted, #465553);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.75;
}

.prairie-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}

.prairie-video {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px rgba(26, 61, 75, 0.1);
  backdrop-filter: blur(12px);
}

.prairie-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 21px;
  background: #112d35;
  object-fit: cover;
}

.prairie-video figcaption {
  padding: 14px 12px 6px;
  color: var(--muted, #465553);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-employee-examples {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(18px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(26, 61, 75, 0.12);
  border-radius: 28px;
  background: rgba(26, 61, 75, 0.1);
  box-shadow: 0 18px 50px rgba(26, 61, 75, 0.08);
}

.ai-employee-examples article {
  min-height: 230px;
  padding: clamp(34px, 4.5vw, 58px) clamp(28px, 4vw, 48px);
  background: rgba(250, 253, 255, 0.88);
}

.ai-employee-examples h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.ai-employee-examples p {
  margin: 0;
  color: var(--muted, #465553);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.72;
}

/* A fine prismatic edge echoes the animated page divider and dove halo. */
.hero-note,
.workflow-analyzer-card,
.prairie-video,
.ai-employee-examples {
  isolation: isolate;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 480ms ease;
}

.hero-note::before,
.workflow-analyzer-card::before,
.prairie-video::before,
.ai-employee-examples::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -2px;
  padding: 2px;
  border-radius: calc(1em + 2px);
  pointer-events: none;
  background: linear-gradient(
    100deg,
    #ef476f,
    #f7b267,
    #f9f871,
    #70d6a8,
    #56cfe1,
    #6c8cff,
    #b28dff,
    #ef476f
  ) 0 50% / 240% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.42;
  animation: prismatic-edge-flow 9s linear infinite;
  transition: opacity 420ms ease, filter 420ms ease;
}

.hero-note {
  box-shadow: 6px 6px rgba(54, 115, 164, 0.11), 0 12px 28px rgba(44, 105, 143, 0.09);
}

.workflow-analyzer-card {
  position: relative;
  box-shadow: 0 16px 38px rgba(44, 105, 143, 0.1);
}

.hero-note::before {
  border-radius: 20px;
  animation-delay: 0s;
}

.workflow-analyzer-card::before {
  border-radius: 26px;
  animation-delay: -2.25s;
}

.prairie-video::before {
  border-radius: 32px;
  animation-delay: -4.5s;
}

.ai-employee-examples {
  position: relative;
  box-shadow: 0 16px 38px rgba(44, 105, 143, 0.09);
}

.ai-employee-examples::before {
  inset: 0;
  border-radius: inherit;
  animation-delay: -6.75s;
}

@media (hover: hover) and (pointer: fine) {
  .hero-note:hover,
  .workflow-analyzer-card:hover,
  .prairie-video:hover,
  .ai-employee-examples:hover {
    transform: translateY(-5px) scale(1.008);
    box-shadow: 0 20px 46px rgba(44, 105, 143, 0.14);
  }
}

.hero-note:hover::before,
.workflow-analyzer-card:hover::before,
.workflow-analyzer-card:focus-within::before,
.prairie-video:hover::before,
.prairie-video:focus-within::before,
.ai-employee-examples:hover::before {
  opacity: 1;
  filter:
    drop-shadow(0 0 3px rgba(86, 207, 225, 0.72))
    drop-shadow(0 0 7px rgba(178, 141, 255, 0.38))
    drop-shadow(0 0 10px rgba(112, 214, 168, 0.24));
}

@keyframes prismatic-edge-flow {
  to {
    background-position: 240% 50%;
  }
}

/* Career markers: keep the dove and halo, without an enclosing outer tile. */
.chapter-logo.chapter-logo-static {
  width: clamp(56px, 4.7vw, 60px);
  height: clamp(56px, 4.7vw, 60px);
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  animation: none;
  box-shadow: none;
}

.chapter-logo.chapter-logo-static::after {
  width: 42px;
  border-width: 1px;
  opacity: 0.72;
  box-shadow:
    0 0 2px currentColor,
    0 0 6px color-mix(in srgb, currentColor 58%, transparent),
    inset 0 0 3px color-mix(in srgb, currentColor 38%, transparent);
}

.chapter-logo.chapter-logo-static::before {
  z-index: 2;
  inset: auto;
  width: 31px;
  height: 31px;
  border-radius: 0;
  background: #5e9dd5;
  -webkit-mask: url("/assets/dove-olive-branch.png") center / contain no-repeat;
  mask: url("/assets/dove-olive-branch.png") center / contain no-repeat;
  filter:
    drop-shadow(0 1px 1px rgba(16, 45, 74, 0.16))
    drop-shadow(0 0 3px rgba(228, 42, 72, 0.34));
  animation: refined-dove-spectrum 8s ease-in-out infinite;
}

.chapter-logo.chapter-logo-static .chapter-dove {
  opacity: 0;
}

.chapter-logo.chapter-logo-static:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow: none;
}

@keyframes refined-dove-spectrum {
  0%,
  100% {
    background-color: #b89554;
    filter: drop-shadow(0 1px 1px rgba(16, 45, 74, 0.16)) drop-shadow(0 0 3px rgba(199, 174, 115, 0.42));
  }
  33% {
    background-color: #4f8fc0;
    filter: drop-shadow(0 1px 1px rgba(16, 45, 74, 0.16)) drop-shadow(0 0 3px rgba(94, 157, 213, 0.4));
  }
  66% {
    background-color: #c64b63;
    filter: drop-shadow(0 1px 1px rgba(16, 45, 74, 0.16)) drop-shadow(0 0 3px rgba(228, 42, 72, 0.36));
  }
}

@media (max-width: 900px) {
  .prairie-bridge {
    grid-template-columns: 1fr;
  }

  .prairie-video {
    max-width: 720px;
  }

  .ai-employee-examples {
    grid-template-columns: 1fr;
  }

  .ai-employee-examples article {
    min-height: auto;
  }
}

@media (max-width: 800px) {
  html,
  body,
  .site-shell {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero,
  .hero-copy,
  .hero-note,
  .hero-actions {
    min-width: 0;
    max-width: 100%;
  }

  .hero {
    width: 100%;
  }

  .hero-copy {
    grid-area: 1 / 1;
  }

  .hero .eyebrow {
    flex-wrap: wrap;
    transform: none;
  }

  .hero h1 {
    overflow-wrap: anywhere;
  }

  .hero-note {
    width: 100%;
  }

  .hero-copy .hero-note + .hero-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-actions .text-link {
    flex: 1 1 145px;
    min-width: 0;
    white-space: normal;
  }

  .hero-portrait {
    grid-area: 2 / 1;
    width: min(68vw, 300px);
  }
}

@media (max-width: 620px) {
  .prairie-bridge {
    gap: 28px;
  }

  .prairie-bridge-copy h2 {
    margin-bottom: 22px;
    font-size: clamp(29px, 8.25vw, 34px);
    letter-spacing: -0.045em;
  }

  .prairie-bridge-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .prairie-video {
    padding: 6px;
    border-radius: 22px;
  }

  .prairie-video::before {
    border-radius: 24px;
  }

  .prairie-video video {
    border-radius: 16px;
  }

  .ai-employee-examples {
    border-radius: 22px;
  }

  .chapter-logo.chapter-logo-static {
    width: 48px;
    height: 48px;
    padding: 6px;
    border-radius: 14px;
  }

  .chapter-logo.chapter-logo-static::after {
    width: 35px;
  }

  .chapter-logo.chapter-logo-static::before {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-note,
  .workflow-analyzer-card,
  .prairie-video,
  .ai-employee-examples,
  .hero-note::before,
  .workflow-analyzer-card::before,
  .prairie-video::before,
  .ai-employee-examples::before {
    animation: none;
    transition: none;
  }

  .chapter-logo.chapter-logo-static,
  .chapter-logo.chapter-logo-static::before {
    animation: none;
  }

  .hero-note:hover,
  .workflow-analyzer-card:hover,
  .prairie-video:hover,
  .ai-employee-examples:hover {
    transform: none;
  }
}

/* Final responsive layout polish: use natural alignment instead of inherited offsets. */
.nav-wrap {
  overflow: visible;
}

.nav {
  min-height: 92px;
}

.wordmark {
  transform: none;
}

.hero {
  padding-top: clamp(150px, 11vw, 178px);
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.hero .eyebrow {
  max-width: 100%;
  transform: none;
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(48px, 5.15vw, 76px);
  line-height: 0.99;
  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 span,
.hero h1 em {
  white-space: normal;
}

.contact {
  grid-template-columns: minmax(440px, 0.96fr) minmax(420px, 1.04fr);
  align-items: start;
  gap: clamp(72px, 9vw, 128px);
}

.contact > div:first-child {
  align-items: center;
  align-self: center;
  justify-content: flex-start;
}

.contact > div:first-child h2 {
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: clamp(54px, 5.1vw, 72px);
  line-height: 0.96;
  transform: none;
}

.contact-heading-pair {
  display: grid;
  gap: 0.08em;
}

.contact-heading-nowrap {
  display: block;
  white-space: nowrap;
}

.contact-side {
  width: 100%;
  max-width: 520px;
  padding-top: 0;
}

.contact-side > p {
  max-width: 48ch;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .contact > div:first-child h2 {
    max-width: none;
  }

  .contact > div:first-child {
    align-self: start;
  }

  .contact-side {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: 78px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .wordmark {
    max-width: calc(100% - 52px);
    font-size: 18px;
    line-height: 1.15;
  }

  .hero.section-pad {
    min-height: auto;
    padding-top: 116px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero .eyebrow {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) 12px;
    gap: 7px;
    width: 100%;
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: 0.11em;
    line-height: 1.45;
  }

  .hero .eyebrow > span:not(.hero-accent-dash) {
    min-width: 0;
    text-align: center;
    overflow-wrap: normal;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: clamp(38px, 10.7vw, 48px);
    line-height: 0.99;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-note {
    padding: 17px 18px 18px;
    font-size: 14px;
  }

  .ai-employee-examples {
    gap: 0;
    width: 100%;
    margin-top: 12px;
    border-radius: 20px;
  }

  .ai-employee-examples article {
    min-height: 0;
    padding: 27px 24px 29px;
  }

  .ai-employee-examples article + article {
    border-top: 1px solid rgba(26, 61, 75, 0.1);
  }

  .ai-employee-examples h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .ai-employee-examples p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .contact.section-pad {
    gap: 27px;
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .contact > div:first-child h2 {
    max-width: none;
    font-size: clamp(40px, 11.2vw, 50px);
    line-height: 0.96;
  }

  .contact-side > p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.65;
  }

  .contact-actions {
    gap: 10px;
  }
}
