@media screen and (max-width: 599px) {
  #opportunity {
    padding-bottom: 0 !important;
  }

  #services {
    margin-bottom: 4rem;
    padding-top: 0 !important;
  }

  #about {
    margin-bottom: 5rem;
  }
}

.hero-content h1 {
  white-space: normal;
}

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

.hero-content h1 .ai-text {
  white-space: nowrap;
}

.hero-content h1 {
  font-size: clamp(2rem, 15vw, 3.1rem);
}

@media screen and (min-width: 600px) {
  .hero-content h1 {
    font-size: clamp(4rem, 10vw, 5.5rem);
  }
}

@media screen and (min-width: 1024px) {
  .hero-content h1 {
    font-size: clamp(4rem, 6vw, 5rem);
  }

  .hero-content h1 br {
    display: none;
  }
}

.hero-content .hero-deck {
  display: block;
  font-family: var(--font-family--heading);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  font-size: 1.7rem;
  margin-top: 0.25rem;

  max-width: 13em;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 600px) {
  .hero-content .hero-deck {
    max-width: none;
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
}

@media screen and (min-width: 1024px) {
  .hero-content .hero-deck {
    font-size: clamp(2.4rem, 3.6vw, 3rem);
    line-height: 1.17;
  }
}

.hero-content {
  padding-bottom: 5rem;
  gap: 0.75rem;
}

section.hero::after {
  display: none;
}

@media screen and (min-width: 1024px) and (orientation: portrait) {
  .hero-content h1 br {
    display: block;
  }

  .hero-content {
    flex: 1;
    justify-content: flex-start;
    padding-top: 8vh;
  }

  section.hero::after {
    display: block;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  section.hero::after {
    display: block;
  }

  .hero-content {
    padding-bottom: 6.5rem;
  }
}

@media screen and (min-width: 1024px) and (max-height: 900px) and (orientation: landscape) {
  section.hero {
    padding-top: var(--wp--preset--spacing--40) !important;
  }
}

body.home .hero-content h1 {
  white-space: nowrap;
}

body.home .hero-content h1 span {
  white-space: nowrap;
}

body.home .hero-content {
  padding-bottom: 4rem;
  gap: 1rem;
}

body.home section.hero::after {
  display: block;
}

@media screen and (max-width: 599px) {
  body.home .hero-content h1 {
    font-size: clamp(2rem, 15vw, 3.8rem);
  }
}

@media screen and (min-width: 1024px) {
  body.home .hero-content h1 {
    font-size: clamp(5.5rem, 8vw, 7.5rem);
    line-height: 1;
  }

  body.home .hero-content h1 br:not(.confidence-break) {
    display: inline;
  }

  body.home section.hero::after {
    display: none;
  }
}

@media screen and (min-width: 1024px) and (orientation: portrait) {
  body.home section.hero::after {
    display: block;
  }
}

.scrolly-stage p {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-text-body);
}

.scrolly-stage p.eyebrow {
  color: var(--color-eyebrow);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem !important;
}

@media screen and (max-width: 599px) {
  .scrolly-stage p br:not(.show-phone) {
    display: none;
  }

  .scrolly-stage p,
  .scrolly-stage h2 {

    text-wrap: pretty;
  }
}

:root {
  --color-eyebrow: color-mix(in srgb, var(--color-electric-blue) 60%, var(--color-text-secondary));
}

.eyebrow {
  display: block;
  font-family: var(--font-family--body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-eyebrow);
  margin-bottom: 0.75rem !important;
}

#services .eyebrow {
  font-size: 1.1rem;
}

#faq .wp-block-accordion {
  max-width: 84ch;
}

.wp-block-accordion-panel {
  max-width: 75ch;
}

.wp-block-accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background-color: var(--color-surface);
  padding: 1.1rem 1.5rem;

  margin-block-start: 0.5rem;
}

.wp-block-accordion-item .wp-block-accordion-heading {
  margin: 0;
  font-family: var(--font-family--body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.wp-block-accordion-item .wp-block-accordion-heading__toggle {
  padding: 0;
  align-items: flex-start;
}

@media screen and (min-width: 600px) {

  .wp-block-accordion-item .wp-block-accordion-heading__toggle {
    align-items: center;
  }
}

.wp-block-accordion-item .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
  text-decoration: none;
}

.wp-block-accordion-item .wp-block-accordion-heading__toggle-icon {
  color: var(--color-electric-blue);
  font-size: 1.3rem;
  justify-content: flex-end;
}

.wp-block-accordion-item p {
  margin-top: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.floating-canvas {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.floating-card {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.floating-card-meta {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.floating-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

@media screen and (min-width: 1024px) {
  .floating-canvas {
    position: relative;
    display: block;
    min-height: 520px;
  }

  .floating-card {
    position: absolute;
  }

  .floating-card--1 {
    top: 8px;
    left: 34px;
    width: 250px;
  }
  .floating-card--2 {
    top: 118px;
    right: 18px;
    width: 215px;
  }
  .floating-card--3 {
    top: 214px;
    left: 0;
    width: 285px;
  }
  .floating-card--4 {
    top: 300px;
    left: 150px;
    width: 235px;
  }
  .floating-card--5 {
    top: 386px;
    right: 46px;
    width: 270px;
  }
  .floating-card--6 {
    top: 456px;
    left: 24px;
    width: 230px;
  }
}

.left-aligned-column .eyebrow {
  text-align: left;
}

.scrolly-pin {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.scrolly-stage {
  padding: 3rem 0;
}

.scrolly-section.is-scrolly-active .scrolly-pin {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: block;
  overflow: hidden;
}

.scrolly-section.is-scrolly-active .scrolly-stage {
  position: absolute;
  inset: 0;

  margin-block: 0;
  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: flex-start;
  text-align: center;
  padding: 0 2rem;
  padding-top: var(--stage-anchor-top, 0px);
  opacity: 0;
  transform: translateY(28px);
  filter: blur(0);
  will-change: opacity, transform, filter, color;
}

@media screen and (max-width: 599px) {
  .scrolly-section.is-scrolly-active .scrolly-stage {
    padding: var(--stage-anchor-top, 0px) 0 0;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  .hide-tablet {
    display: none;
  }
}

.scrolly-stage .keep-together {
  white-space: nowrap;
}

@media screen and (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  .scrolly-stage .keep-together {
    white-space: normal;
  }
}

@media screen and (min-width: 1200px) {
  .hide-desktop {
    display: none;
  }
}

.hide-phone {
  display: block;
}

@media screen and (max-width: 599px) {
  .hide-phone {
    display: none;
  }
}

.scrolly-section.is-scrolly-active .scrolly-stage.is-final-stage {
  padding-top: calc(var(--stage-anchor-top, 0px) * 0.69);
}

.scrolly-stage :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  margin-bottom: 3rem;
}

@media screen and (min-width: 1024px) {
  .scrolly-stage :is(h1, h2, h3, h4, h5, h6) {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: 56rem;
  }

  .scrolly-stage p {
    max-width: 46rem;
    margin: 0;
  }

  .scrolly-stage:not(.is-final-stage) p {
    font-size: 1.5rem;
  }

  @media (orientation: portrait) {
    .scrolly-stage :is(h1, h2, h3, h4, h5, h6) {
      max-width: 49rem;
    }

  }

  .scrolly-stage.is-final-stage :is(h1, h2, h3, h4, h5, h6) {
    font-size: 3.75rem;
    font-weight: 500;
    margin-bottom: 5rem;
  }

  .scrolly-stage.is-final-stage p {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  .scrolly-stage p.eyebrow {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }
}

@media screen and (min-width: 1200px) {
  .scrolly-stage p.eyebrow {
    font-size: 1.25rem;
  }
}

.scrolly-section.is-scrolly-active .scrolly-stage.is-final-stage .eyebrow,
.scrolly-section.is-scrolly-active .scrolly-stage:not(.is-final-stage) :is(h1, h2, h3, h4, h5, h6, p):not(.eyebrow) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scrolly-section.is-scrolly-active .scrolly-stage.is-final-stage.is-eyebrow-in .eyebrow {
  opacity: 1;
}

.scrolly-section.is-scrolly-active .scrolly-stage.is-eyebrow-in:not(.is-final-stage) :is(h1, h2, h3, h4, h5, h6, p):not(.eyebrow) {
  opacity: 1;
  transition-delay: 0.15s;
}

.scrolly-progress {
  position: absolute;

  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  background: var(--color-border-active);
  border-radius: 3px;
  overflow: hidden;
}

.scrolly-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-electric-blue);
  transition: width 0.3s ease;
}

.expand-on-scroll {
  transition:
    max-width 1.6s cubic-bezier(0.16, 0.8, 0.24, 1),
    margin-left 1.6s cubic-bezier(0.16, 0.8, 0.24, 1),
    margin-right 1.6s cubic-bezier(0.16, 0.8, 0.24, 1);
}

@media screen and (min-width: 600px) {
  .expand-on-scroll {
    max-width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }
}

.expand-on-scroll.is-revealed {
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.card.expand-on-scroll {
  background-color: #000;
}

.card.expand-on-scroll:hover,
.card.expand-on-scroll:active {
  border-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .expand-on-scroll {
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    transition: none;
  }
}

#services .services-accordion {
  display: flex;
  flex-direction: column;

}

#services .accordion-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  margin-top: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease;
}

@media screen and (max-width: 599px) {
  #services .accordion-detail {
    max-height: none;
    opacity: 1;
    overflow: visible;

    margin-top: 1.2rem;
  }
}

#services .accordion-item.is-expanded .accordion-detail {
  max-height: 1200px;
  opacity: 1;
  overflow-y: auto;
  margin-top: 1.2rem;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease 0.15s;
}

#services .accordion-body > *,
#services .accordion-detail > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#services .accordion-item {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
}

@media screen and (min-width: 1024px) {

  #services .services-track {
    align-items: flex-start;
  }

  #services > .wp-block-group {
    position: sticky;

    top: calc(var(--header-height-real, var(--header-height)) + var(--services-gap, 2rem));
  }

  #services .services-sticky {
    position: sticky;

    top: calc(
      var(--header-height-real, var(--header-height)) + var(--services-gap, 2rem) + var(--services-heading-height, 0px)
    );

    align-self: flex-start !important;
  }

  #services .services-accordion {
    max-height: calc(
      100vh - var(--header-height-real, var(--header-height)) - var(--services-heading-height, 0px) - 4rem
    );
    overflow-y: auto;
  }

  #services .services-accordion:has(.is-expanded) .accordion-item:not(.is-expanded) {
    opacity: 0.8;
  }

  #services .accordion-item.is-expanded {
    border-color: var(--color-electric-blue);
  }

  #services .accordion-item:not(.is-expanded) {
    cursor: pointer;
  }

  #services .accordion-item.is-expanded {
    cursor: default;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px),
  screen and (min-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1024px) and (max-height: 799px) {
  #services .services-track {
    flex-direction: column;
    align-items: stretch;
  }

  #services .services-intro,
  #services .services-accordion {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  #services .services-intro > *,
  #services .accordion-detail {
    max-width: 75ch;
  }

  #services > .wp-block-group,
  #services .services-sticky {
    position: static;
    top: auto;
  }

  #services .services-accordion {
    max-height: none;
    overflow: visible;
  }

  #services .accordion-detail {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 1.2rem;
  }

  #services .accordion-item:not(.is-expanded) {
    cursor: default;
  }
}

#about .wp-block-columns > .wp-block-column:first-child > p:nth-last-of-type(2) br {
  display: none;
}

#about .wp-block-spacer:last-of-type {
  display: block;
}

@media screen and (min-width: 600px) and (max-width: 1023px) {

  #about .wp-block-columns > .wp-block-column:first-child > p:nth-last-of-type(2) {
    grid-column: 1 / -1;
  }

  #about .wp-block-columns > .wp-block-column:first-child > p:nth-last-of-type(2) br {
    display: inline;
  }

}

@media screen and (min-width: 820px) and (max-width: 1023px) {
 #about .wp-block-columns > .wp-block-column:first-child > p:nth-last-of-type(2) {
    margin-top: 0;
  }
}
