/* V2.2: video, case showcase, industry rail and discovery quiz */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button:active,
.button:active,
.case-nav button:active,
.industry-tabs button:active {
  transform: scale(0.96);
}

.video-story {
  padding: 112px 0;
  background: #d9ff61;
}

.video-story-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: center;
}

.video-story-copy h2 {
  font-size: clamp(48px, 5.2vw, 78px);
}

.video-story-copy h2 em {
  color: #0c101c;
  -webkit-text-stroke: 1px #0c101c;
  -webkit-text-fill-color: transparent;
}

.video-story-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: 20px;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.video-author > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #0c101c;
  color: #d9ff61;
  border-radius: 50%;
  font-family: MontserratBlack, sans-serif;
}

.video-author > .video-author-photo {
  overflow: hidden;
  border: 3px solid #0c101c;
  background: #275efe;
}

.video-author-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.08);
}

.video-author strong,
.video-author small {
  display: block;
}

.video-author small {
  color: #4b562b;
}

.loom-card {
  position: relative;
  min-height: 500px;
  padding: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  background: #0c101c;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 18px 18px 0 #275efe;
  transition-property: transform, box-shadow;
  transition-duration: 280ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.loom-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 24px 24px 0 #275efe;
}

.loom-card::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -25%;
  width: 430px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(39, 94, 254, 0.9), rgba(39, 94, 254, 0) 68%);
  pointer-events: none;
}

.loom-card-label,
.loom-config {
  position: relative;
  z-index: 1;
  color: #8fa9f7;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loom-card-title {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 68px;
  font-family: MontserratBlack, sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.loom-wave {
  position: absolute;
  z-index: 0;
  left: 38px;
  right: 38px;
  bottom: 112px;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.34;
}

.loom-wave i {
  flex: 1;
  height: 22%;
  background: #d9ff61;
  animation: loom-wave 1.8s ease-in-out infinite alternate;
}

.loom-wave i:nth-child(2n) { height: 72%; animation-delay: -0.6s; }
.loom-wave i:nth-child(3n) { height: 44%; animation-delay: -1.1s; }

.loom-play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.loom-play b {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: #0c101c;
  background: #d9ff61;
  border-radius: 50%;
}

.loom-play small {
  font-size: 16px;
  font-weight: 600;
}

.loom-config {
  margin-top: 18px;
  color: #69748d;
  font-size: 9px;
}

/* Team story: the real team is the visual, not a decorative placeholder. */
.loom-card-team-story {
  isolation: isolate;
  background: #080f1f;
}

.loom-card-team-story::before {
  z-index: 1;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  background:
    linear-gradient(0deg, rgba(4, 9, 21, 0.98) 0%, rgba(4, 9, 21, 0.7) 27%, rgba(4, 9, 21, 0.06) 68%),
    linear-gradient(180deg, rgba(4, 9, 21, 0.42) 0%, rgba(4, 9, 21, 0) 26%);
}

.loom-card-team {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0, 0, 1), filter 300ms ease;
}

.loom-card-team-story:hover .loom-card-team {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.035);
}

.loom-card-team-story .loom-card-label,
.loom-card-team-story .loom-card-title,
.loom-card-team-story .loom-play,
.loom-card-team-story .loom-config {
  z-index: 2;
}

.loom-card-team-story .loom-card-label {
  width: fit-content;
  padding: 8px 11px 7px;
  color: #d9ff61;
  background: rgba(4, 9, 21, 0.72);
  border: 1px solid rgba(217, 255, 97, 0.3);
  backdrop-filter: blur(10px);
}

.loom-card-team-story .loom-card-title {
  max-width: none;
  margin-top: auto;
  font-size: clamp(30px, 2.8vw, 42px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.6);
}

.loom-card-team-story .loom-play {
  margin-top: 24px;
}

.loom-card-team-story .loom-config {
  color: rgba(255, 255, 255, 0.62);
}

.loom-dialog {
  width: min(1080px, calc(100vw - 32px));
  padding: 0;
  color: #fff;
  background: #0c101c;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.loom-dialog::backdrop {
  background: rgba(4, 7, 15, 0.84);
  backdrop-filter: blur(8px);
}

.loom-dialog-head {
  min-height: 68px;
  padding: 0 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.loom-dialog-head button {
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 32px;
  cursor: pointer;
}

.loom-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #9ca7bc;
}

.loom-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.case-showcase {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 650px;
  overflow: hidden;
  background: #0c101c;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 28px 70px rgba(18, 29, 55, 0.15);
}

.case-nav {
  display: flex;
  flex-direction: column;
  background: #111725;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.case-nav button {
  position: relative;
  flex: 1;
  min-height: 118px;
  padding: 26px 26px 30px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition-property: background-color, color, transform;
  transition-duration: 220ms;
}

.case-nav button span,
.case-nav button strong {
  display: block;
}

.case-nav button span {
  margin-bottom: 9px;
  color: #7888a9;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-nav button strong {
  font-size: 18px;
}

.case-nav button i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #d9ff61;
}

.case-nav button[aria-selected="true"] {
  color: #0c101c;
  background: #d9ff61;
}

.case-nav button[aria-selected="true"] span {
  color: #465026;
}

.case-nav button[aria-selected="true"] i {
  animation: case-progress 3s linear forwards;
}

.case-stage {
  min-width: 0;
}

.case-panel {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  animation: case-enter 420ms cubic-bezier(0.2, 0, 0, 1);
}

.case-panel[hidden] {
  display: none;
}

.case-panel-copy {
  padding: 58px 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-panel-copy > span {
  color: #8ba7f4;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-panel-copy h3 {
  margin: 54px 0 24px;
  font-size: clamp(40px, 4.1vw, 64px);
}

.case-panel-copy p {
  color: #aab4c8;
  font-size: 18px;
}

.case-panel-copy ul {
  width: 100%;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.case-panel-copy li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-panel-copy li::before {
  content: "↗";
  margin-right: 12px;
  color: #d9ff61;
}

.case-panel-copy a {
  margin-top: auto;
  padding-bottom: 4px;
  border-bottom: 2px solid #d9ff61;
  font-weight: 600;
}

.case-panel figure {
  min-width: 0;
  margin: 0;
  padding: 36px;
  display: grid;
  place-items: center;
  background: #275efe;
}

.case-panel figure img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.22);
}

.industry-tabs {
  gap: 0;
  padding-bottom: 0;
  border: 1px solid #cfd6e4;
  background: #fff;
}

.industry-tabs button {
  position: relative;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-right: 1px solid #dce2ed;
  border-radius: 0;
  transition-property: background-color, color, transform;
  transition-duration: 220ms;
}

.industry-tabs button[aria-selected="true"] {
  color: #fff;
  background: #0c101c;
}

.industry-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #d9ff61;
  animation: industry-progress 3s linear forwards;
}

.industry-stage {
  border-radius: 0;
  box-shadow: 14px 14px 0 #0c101c;
}

.industry-flow span {
  position: relative;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(8, 21, 63, 0.2);
}

.industry-flow span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: #275efe;
}

.hero-action-note {
  max-width: 580px;
  margin: 12px 0 0;
  color: #6d778e;
  font-size: 14px;
  line-height: 1.45;
}

.quiz-form {
  min-height: 650px;
  padding: 42px;
  border-radius: 4px;
}

.quiz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.quiz-head span,
.quiz-head strong {
  display: block;
}

.quiz-head span {
  margin-bottom: 8px;
  color: #275efe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-head strong {
  font-family: MontserratBlack, sans-serif;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.quiz-head > b {
  flex: none;
  color: #6d778e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quiz-progress {
  height: 5px;
  margin: 27px 0 38px;
  overflow: hidden;
  background: #e5e9f1;
}

.quiz-progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  background: #275efe;
  transition-property: width;
  transition-duration: 360ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.quiz-step[hidden] {
  display: none;
}

.quiz-step.is-active {
  animation: quiz-enter 320ms cubic-bezier(0.2, 0, 0, 1);
}

.quiz-step fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.quiz-step legend {
  margin-bottom: 28px;
  font-family: MontserratBlack, sans-serif;
  font-size: clamp(27px, 2.7vw, 39px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-options label {
  position: relative;
  min-height: 94px;
  margin: 0;
  padding: 20px 52px 20px 20px;
  display: flex;
  align-items: center;
  background: #f4f6fa;
  outline: 1px solid #d9dee8;
  border-radius: 2px;
  cursor: pointer;
  transition-property: background-color, color, outline-color, transform, box-shadow;
  transition-duration: 200ms;
}

.quiz-options label:hover {
  outline-color: #275efe;
  box-shadow: 0 10px 25px rgba(39, 94, 254, 0.1);
}

.quiz-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-options label > span,
.quiz-options label b,
.quiz-options label small {
  display: block;
}

.quiz-options label b {
  font-size: 16px;
}

.quiz-options label small {
  margin-top: 5px;
  color: #727c91;
  font-weight: 400;
}

.quiz-options label > i {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 2px solid #c5cbd6;
  border-radius: 50%;
}

.quiz-options label > i::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #275efe;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.quiz-options label:has(input:checked) {
  color: #1647df;
  background: #e9efff;
  outline: 2px solid #275efe;
  box-shadow: 0 14px 30px rgba(39, 94, 254, 0.14);
}

.quiz-options label:has(input:checked) > i {
  border-color: #275efe;
}

.quiz-options label:has(input:checked) > i::after {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.quiz-error {
  margin: 16px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
}

.quiz-contact h3 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3vw, 43px);
}

.quiz-result-label {
  margin-bottom: 12px;
  color: #275efe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.quiz-controls[hidden] {
  display: none;
}

.mobile-brief-cta {
  transition-property: transform, opacity;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.mobile-brief-cta.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.quiz-controls button {
  min-width: 132px;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition-property: transform, background-color, color;
  transition-duration: 200ms;
}

.quiz-back {
  color: #525d72;
  background: transparent;
}

.quiz-next {
  margin-left: auto;
  color: #fff;
  background: #275efe;
}

.quiz-next span {
  margin-left: 18px;
}

.quiz-contact .submit-button {
  margin-top: 12px;
}

@keyframes loom-wave {
  to { transform: scaleY(1.5); opacity: 0.55; }
}

@keyframes case-progress {
  to { width: 100%; }
}

@keyframes industry-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes case-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quiz-enter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
  .video-story-grid {
    grid-template-columns: 1fr;
  }

  .loom-card {
    min-height: 440px;
  }

  .case-showcase {
    grid-template-columns: 1fr;
  }

  .case-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .case-nav button {
    flex: 0 0 240px;
  }
}

@media (max-width: 760px) {
  .video-story {
    padding: 80px 0;
  }

  .video-story-grid {
    gap: 42px;
  }

  .video-story-copy h2 {
    font-size: 43px;
  }

  .loom-card {
    min-height: 410px;
    padding: 24px;
    box-shadow: 9px 9px 0 #275efe;
  }

  .loom-card:hover {
    transform: none;
    box-shadow: 9px 9px 0 #275efe;
  }

  .loom-card-title {
    margin-top: 54px;
    font-size: 34px;
  }

  .loom-card-team-story {
    min-height: 430px;
  }

  .loom-card-team-story::before {
    background:
      linear-gradient(0deg, rgba(4, 9, 21, 0.99) 0%, rgba(4, 9, 21, 0.9) 35%, rgba(4, 9, 21, 0.08) 72%),
      linear-gradient(90deg, rgba(4, 9, 21, 0.24), rgba(4, 9, 21, 0.04));
  }

  .loom-card-team-story .loom-card-team {
    height: 64%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
  }

  .loom-card-team-story:hover .loom-card-team {
    transform: none;
  }

  .loom-card-team-story .loom-card-title {
    max-width: 13ch;
    margin-top: auto;
    font-size: 28px;
  }

  .loom-card-team-story .loom-play {
    margin-top: 18px;
  }

  .loom-wave {
    left: 24px;
    right: 24px;
  }

  .case-showcase {
    min-height: 0;
    margin-inline: -16px;
    border-radius: 0;
  }

  .case-nav button {
    flex-basis: 200px;
    min-height: 104px;
    padding: 20px;
  }

  .case-panel {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .case-panel-copy {
    padding: 36px 24px;
  }

  .case-panel-copy h3 {
    margin-top: 34px;
    font-size: 38px;
  }

  .case-panel-copy a {
    margin-top: 28px;
  }

  .case-panel figure {
    min-height: 340px;
    padding: 20px;
  }

  .industry-tabs {
    margin-right: -16px;
    border-right: 0;
  }

  .industry-tabs button {
    min-height: 54px;
    padding-inline: 18px;
  }

  .industry-stage {
    box-shadow: 8px 8px 0 #0c101c;
  }

  .quiz-form {
    min-height: 620px;
    padding: 24px 18px;
  }

  .quiz-head {
    display: block;
  }

  .quiz-head strong {
    font-size: 23px;
  }

  .quiz-head > b {
    display: block;
    margin-top: 14px;
  }

  .quiz-progress {
    margin: 22px 0 30px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-options label {
    min-height: 76px;
    padding-block: 15px;
  }

  .quiz-controls {
    position: sticky;
    bottom: 0;
    padding-top: 14px;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loom-wave i,
  .case-nav button[aria-selected="true"] i,
  .industry-tabs button[aria-selected="true"]::after,
  .case-panel,
  .quiz-step.is-active {
    animation: none;
  }
}

/* Keep anchored sections clear of the sticky navigation. */
#cases,
#industries,
#solutions,
#team,
#process,
#faq,
#brief {
  scroll-margin-top: calc(var(--header, 84px) + 16px);
}

@media (max-width: 760px) {
  #cases,
  #industries,
  #solutions,
  #team,
  #process,
  #faq,
  #brief {
    scroll-margin-top: 86px;
  }
}

/* V2.3: editorial hero, multi-select quiz, timed stories and real team */
.hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(430px, 0.82fr);
  gap: clamp(40px, 4vw, 72px);
}

.hero-copy {
  min-width: 0;
  padding-top: 18px;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0 0 34px;
  font-size: clamp(52px, 3.9vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: initial;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy h1 em {
  margin-top: 10px;
}

.hero-lead {
  max-width: 680px;
}

.case-nav button[aria-selected="true"] i,
.industry-tabs button[aria-selected="true"]::after {
  animation: none;
}

.case-nav button[aria-selected="true"].is-timing i {
  animation: case-progress 3s linear forwards;
}

.industry-tabs button[aria-selected="true"].is-timing::after {
  animation: industry-progress 3s linear forwards;
}

.case-showcase.is-paused .case-nav button i,
.industries.is-paused .industry-tabs button::after {
  animation-play-state: paused;
}

.industry-stage {
  min-height: 620px;
  padding: 32px;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 4vw, 64px);
  background: #0c101c;
  color: #fff;
}

.industry-copy {
  min-width: 0;
  padding: 22px 0 14px 18px;
  display: flex;
  flex-direction: column;
}

.industry-stage h3 {
  margin: 24px 0 20px;
  font-size: clamp(36px, 3.7vw, 58px);
  line-height: 0.98;
}

.industry-stage p {
  color: #b8c2d7;
  font-size: 18px;
}

.industry-flow {
  width: 100%;
  margin-top: auto;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.industry-flow span {
  min-height: 78px;
  padding: 30px 8px 9px;
  align-content: start;
  background: #171e2d;
  color: #fff;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.2;
}

.industry-flow span::before {
  left: 9px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #d9ff61;
}

.industry-flow span::after {
  content: "";
  position: absolute;
  left: 21px;
  right: -8px;
  top: 13px;
  height: 1px;
  background: rgba(217, 255, 97, 0.3);
}

.industry-flow span:last-of-type::after,
.industry-flow i {
  display: none;
}

.industry-visual {
  position: relative;
  min-width: 0;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  align-self: stretch;
  background: #e9eef7;
  box-shadow: 12px 12px 0 #275efe;
  will-change: transform, opacity;
}

.industry-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  transition-property: opacity, transform, filter;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  will-change: transform, opacity;
}

.industry-visual figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: rgba(12, 16, 28, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.industry-visual figcaption span {
  color: #d9ff61;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.industry-visual figcaption b {
  text-align: right;
  font-size: 12px;
}

.quiz-hint {
  margin: -18px 0 24px;
  color: #6d778e;
  font-size: 14px;
}

.quiz-step[data-multiple] .quiz-options label > i {
  border-radius: 3px;
}

.quiz-step[data-multiple] .quiz-options label > i::after {
  content: "✓";
  inset: -2px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #275efe;
  border-radius: 3px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.quiz-other {
  margin-top: 16px;
  display: block;
  color: #333a49;
  font-size: 13px;
  font-weight: 600;
}

.quiz-other input {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 15px;
  color: #0c101c;
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 2px;
  font: inherit;
  outline: none;
  transition-property: border-color, box-shadow;
  transition-duration: 180ms;
}

.quiz-other input:focus {
  border-color: #275efe;
  box-shadow: 0 0 0 3px rgba(39, 94, 254, 0.14);
}

.people-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 16px 40px rgba(18, 29, 55, 0.08);
}

.team-card.team-lead {
  grid-column: span 6;
  min-height: 650px;
  color: #fff;
  background: #0c101c;
}

.team-card.team-tech {
  background: #275efe;
}

.team-card figure {
  min-height: 0;
  aspect-ratio: 1 / 0.82;
  margin: 0;
  overflow: hidden;
  background: #dce3f0;
}

.team-card.team-lead figure {
  aspect-ratio: 1 / 0.9;
}

.team-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  filter: saturate(0.9);
  transition-property: transform, filter;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.team-card:hover img {
  transform: scale(1.025);
  filter: saturate(1);
}

.team-card > div {
  flex: 1;
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-card span {
  color: #275efe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.team-card.team-lead span {
  color: #d9ff61;
}

.team-card h3 {
  margin: 12px 0 18px;
  font-size: clamp(27px, 2.3vw, 38px);
}

.team-card p {
  margin-top: auto;
  color: #5f687b;
}

.team-card.team-lead p {
  color: #b9c3d6;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero-system {
    max-width: 760px;
  }

  .industry-stage {
    grid-template-columns: 1fr;
  }

  .industry-copy {
    min-height: 390px;
    padding-right: 18px;
  }

  .industry-visual {
    min-height: 480px;
  }
}

@media (max-width: 900px) {
  .team-card,
  .team-card.team-lead {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12.2vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

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

  .hero-copy h1 em {
    margin-top: 8px;
  }

  .industry-stage {
    min-height: 0;
    padding: 16px;
    gap: 28px;
  }

  .industry-copy {
    min-height: 440px;
    padding: 18px 6px 0;
  }

  .industry-stage h3 {
    font-size: 36px;
  }

  .industry-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .industry-flow span,
  .industry-flow span:nth-of-type(3),
  .industry-flow span:nth-of-type(4) {
    min-height: 44px;
    padding: 14px 12px 12px 32px;
    display: block;
    font-size: 12px;
  }

  .industry-flow span::before {
    left: 12px;
    top: 18px;
  }

  .industry-flow span::after {
    left: 15px;
    top: 26px;
    right: auto;
    bottom: -8px;
    width: 1px;
    height: auto;
  }

  .industry-visual {
    min-height: 360px;
    box-shadow: 7px 7px 0 #275efe;
  }

  .industry-visual figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: block;
  }

  .industry-visual figcaption b {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  .quiz-options label {
    min-height: 72px;
  }

  .team-card,
  .team-card.team-lead {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .team-card figure,
  .team-card.team-lead figure {
    aspect-ratio: 1 / 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card img,
  .industry-visual img {
    transition: none;
  }
}

/* V2.4: purposeful motion system */
.site-scroll-progress {
  position: fixed;
  z-index: 950;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  display: block;
  background: #d9ff61;
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
  animation: page-scroll-progress linear both;
  animation-timeline: scroll(root block);
}

.motion-enabled .page-loader > span {
  animation: loader-mark-in 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js.motion-enabled .reveal.is-visible {
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-enabled .hero-copy > *,
.motion-enabled .hero-system > * {
  opacity: 0;
}

.loaded.motion-enabled .hero-copy.is-visible > * {
  animation: hero-piece-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loaded.motion-enabled .hero-copy.is-visible > :nth-child(1) { animation-delay: 80ms; }
.loaded.motion-enabled .hero-copy.is-visible > :nth-child(2) { animation-delay: 150ms; }
.loaded.motion-enabled .hero-copy.is-visible > :nth-child(3) { animation-delay: 260ms; }
.loaded.motion-enabled .hero-copy.is-visible > :nth-child(4) { animation-delay: 350ms; }
.loaded.motion-enabled .hero-copy.is-visible > :nth-child(5) { animation-delay: 430ms; }

.loaded.motion-enabled .hero-system.is-visible > * {
  animation: system-piece-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loaded.motion-enabled .hero-system.is-visible > :nth-child(1) { animation-delay: 300ms; }
.loaded.motion-enabled .hero-system.is-visible > :nth-child(2) { animation-delay: 390ms; }
.loaded.motion-enabled .hero-system.is-visible > :nth-child(3) { animation-delay: 480ms; }
.loaded.motion-enabled .hero-system.is-visible > :nth-child(4) { animation-delay: 570ms; }

.motion-enabled .hero-system.is-visible {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(1100px) translate3d(0, var(--tilt-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition-property: opacity, transform, box-shadow;
  transition-duration: 720ms, 240ms, 240ms;
  transition-timing-function: ease, cubic-bezier(0.2, 0, 0, 1), cubic-bezier(0.2, 0, 0, 1);
}

.motion-enabled .hero-system.is-visible:hover {
  box-shadow: 30px 34px 0 #275efe;
}

.motion-enabled .automation-rail article {
  animation: rail-step-focus 4.8s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.motion-enabled .automation-rail article:nth-of-type(2) { animation-delay: 1.6s; }
.motion-enabled .automation-rail article:nth-of-type(3) { animation-delay: 3.2s; }

.motion-enabled .eyebrow span {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition-property: transform;
  transition-duration: 640ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .is-visible .eyebrow span,
.motion-enabled .eyebrow.is-visible span,
.loaded.motion-enabled .hero-copy.is-visible .eyebrow span {
  transform: scaleX(1);
}

.motion-enabled .button,
.motion-enabled .submit-button,
.motion-enabled .header-cta,
.motion-enabled .loom-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.motion-enabled .button::after,
.motion-enabled .submit-button::after,
.motion-enabled .header-cta::after,
.motion-enabled .loom-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -80%;
  left: -45%;
  width: 28%;
  height: 260%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translate3d(-180%, 0, 0) rotate(18deg);
  pointer-events: none;
}

@media (hover: hover) {
  .motion-enabled .button:hover::after,
  .motion-enabled .submit-button:hover::after,
  .motion-enabled .header-cta:hover::after,
  .motion-enabled .loom-card:hover::after {
    opacity: 1;
    transform: translate3d(620%, 0, 0) rotate(18deg);
    transition-property: transform, opacity;
    transition-duration: 720ms, 180ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1), ease;
  }
}

.motion-enabled .case-panel.is-active figure img {
  animation: case-media-breathe 3s cubic-bezier(0.2, 0, 0, 1) both;
}

.motion-enabled .case-panel.is-active .case-panel-copy > * {
  animation: case-copy-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-enabled .case-panel.is-active .case-panel-copy > :nth-child(2) { animation-delay: 50ms; }
.motion-enabled .case-panel.is-active .case-panel-copy > :nth-child(3) { animation-delay: 100ms; }
.motion-enabled .case-panel.is-active .case-panel-copy > :nth-child(4) { animation-delay: 150ms; }
.motion-enabled .case-panel.is-active .case-panel-copy > :nth-child(5) { animation-delay: 200ms; }

.motion-enabled .industry-visual img {
  animation: industry-media-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-enabled .industry-flow span::before {
  animation: flow-dot 3s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.motion-enabled .industry-flow span:nth-of-type(2)::before { animation-delay: 0.75s; }
.motion-enabled .industry-flow span:nth-of-type(3)::before { animation-delay: 1.5s; }
.motion-enabled .industry-flow span:nth-of-type(4)::before { animation-delay: 2.25s; }
.motion-enabled .industry-flow span:nth-of-type(5)::before { animation-delay: 3s; }

.motion-enabled .solution-row.is-visible b {
  animation: arrow-nudge 2.8s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.motion-enabled .team-card.is-visible figure,
.motion-enabled .industry-visual,
.motion-enabled .case-panel figure {
  clip-path: inset(0 0 0 0);
}

.motion-enabled .team-card:not(.is-visible) figure {
  clip-path: inset(0 0 100% 0);
}

.motion-enabled .team-card figure {
  transition-property: clip-path;
  transition-duration: 820ms;
  transition-delay: var(--reveal-delay, 0ms);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .quiz-progress > i {
  box-shadow: 0 0 22px rgba(39, 94, 254, 0.45);
}

@keyframes hero-piece-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes page-scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loader-mark-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes system-piece-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes rail-step-focus {
  0%, 28%, 100% { opacity: 0.62; transform: translate3d(0, 0, 0); }
  10%, 18% { opacity: 1; transform: translate3d(5px, 0, 0); }
}

@keyframes case-media-breathe {
  from { opacity: 0.45; transform: scale(0.975); }
  18% { opacity: 1; }
  to { opacity: 1; transform: scale(1.025); }
}

@keyframes case-copy-in {
  from { opacity: 0; transform: translate3d(-16px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes industry-media-in {
  from { opacity: 0.45; transform: scale(1.025); }
  15% { opacity: 1; }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flow-dot {
  0%, 12%, 100% { opacity: 0.38; transform: scale(0.7); }
  5%, 9% { opacity: 1; transform: scale(1.45); }
}

@keyframes arrow-nudge {
  0%, 72%, 100% { transform: translate3d(0, 0, 0); }
  82% { transform: translate3d(5px, -5px, 0); }
}

@media (max-width: 760px) {
  .site-scroll-progress {
    z-index: 999;
  }

  .motion-enabled .hero-system.is-visible,
  .motion-enabled .hero-system.is-visible:hover {
    transform: none;
    box-shadow: 10px 12px 0 #275efe;
  }

  .motion-enabled .case-panel.is-active figure img,
  .motion-enabled .industry-visual img {
    animation-duration: 420ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-scroll-progress,
  .motion-enabled .hero-copy > *,
  .motion-enabled .hero-system > * {
    display: none;
    animation: none;
  }

  .hero-copy > *,
  .hero-system > * {
    opacity: 1;
  }
}

/* V2.5: conversion-first responsive system */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

:root {
  --v2-section-desktop: clamp(104px, 8vw, 136px);
  --v2-section-mobile: 72px;
  --v2-mobile-header: 60px;
  --v2-mobile-cta: 54px;
}

.section {
  padding-block: var(--v2-section-desktop);
}

.section-head {
  margin-bottom: clamp(48px, 5vw, 68px);
}

.case-showcase,
.industry-stage,
.team-card {
  contain: layout paint;
}

.case-panel figure,
.industry-visual,
.team-card figure {
  isolation: isolate;
}

.case-panel figure img,
.industry-visual img,
.team-card img {
  backface-visibility: hidden;
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.menu-open .site-header {
    height: 100dvh;
    background: #fff;
    backdrop-filter: none;
  }

  body.menu-open .header-inner {
    height: var(--header);
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 0;
    border-radius: 4px;
    background: #0c101c;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    background: #fff;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .header-inner {
    gap: 20px;
  }

  .header-cta {
    margin-left: auto;
  }

  .mobile-menu {
    position: fixed;
    z-index: 100;
    inset: var(--header) 0 0;
    padding: 40px max(24px, calc((100vw - 980px) / 2));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    min-height: 72px;
    padding: 20px 0;
    border-bottom: 1px solid #dce2ed;
    font-family: MontserratBlack, sans-serif;
    font-size: 32px;
  }

  .mobile-menu a:last-child {
    margin-top: 24px;
    padding-inline: 24px;
    color: #fff;
    background: #275efe;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    gap: 56px;
  }

  .industry-stage {
    grid-template-columns: 1fr;
  }

  .industry-copy {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 32px);
    --header: var(--v2-mobile-header);
  }

  html {
    scroll-padding-top: 16px;
  }

  body {
    padding-bottom: 70px;
    font-size: 16px;
  }

  .grid-bg {
    background-size: 42px 42px;
  }

  .section {
    padding-block: var(--v2-section-mobile);
  }

  .section-head,
  .section-head.split {
    margin-bottom: 36px;
  }

  .section-head.split {
    gap: 18px;
  }

  .section-head > p:last-child,
  .section-head.split > p:last-child {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.48;
  }

  h2 {
    font-size: clamp(38px, 11.4vw, 46px);
    line-height: 0.98;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .site-header {
    position: absolute;
    z-index: 90;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v2-mobile-header);
    border-bottom-color: rgba(12, 16, 28, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
  }

  .site-header .header-inner {
    height: var(--v2-mobile-header);
  }

  .brand img {
    width: 126px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  body.menu-open .site-header {
    position: fixed;
    height: 100dvh;
  }

  .mobile-menu {
    top: var(--v2-mobile-header);
    height: calc(100dvh - var(--v2-mobile-header));
    padding: 16px 16px 88px;
  }

  .mobile-menu a {
    min-height: 60px;
    padding: 16px 4px;
    font-size: 23px;
  }

  .mobile-menu a:last-child {
    min-height: 56px;
    margin-top: 14px;
    padding-inline: 16px;
  }

  .hero {
    padding-top: calc(var(--v2-mobile-header) + 34px);
  }

  .hero-grid {
    gap: 42px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(40px, 11.7vw, 48px);
    line-height: 0.95;
  }

  .hero-lead {
    max-width: 35ch;
    font-size: 17px;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 28px;
  }

  .hero-actions .button {
    min-height: 56px;
  }

  .hero-actions .button-light {
    width: auto;
    min-height: 44px;
    padding: 0 4px;
    justify-self: start;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-proof {
    margin-top: 24px;
    display: flex;
    gap: 10px 20px;
    font-size: 13px;
  }

  .hero-action-note {
    max-width: 34ch;
    margin-top: 10px;
    font-size: 13px;
  }

  .hero-proof li {
    min-width: calc(50% - 10px);
  }

  .hero-system {
    margin: 0 8px 0 0;
    padding: 14px;
    border-radius: 4px;
  }

  .system-top {
    padding-bottom: 14px;
  }

  .message-card {
    margin-block: 16px 8px;
  }

  .automation-rail article {
    padding-block: 11px;
  }

  .system-result {
    padding: 15px;
  }

  .trust-ticker .ticker-track {
    gap: 42px;
    padding: 17px 24px;
    font-size: 14px;
  }

  .video-story {
    padding-block: 72px;
  }

  .video-story-grid {
    gap: 34px;
  }

  .video-story-copy h2 {
    font-size: 44px;
  }

  .video-story-copy > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 17px;
  }

  .loom-card {
    min-height: 330px;
    padding: 24px;
    box-shadow: 8px 8px 0 #275efe;
  }

  .loom-card:hover {
    transform: none;
    box-shadow: 8px 8px 0 #275efe;
  }

  .loom-card-title {
    margin-top: 36px;
    font-size: 29px;
  }

  .case-showcase {
    margin-inline: 0;
    box-shadow: 8px 8px 0 #0c101c;
  }

  .case-nav {
    scrollbar-width: none;
  }

  .case-nav::-webkit-scrollbar {
    display: none;
  }

  .case-nav button {
    flex-basis: 170px;
    min-height: 72px;
    padding: 14px 16px;
  }

  .case-nav button strong {
    font-size: 14px;
  }

  .case-panel-copy {
    padding: 28px 20px 30px;
  }

  .case-panel-copy h3 {
    margin: 24px 0 16px;
    font-size: 34px;
  }

  .case-panel-copy p {
    font-size: 16px;
  }

  .case-panel-copy ul {
    margin-block: 20px;
  }

  .case-panel-copy li {
    padding-block: 10px;
  }

  .case-panel figure {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 16px;
  }

  .case-panel figure img {
    max-height: none;
    object-fit: contain;
  }

  .industry-tabs {
    margin-right: -16px;
  }

  .industry-tabs button {
    min-height: 50px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .industry-stage {
    min-height: 0;
    padding: 16px;
    gap: 22px;
    box-shadow: 7px 7px 0 #0c101c;
  }

  .industry-copy {
    min-height: 0;
    padding: 14px 4px 0;
  }

  .industry-stage h3 {
    margin: 18px 0 14px;
    font-size: 34px;
  }

  .industry-stage p {
    font-size: 16px;
  }

  .industry-flow {
    margin-top: 24px;
    padding-top: 0;
    gap: 5px;
  }

  .industry-flow span,
  .industry-flow span:nth-of-type(3),
  .industry-flow span:nth-of-type(4) {
    min-height: 40px;
    padding: 11px 8px 10px 30px;
    font-size: 11px;
  }

  .industry-flow span::before {
    top: 15px;
  }

  .industry-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
    box-shadow: 6px 6px 0 #275efe;
  }

  .industry-visual figcaption {
    padding: 10px 12px;
    font-size: 10px;
  }

  .solution-row {
    grid-template-columns: 34px minmax(0, 1fr) 42px;
    gap: 10px;
    padding-block: 22px;
  }

  .solution-row h3 {
    font-size: 24px;
  }

  .solution-row p {
    margin-top: 8px;
    font-size: 15px;
  }

  .solution-row b {
    width: 40px;
    height: 40px;
  }

  .logic-grid,
  .ownership-inner {
    gap: 40px;
  }

  .logic-copy h2 {
    font-size: 41px;
  }

  .logic-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .logic-map article {
    min-height: 82px;
    padding: 16px;
  }

  .logic-map > i {
    height: 26px;
    font-size: 18px;
    line-height: 26px;
  }

  .people-grid {
    gap: 12px;
  }

  .team-card.team-lead {
    min-height: 0;
  }

  .team-card.team-lead figure {
    aspect-ratio: 4 / 3;
  }

  .team-card:not(.team-lead) {
    min-height: 154px;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .team-card:not(.team-lead) figure {
    height: 100%;
    aspect-ratio: auto;
  }

  .team-card:not(.team-lead) > div {
    padding: 17px 16px;
  }

  .team-card:not(.team-lead) h3 {
    margin: 8px 0 10px;
    font-size: 25px;
  }

  .team-card:not(.team-lead) p {
    font-size: 13px;
    line-height: 1.38;
  }

  .team-card.team-lead > div {
    padding: 22px 20px 24px;
  }

  .ownership h2 {
    font-size: 46px;
  }

  .ownership-list article {
    padding-block: 22px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
    padding-block: 22px;
  }

  .process-list h3 {
    margin-bottom: 8px;
    font-size: 23px;
  }

  .filter-grid {
    gap: 12px;
  }

  .filter-card {
    padding: 26px 22px;
  }

  .filter-card h3 {
    margin-block: 22px;
    font-size: 32px;
  }

  .clients-section {
    padding-top: 72px;
  }

  .clients-section h2 {
    margin-bottom: 36px;
    font-size: 40px;
  }

  .logo-track {
    gap: 46px;
    padding: 18px 24px;
  }

  .logo-track img {
    width: 118px;
    height: 44px;
  }

  .faq-grid {
    gap: 28px;
  }

  .accordion summary {
    min-height: 60px;
    padding-block: 18px;
    font-size: 17px;
  }

  .accordion details p {
    padding: 0 28px 20px 0;
    font-size: 15px;
  }

  .brief-section {
    padding-block: 72px 84px;
  }

  .brief-grid {
    gap: 34px;
  }

  .brief-copy h2 {
    font-size: 46px;
  }

  .brief-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .contact-list {
    margin-top: 28px;
    gap: 9px;
    font-size: 15px;
  }

  .quiz-form {
    min-height: 0;
    padding: 20px 16px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.13);
  }

  .quiz-head strong {
    font-size: 21px;
  }

  .quiz-head > b {
    margin-top: 10px;
    font-size: 12px;
  }

  .quiz-progress {
    margin: 18px 0 24px;
  }

  .quiz-step legend {
    margin-bottom: 20px;
    font-size: 29px;
  }

  .quiz-hint {
    margin-top: -10px;
    font-size: 13px;
  }

  .quiz-step[data-multiple] .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quiz-options label,
  .quiz-step[data-multiple] .quiz-options label {
    min-height: 68px;
    padding: 12px 34px 12px 12px;
  }

  .quiz-options label b {
    font-size: 14px;
    line-height: 1.2;
  }

  .quiz-step[data-multiple] .quiz-options label small {
    display: none;
  }

  .quiz-options label > i {
    right: 11px;
    width: 18px;
    height: 18px;
  }

  .quiz-other {
    margin-top: 14px;
    font-size: 13px;
  }

  .quiz-other input {
    min-height: 50px;
  }

  .quiz-controls {
    bottom: -1px;
    margin-top: 18px;
    padding: 10px 0 1px;
  }

  .quiz-controls button {
    min-width: 112px;
    min-height: 50px;
    padding-inline: 16px;
  }

  .mobile-brief-cta {
    z-index: 85;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: var(--v2-mobile-cta);
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 12px 34px rgba(12, 16, 28, 0.22), 0 2px 6px rgba(12, 16, 28, 0.1);
  }

  .mobile-brief-cta > span {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .mobile-brief-cta small,
  .mobile-brief-cta b {
    display: block;
  }

  .mobile-brief-cta small {
    font-family: Gilroy, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-brief-cta b {
    font-size: 17px;
  }

  .mobile-brief-cta > i {
    font-style: normal;
  }

  .mobile-brief-cta.is-hidden {
    transform: translate3d(0, calc(100% + 18px), 0);
  }

  .site-footer {
    padding-block: 36px 88px;
  }

  #cases,
  #industries,
  #solutions,
  #team,
  #process,
  #faq,
  #brief {
    scroll-margin-top: 12px;
  }
}

@media (max-width: 370px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-proof li {
    min-width: 100%;
  }

  .industry-tabs {
    margin-right: 0;
  }

  .quiz-step[data-multiple] .quiz-options {
    grid-template-columns: 1fr;
  }

  .team-card:not(.team-lead) {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

/* Keep both qualification cards readable on narrow tablets without forcing
   their long Ukrainian labels beyond the viewport. */
.filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-card {
  min-width: 0;
}

@media (min-width: 761px) and (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

/* V2.6: evidence carousel and stable industry stories */
.case-stage {
  height: 838px;
}

.case-panel {
  height: 100%;
  min-height: 0;
}

.logo-carousel {
  overflow: hidden;
  background: #fff;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.logo-carousel:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(39, 94, 254, 0.22);
}

.logo-carousel-track,
.trust-ticker .logo-carousel-track {
  width: max-content;
  padding: 0;
  gap: 0;
  display: flex;
  align-items: stretch;
  color: inherit;
  animation: logo-carousel-loop 34s linear infinite;
  will-change: transform;
}

.logo-carousel-track.is-waapi,
.trust-ticker .logo-carousel-track.is-waapi {
  animation: none;
}

.logo-carousel-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(44px, 5vw, 80px);
  padding: 20px clamp(22px, 2.5vw, 40px);
}

.logo-carousel-group img,
.logo-track .logo-carousel-group img,
.trust-ticker .logo-carousel-group img {
  flex: none;
  width: auto;
  max-width: 160px;
  height: 48px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.logo-carousel-group img[src*="pizza"] {
  width: 54px;
}

.logo-carousel-group img.logo-fayni,
.logo-track .logo-carousel-group img.logo-fayni,
.trust-ticker .logo-carousel-group img.logo-fayni {
  width: 110px;
  height: 52px;
}

.logo-carousel:hover .logo-carousel-track,
.logo-carousel:focus-within .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes logo-carousel-loop {
  to { transform: translate3d(-50%, 0, 0); }
}

.industry-tabs {
  position: sticky;
  z-index: 14;
  top: calc(var(--header) + 8px);
  margin-inline: -12px;
  padding: 10px 12px 14px;
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 20px rgba(12, 16, 28, 0.04);
}

.industry-tabs button {
  min-height: 48px;
}

.industry-index {
  font-variant-numeric: tabular-nums;
}

.industry-copy {
  height: 556px;
}

.industry-case-link {
  width: fit-content;
  min-height: 48px;
  margin-top: 22px;
  padding: 10px 40px 10px 0;
  position: relative;
  color: #fff;
  border-bottom: 1px solid rgba(217, 255, 97, 0.62);
  transition-property: color, border-color, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.industry-case-link::after {
  content: "↗";
  position: absolute;
  right: 4px;
  top: 50%;
  color: #d9ff61;
  transform: translate3d(0, -50%, 0);
  transition-property: transform;
  transition-duration: 220ms;
}

.industry-case-link small,
.industry-case-link strong {
  display: block;
}

.industry-case-link small {
  margin-bottom: 3px;
  color: #91a0bc;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.industry-case-link strong {
  font-size: 14px;
}

@media (hover: hover) {
  .industry-case-link:hover {
    color: #d9ff61;
    border-color: #d9ff61;
    transform: translate3d(2px, 0, 0);
  }

  .industry-case-link:hover::after {
    transform: translate3d(3px, calc(-50% - 3px), 0);
  }
}

@media (max-width: 1180px) {
  .industry-copy {
    height: 430px;
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .case-stage {
    height: 900px;
  }

  .logo-carousel-group {
    gap: 42px;
    padding: 15px 21px;
  }

  .logo-carousel-group img,
  .logo-track .logo-carousel-group img,
  .trust-ticker .logo-carousel-group img {
    max-width: 126px;
    height: 38px;
  }

  .logo-carousel-group img.logo-fayni,
  .logo-track .logo-carousel-group img.logo-fayni,
  .trust-ticker .logo-carousel-group img.logo-fayni {
    width: 88px;
    height: 42px;
  }

  .logo-carousel-track,
  .trust-ticker .logo-carousel-track {
    animation-duration: 28s;
  }

  .industry-tabs {
    top: 8px;
    margin-right: -16px;
    margin-left: -8px;
    padding-inline: 8px 16px;
  }

  .industry-copy {
    height: 712px;
    min-height: 712px;
    padding-top: 28px;
  }

  .industry-stage h3 {
    font-size: 32px;
  }

  .industry-stage p {
    font-size: 15px;
    line-height: 1.5;
  }

  .industry-flow span,
  .industry-flow span:nth-of-type(3),
  .industry-flow span:nth-of-type(4) {
    min-height: 36px;
    padding-block: 9px;
  }

  .industry-flow span::before {
    top: 13px;
  }

  .industry-case-link {
    width: 100%;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track,
  .trust-ticker .logo-carousel-track {
    animation: none;
    will-change: auto;
  }
}

/* V2.7: real case assets, clearer evidence and resilient lead delivery */
.case-stage {
  height: 900px;
}

.case-panel {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.case-panel-copy {
  padding: 52px clamp(34px, 4vw, 58px);
}

.case-panel-copy h3 {
  margin: 30px 0 18px;
  font-size: clamp(38px, 3.25vw, 52px);
}

.case-panel-copy p {
  max-width: 650px;
  line-height: 1.55;
}

.case-metrics {
  width: 100%;
  margin: 28px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}

.case-metrics b {
  min-width: 0;
  padding: 18px 18px 18px 0;
  display: block;
}

.case-metrics b + b {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.case-metrics strong,
.case-metrics small {
  display: block;
}

.case-metrics strong {
  color: #d9ff61;
  font-family: MontserratBlack, sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.035em;
}

.case-metrics small {
  max-width: 190px;
  margin-top: 6px;
  color: #aab4c8;
  font-size: 12px;
  line-height: 1.35;
}

.case-panel .case-visual {
  min-width: 0;
  padding: 38px 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  aspect-ratio: auto;
  background: #275efe;
}

.case-panel .case-visual-loyalty {
  background: #f1a5b5;
}

.case-panel .case-visual-fayni {
  background: #152565;
}

.case-panel .case-visual-astra {
  background: #86e966;
}

.case-panel .case-visual img {
  width: 100%;
  height: auto;
  max-height: 710px;
  flex: 0 1 auto;
  object-fit: contain;
  outline: 0;
  box-shadow: 0 24px 54px rgba(6, 12, 28, 0.26);
}

.case-panel .case-visual-loyalty img {
  width: min(100%, 360px);
  margin-inline: auto;
}

.case-panel .case-visual-astra img {
  margin-block: auto;
  box-shadow: none;
}

.case-visual figcaption {
  min-height: 52px;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.case-visual figcaption span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-visual figcaption strong {
  max-width: 260px;
  font-size: 13px;
  text-align: right;
}

.quiz-telegram-fallback {
  margin-top: 18px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #1647df;
  background: #eef3ff;
  border: 1px solid #cbd8ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 180ms, background-color 180ms, border-color 180ms;
}

.quiz-telegram-fallback span {
  flex: none;
  font-size: 18px;
}

.form-status a {
  display: inline-block;
  margin-top: 6px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .quiz-telegram-fallback:hover {
    color: #fff;
    background: #275efe;
    border-color: #275efe;
  }
}

@media (max-width: 1180px) {
  .case-stage {
    height: 860px;
  }

  .case-panel {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
  }

  .case-panel-copy {
    padding: 38px 32px;
  }

  .case-panel-copy h3 {
    font-size: 40px;
  }

  .case-panel .case-visual {
    padding: 28px 24px 22px;
  }
}

@media (max-width: 1100px) {
  .case-stage {
    height: 1050px;
  }
}

@media (max-width: 760px) {
  .case-stage {
    height: 1160px;
  }

  .case-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 430px minmax(0, 1fr);
  }

  .case-panel .case-visual {
    order: -1;
    min-height: 0;
    padding: 18px 16px 14px;
    gap: 10px;
    aspect-ratio: auto;
  }

  .case-panel .case-visual img {
    width: 100%;
    height: min(350px, 100%);
    max-height: 350px;
  }

  .case-panel .case-visual-loyalty img {
    width: auto;
    height: 350px;
  }

  .case-visual figcaption {
    min-height: 40px;
    padding-top: 10px;
    align-items: center;
  }

  .case-visual figcaption strong {
    font-size: 11px;
  }

  .case-panel-copy {
    padding: 30px 20px 34px;
  }

  .case-panel-copy h3 {
    margin: 22px 0 14px;
    font-size: 34px;
  }

  .case-panel-copy p {
    font-size: 15px;
  }

  .case-metrics {
    margin-top: 20px;
  }

  .case-metrics b {
    padding-block: 14px;
  }

  .case-metrics strong {
    font-size: 25px;
  }

  .case-panel-copy ul {
    margin-block: 16px;
    font-size: 13px;
  }

  .case-panel-copy li {
    padding-block: 8px;
  }

  .case-panel-copy a {
    margin-top: 14px;
    font-size: 14px;
  }

  .quiz-telegram-fallback {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .case-stage {
    height: 1200px;
  }

  .case-panel {
    grid-template-rows: 400px minmax(0, 1fr);
  }

  .case-panel .case-visual img,
  .case-panel .case-visual-loyalty img {
    max-height: 320px;
    height: 320px;
  }

  .case-panel-copy h3 {
    font-size: 31px;
  }
}

/* V2.8: founder-led hero — personal trust instead of a generic UI mockup */
.hero-founder {
  min-height: 650px;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto minmax(310px, 1fr) auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #0c101c;
}

.hero-founder::before {
  width: 116px;
  height: 116px;
  right: -82px;
  top: -55px;
  z-index: -1;
  background: #d9ff61;
}

.hero-founder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 58%);
}

.hero-founder-top {
  min-height: 64px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #31394a;
}

.hero-founder-top span,
.hero-founder-intro small,
.hero-founder-media figcaption small {
  color: #91a5ce;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-founder-top b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Gilroy, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.hero-founder-top b i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9ff61;
  box-shadow: 0 0 0 6px rgba(217, 255, 97, 0.12);
  animation: founder-status-pulse 2.2s ease-in-out infinite;
}

.hero-founder-intro {
  max-width: 520px;
  padding: clamp(24px, 3vw, 38px) clamp(24px, 3vw, 34px) 22px;
}

.hero-founder-intro small {
  display: block;
  margin-bottom: 12px;
  color: #d9ff61;
}

.hero-founder-intro strong {
  display: block;
  max-width: 15ch;
  font-family: MontserratBlack, Gilroy, sans-serif;
  font-size: clamp(27px, 2.2vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-founder-media {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  background: #275efe;
}

.hero-founder-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #0c101c 0%, rgba(12, 16, 28, 0.12) 17%, transparent 42%),
    linear-gradient(0deg, rgba(12, 16, 28, 0.78) 0%, transparent 42%);
}

.hero-founder-media img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.015);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.hero-founder:hover .hero-founder-media img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.02);
}

.hero-founder-media figcaption {
  position: absolute;
  left: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.hero-founder-media figcaption small {
  color: #d9ff61;
}

.hero-founder-media figcaption strong {
  font-family: MontserratBlack, Gilroy, sans-serif;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: right;
}

.hero-founder-promise {
  min-height: 96px;
  margin: 0;
  padding: 22px clamp(24px, 3vw, 34px) 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0c101c;
  background: #d9ff61;
  font-family: MontserratBlack, Gilroy, sans-serif;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-founder-promise span {
  align-self: flex-start;
  color: #275efe;
  font-size: 54px;
  line-height: 0.65;
}

@keyframes founder-status-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1180px) {
  .hero-founder {
    width: 100%;
    max-width: 760px;
  }

  .hero-founder-intro strong {
    max-width: 20ch;
  }

  .hero-founder-media {
    min-height: 410px;
  }
}

@media (max-width: 760px) {
  .hero-founder {
    min-height: 0;
    margin-right: 8px;
    padding: 0;
    grid-template-rows: auto auto 310px auto;
  }

  .hero-founder-top {
    min-height: 54px;
    padding: 16px 18px;
  }

  .hero-founder-top span,
  .hero-founder-intro small,
  .hero-founder-media figcaption small {
    font-size: 9px;
  }

  .hero-founder-top b {
    font-size: 12px;
  }

  .hero-founder-intro {
    padding: 24px 20px 20px;
  }

  .hero-founder-intro strong {
    max-width: 17ch;
    font-size: 28px;
  }

  .hero-founder-media {
    min-height: 310px;
  }

  .hero-founder-media img {
    object-position: 50% 28%;
  }

  .hero-founder-media figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-founder-media figcaption strong {
    font-size: 21px;
  }

  .hero-founder-promise {
    min-height: 90px;
    padding: 20px;
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-founder-top b i,
  .hero-founder-media img {
    animation: none;
    transition: none;
  }
}

/* V2.10: lightweight founder portrait — one visual, no duplicate hero message */
.hero-founder {
  min-height: 0;
  align-self: center;
  display: block;
  border-color: #dbe3f0;
  background: #f5f8fd;
  box-shadow: 0 22px 60px rgba(25, 49, 96, 0.1);
}

.motion-enabled .hero-founder.is-visible,
.motion-enabled .hero-founder.is-visible:hover {
  box-shadow: 0 22px 60px rgba(25, 49, 96, 0.1);
}

.hero-founder::before,
.hero-founder::after {
  display: none;
}

.hero-founder-media {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #f5f8fd;
}

.hero-founder-media::before {
  background: linear-gradient(90deg, rgba(247, 250, 255, 0.98) 0%, rgba(247, 250, 255, 0.7) 35%, rgba(247, 250, 255, 0) 68%);
}

.hero-founder-media img {
  object-position: center;
  transform: scale(1.002);
}

.hero-founder:hover .hero-founder-media img {
  transform: scale(1.018);
  filter: saturate(1.025) contrast(1.01);
}

.hero-founder-media figcaption {
  width: min(45%, 250px);
  left: clamp(22px, 3vw, 34px);
  right: auto;
  bottom: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 5px;
  color: #0c101c;
}

.hero-founder-media figcaption small {
  color: #275efe;
}

.hero-founder-media figcaption strong {
  color: #0c101c;
  font-size: clamp(22px, 2vw, 30px);
  text-align: left;
}

.hero-founder-media figcaption span {
  max-width: 22ch;
  color: #68748c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .hero-founder {
    max-width: 720px;
  }

  .hero-founder-media {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero-founder {
    margin-right: 0;
  }

  .motion-enabled .hero-founder.is-visible,
  .motion-enabled .hero-founder.is-visible:hover {
    box-shadow: 0 14px 34px rgba(25, 49, 96, 0.1);
  }

  .hero-founder-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-founder-media img {
    object-position: center;
  }

  .hero-founder-media figcaption {
    width: 43%;
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .hero-founder-media figcaption strong {
    font-size: 20px;
  }

  .hero-founder-media figcaption span {
    font-size: 11px;
  }
}

/* V2.9: recognizable client identity inside every case */
.case-brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.case-brand-logo {
  width: 154px;
  height: 62px;
  flex: 0 0 auto;
  padding: 10px 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(39, 94, 254, 0.34);
}

.case-brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.case-brand-logo-syf {
  width: 184px;
}

.case-brand-logo-fayni {
  width: 76px;
  padding: 7px 10px;
  background: #ff918f;
}

.case-brand-logo-astra {
  width: 164px;
}

.case-brand-meta {
  max-width: 25ch;
  color: #8ba7f4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-panel-copy > .case-brand + h3 {
  margin-top: 30px;
}

@media (max-width: 1180px) {
  .case-brand-logo {
    width: 136px;
    height: 56px;
  }

  .case-brand-logo-syf {
    width: 166px;
  }

  .case-brand-logo-fayni {
    width: 70px;
  }

  .case-brand-logo-astra {
    width: 146px;
  }
}

@media (max-width: 760px) {
  .case-brand {
    gap: 13px;
  }

  .case-brand-logo {
    width: 118px;
    height: 50px;
    padding: 8px 10px;
    box-shadow: 6px 6px 0 rgba(39, 94, 254, 0.34);
  }

  .case-brand-logo-syf {
    width: 145px;
  }

  .case-brand-logo-fayni {
    width: 62px;
    padding: 6px 9px;
  }

  .case-brand-logo-astra {
    width: 130px;
  }

  .case-brand-meta {
    font-size: 9px;
  }

  .case-panel-copy > .case-brand + h3 {
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .loom-card.loom-card-team-story {
    min-height: 430px;
  }

  .loom-card-team-story .loom-card-title {
    margin-top: auto;
    font-size: 28px;
  }
}

/* V2.6: conversion offer + clearly visible, GPU-only motion */
.motion-enabled .hero-copy h1 > span,
.motion-enabled .hero-copy h1 > em > span {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  clip-path: inset(0 0 100% 0);
  will-change: transform, opacity, clip-path;
}

.loaded.motion-enabled .hero-copy.is-visible h1 > span,
.loaded.motion-enabled .hero-copy.is-visible h1 > em > span {
  animation: hero-line-reveal 860ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loaded.motion-enabled .hero-copy.is-visible h1 > :nth-child(1) {
  animation-delay: 190ms;
}

.loaded.motion-enabled .hero-copy.is-visible h1 > :nth-child(2) {
  animation-delay: 280ms;
}

.loaded.motion-enabled .hero-copy.is-visible h1 > em > :nth-child(1) {
  animation-delay: 370ms;
}

.loaded.motion-enabled .hero-copy.is-visible h1 > em > :nth-child(2) {
  animation-delay: 460ms;
}

.motion-enabled .hero-cost-cta span {
  display: inline-block;
  animation: offer-arrow-pulse 1.9s cubic-bezier(0.2, 0, 0, 1) infinite;
  will-change: transform, opacity;
}

.motion-enabled .automation-rail article {
  opacity: 0.48;
  transform: translate3d(0, 0, 0);
  animation: none;
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.motion-enabled .automation-rail article.is-live {
  opacity: 1;
  transform: translate3d(8px, 0, 0);
}

.motion-enabled .automation-rail article > span {
  transition:
    color 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .automation-rail article.is-live > span {
  color: #0b1020;
  background: #d9ff61;
  border-color: #d9ff61;
  transform: scale(1.08);
}

.system-result strong {
  min-height: 2.5em;
}

.motion-enabled .loom-card-team-story .loom-card-team {
  animation: team-photo-breathe 7s cubic-bezier(0.2, 0, 0, 1) infinite alternate;
  will-change: transform;
}

.motion-enabled .loom-card-team-story:hover .loom-card-team {
  animation-play-state: paused;
}

@keyframes hero-line-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes offer-arrow-pulse {
  0%,
  44%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  58% {
    opacity: 0.45;
    transform: translate3d(7px, -7px, 0);
  }
}

@keyframes team-photo-breathe {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.045) translate3d(0, -5px, 0);
  }
}

@media (max-width: 760px) {
  .system-result strong {
    min-height: 3.75em;
  }

  .motion-enabled .automation-rail article.is-live {
    transform: translate3d(4px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .hero-copy h1 > span,
  .motion-enabled .hero-copy h1 > em > span {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }

  .motion-enabled .hero-cost-cta span,
  .motion-enabled .loom-card-team-story .loom-card-team {
    animation: none;
  }
}

/* V2.7: team-first hero and motion that remains visible after loading */
.hero-team-stage {
  width: 100%;
  min-height: clamp(520px, 40vw, 590px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #080f1f;
  isolation: isolate;
}

.hero-team-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 23, 0.04) 18%, rgba(5, 10, 23, 0.58) 48%, #080f1f 67%),
    linear-gradient(90deg, rgba(5, 10, 23, 0.28), transparent 38%, transparent 72%, rgba(5, 10, 23, 0.24));
  pointer-events: none;
}

.hero-photo-wrap {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  width: 100%;
  overflow: hidden;
}

.hero-team-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: 50% 0;
}

.hero-stage-scan {
  position: absolute;
  z-index: 2;
  top: -20%;
  bottom: 35%;
  left: -22%;
  width: 18%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(85, 132, 255, 0.38), transparent);
  transform: translate3d(0, 0, 0) skewX(-16deg);
  pointer-events: none;
}

.hero-stage-top {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #dbe5ff;
}

.hero-stage-top > span {
  padding: 7px 9px 6px;
  border: 1px solid rgba(217, 255, 97, 0.34);
  color: #d9ff61;
  background: rgba(5, 10, 23, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.hero-stage-top > b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Gilroy, sans-serif;
  font-size: 13px;
}

.hero-stage-top > b i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9ff61;
  box-shadow: 0 0 0 5px rgba(217, 255, 97, 0.13);
}

.hero-live-flow {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 18px;
  border: 1px solid rgba(133, 158, 210, 0.23);
  color: #fff;
  background: rgba(7, 14, 30, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(133, 158, 210, 0.22);
}

.hero-flow-head > span {
  color: #91a7d7;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-stage-offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.hero-stage-offers b {
  padding: 5px 7px;
  color: #cad7f5;
  background: #18223a;
  font-family: Gilroy, sans-serif;
  font-size: 9px;
}

.hero-flow-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 14px 0;
}

.hero-flow-steps > i {
  color: #5f7198;
  font-style: normal;
  font-size: 15px;
}

.hero-flow-steps article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hero-flow-steps article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #344261;
  border-radius: 50%;
  color: #b9c6e1;
  background: #171f31;
  font-size: 10px;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-flow-steps article small,
.hero-flow-steps article strong {
  display: block;
}

.hero-flow-steps article small {
  overflow: hidden;
  color: #7890c2;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
}

.hero-flow-steps article strong {
  overflow: hidden;
  margin-top: 2px;
  font-family: Gilroy, sans-serif;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-flow-steps article.is-live {
  opacity: 1;
  transform: translate3d(4px, 0, 0);
}

.hero-flow-steps article.is-live > span {
  color: #0b1020;
  background: #d9ff61;
  border-color: #d9ff61;
  transform: scale(1.08);
}

.hero-stage-result {
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 2px;
}

.hero-stage-result strong {
  min-height: 0;
  font-size: 14px;
}

.motion-enabled .hero-team-photo {
  animation: hero-team-breathe 9s cubic-bezier(0.2, 0, 0, 1) 1.1s infinite alternate;
  will-change: transform;
}

.loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-scan {
  animation: hero-stage-scan 5.8s cubic-bezier(0.2, 0, 0, 1) 1.2s infinite;
}

.loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-offers b {
  animation: offer-chip-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-offers b:nth-child(1) {
  animation-delay: 620ms;
}

.loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-offers b:nth-child(2) {
  animation-delay: 700ms;
}

.loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-offers b:nth-child(3) {
  animation-delay: 780ms;
}

.motion-enabled .case-nav button.is-timing i,
.motion-enabled .industry-tabs button.is-timing::after {
  animation-duration: 4.2s;
}

.js.motion-enabled .reveal:not(.hero-copy):not(.hero-system) {
  transform: translate3d(0, 44px, 0);
}

.js.motion-enabled .reveal:not(.hero-copy):not(.hero-system).is-visible {
  transform: translate3d(0, 0, 0);
  transition-duration: 820ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .quiz-step.is-active .quiz-options label,
.motion-enabled .quiz-step.is-active .quiz-other {
  will-change: transform, opacity;
}

@keyframes hero-team-breathe {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.035) translate3d(0, -3px, 0);
  }
}

@keyframes hero-stage-scan {
  0%,
  14% {
    opacity: 0;
    transform: translate3d(0, 0, 0) skewX(-16deg);
  }
  30% {
    opacity: 0.7;
  }
  52%,
  100% {
    opacity: 0;
    transform: translate3d(760%, 0, 0) skewX(-16deg);
  }
}

@keyframes offer-chip-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1100px) {
  .hero-team-stage {
    width: min(100%, 760px);
    min-height: 600px;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .hero-team-stage {
    width: auto;
    min-height: 520px;
    margin-left: 0;
    margin-right: 8px;
  }

  .hero-stage-top {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .hero-stage-top > b {
    font-size: 11px;
  }

  .hero-live-flow {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 14px;
  }

  .hero-flow-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .hero-stage-offers {
    justify-content: flex-start;
  }

  .hero-flow-steps {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .hero-flow-steps > i {
    display: none;
  }

  .hero-flow-steps article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .hero-flow-steps article > span {
    width: 30px;
    height: 30px;
  }

  .hero-flow-steps article.is-live {
    transform: translate3d(3px, 0, 0);
  }

  .hero-stage-result {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .hero-team-photo,
  .loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-scan,
  .loaded.motion-enabled .hero-team-stage.is-visible .hero-stage-offers b {
    animation: none;
  }
}

/* V2.11: restore the approved founder portrait on the first screen */
.hero-founder-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -18% auto -18% -28%;
  width: 18%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(39, 94, 254, 0.18), transparent);
  transform: translate3d(0, 0, 0) skewX(-14deg);
  pointer-events: none;
  will-change: transform, opacity;
}

.loaded.motion-enabled .hero-founder.is-visible .hero-founder-media::after {
  animation: founder-light-scan 6.8s cubic-bezier(0.2, 0, 0, 1) 1.4s infinite;
}

.hero-founder-media img {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

@keyframes founder-light-scan {
  0%,
  18% {
    opacity: 0;
    transform: translate3d(0, 0, 0) skewX(-14deg);
  }

  34% {
    opacity: 0.72;
  }

  58%,
  100% {
    opacity: 0;
    transform: translate3d(760%, 0, 0) skewX(-14deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loaded.motion-enabled .hero-founder.is-visible .hero-founder-media::after {
    animation: none;
  }
}

/* V2.12: conversion-first motion system based on the 2025–2026 B2B motion brief */
:root {
  --motion-fast: 180ms;
  --motion-standard: 280ms;
  --motion-slow: 620ms;
  --motion-ui: cubic-bezier(0.2, 0, 0, 1);
  --motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The first offer is immediately usable; media and embeds never gate it. */
.page-loader {
  display: none !important;
}

.loaded.motion-enabled .hero-founder.is-visible .hero-founder-media::after {
  animation: founder-light-scan 1450ms var(--motion-enter) 760ms 1 both;
}

.motion-enabled .hero-founder-top b i {
  animation-iteration-count: 2;
}

.motion-enabled .hero-cost-cta span,
.motion-enabled .solution-row.is-visible b {
  animation: none;
  transition: transform var(--motion-fast) var(--motion-ui);
}

.motion-enabled .industry-flow span::before {
  animation-iteration-count: 1;
}

.motion-enabled .loom-card-team-story .loom-card-team {
  animation: team-photo-breathe 1200ms var(--motion-enter) 320ms 1 both;
}

@media (hover: hover) and (pointer: fine) {
  .motion-enabled .hero-cost-cta:hover span,
  .motion-enabled .solution-row:hover b,
  .motion-enabled .filter-card.custom a:hover b {
    transform: translate3d(5px, -5px, 0);
  }

  .motion-enabled .solution-row,
  .motion-enabled .team-card,
  .motion-enabled .filter-card {
    transition:
      transform var(--motion-standard) var(--motion-ui),
      border-color var(--motion-standard) ease,
      box-shadow var(--motion-standard) ease,
      background-color var(--motion-standard) ease;
  }

  .motion-enabled .solution-row:hover {
    padding-left: 0;
    transform: translate3d(6px, 0, 0);
  }

  .motion-enabled .team-card:hover,
  .motion-enabled .filter-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 18px 42px rgba(19, 32, 61, 0.12);
  }
}

/* Different sections enter with different intent instead of one global fade. */
.js.motion-enabled .reveal[data-motion="from-left"] {
  transform: translate3d(-32px, 0, 0);
}

.js.motion-enabled .reveal[data-motion="from-right"] {
  transform: translate3d(32px, 0, 0);
}

.js.motion-enabled .reveal[data-motion="scale-in"] {
  transform: translate3d(0, 22px, 0) scale(0.985);
}

.js.motion-enabled .reveal[data-motion].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Architecture: one readable object of attention at a time, controlled by scroll. */
.motion-enabled .logic-map article {
  opacity: 0.42;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition:
    opacity var(--motion-standard) ease,
    transform 460ms var(--motion-enter),
    background-color var(--motion-standard) ease,
    box-shadow var(--motion-standard) ease;
}

.motion-enabled .logic-map > i {
  opacity: 0.28;
  transform: translate3d(-5px, 0, 0);
  transition:
    opacity var(--motion-standard) ease,
    transform var(--motion-standard) var(--motion-ui);
}

.motion-enabled .logic-map article.is-current {
  opacity: 1;
  transform: translate3d(0, -5px, 0) scale(1);
  box-shadow: 0 16px 36px rgba(4, 10, 30, 0.2);
}

.motion-enabled .logic-map article.is-complete {
  opacity: 0.82;
  transform: translate3d(0, 0, 0) scale(1);
  background: #eff3ff;
}

.motion-enabled .logic-map > i.is-complete {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Delivery process: the current step is highlighted without pinning the page. */
.process-list li {
  position: relative;
  isolation: isolate;
  transition:
    color var(--motion-standard) ease,
    background-color var(--motion-standard) ease,
    transform 420ms var(--motion-enter);
}

.process-list li::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #275efe;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 440ms var(--motion-enter);
}

.motion-enabled .process-list li.is-current {
  color: #0c101c;
  background: #eef3ff;
  transform: translate3d(0, -6px, 0);
}

.motion-enabled .process-list li.is-current::after,
.motion-enabled .process-list li.is-complete::after {
  transform: scaleX(1);
}

.motion-enabled .process-list li.is-complete {
  background: rgba(238, 243, 255, 0.55);
}

.motion-enabled .process-list li.is-current > span,
.motion-enabled .process-list li.is-complete > span {
  color: #275efe;
}

/* Functional motion: modal, accordions, quiz feedback and final CTA. */
.loom-dialog[open] {
  animation: dialog-enter var(--motion-standard) var(--motion-enter) both;
}

.loom-dialog[open]::backdrop {
  animation: backdrop-enter var(--motion-standard) ease both;
}

.loom-dialog.is-closing {
  animation: dialog-exit var(--motion-fast) ease both;
}

.loom-dialog.is-closing::backdrop {
  animation: backdrop-exit var(--motion-fast) ease both;
}

.accordion details[open] > p {
  animation: accordion-content-in var(--motion-standard) var(--motion-enter) both;
}

.quiz-options label:active,
.quiz-controls button:active,
.submit-button:active {
  transform: scale(0.985);
}

.form-status.is-visible {
  animation: status-enter var(--motion-standard) var(--motion-enter) both;
}

.brief-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.brief-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 72vw);
  aspect-ratio: 1;
  right: -18%;
  bottom: -55%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(217, 255, 97, 0.2), rgba(217, 255, 97, 0) 68%);
  transform: translate3d(60px, 40px, 0) scale(0.88);
  transition:
    opacity 700ms ease,
    transform 900ms var(--motion-enter);
  pointer-events: none;
}

.brief-section.is-motion-active::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes dialog-exit {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.99); }
}

@keyframes backdrop-enter {
  from { background: rgba(4, 7, 15, 0); }
  to { background: rgba(4, 7, 15, 0.84); }
}

@keyframes backdrop-exit {
  from { background: rgba(4, 7, 15, 0.84); }
  to { background: rgba(4, 7, 15, 0); }
}

@keyframes accordion-content-in {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes status-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 760px) {
  .js.motion-enabled .reveal[data-motion="from-left"],
  .js.motion-enabled .reveal[data-motion="from-right"],
  .js.motion-enabled .reveal[data-motion="scale-in"] {
    transform: translate3d(0, 20px, 0);
  }

  .js.motion-enabled .reveal[data-motion].is-visible {
    transform: translate3d(0, 0, 0);
  }

  .motion-enabled .logic-map article.is-current {
    transform: translate3d(4px, 0, 0);
  }

  .motion-enabled .logic-map > i {
    transform: rotate(90deg) translate3d(-4px, 0, 0);
  }

  .motion-enabled .logic-map > i.is-complete {
    transform: rotate(90deg) translate3d(0, 0, 0);
  }

  .motion-enabled .process-list li.is-current {
    transform: translate3d(4px, 0, 0);
  }

  .process-list li::after {
    top: 0;
    right: auto;
    bottom: 0;
    width: 4px;
    height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .motion-enabled .process-list li.is-current::after,
  .motion-enabled .process-list li.is-complete::after {
    transform: scaleY(1);
  }

  .brief-section::before {
    width: 120vw;
    right: -62vw;
    bottom: -20vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logic-map article,
  .logic-map > i,
  .process-list li,
  .process-list li::after,
  .brief-section::before,
  .loom-dialog,
  .loom-dialog::backdrop,
  .accordion details > p,
  .form-status {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .logic-map article,
  .logic-map > i,
  .brief-section::before {
    opacity: 1;
  }
}

/* V2.13: production-visible motion pass — keep motion obvious after initial reveal. */
.loaded.motion-enabled .hero-founder.is-visible {
  animation: founder-card-float 5.8s var(--motion-enter, cubic-bezier(0.22, 1, 0.36, 1)) 1.1s infinite alternate;
  transform-origin: 50% 55%;
}

.loaded.motion-enabled .hero-founder.is-visible .hero-founder-media img {
  animation: founder-photo-drift 7.2s ease-in-out 0.8s infinite alternate;
  will-change: transform, filter;
}

.loaded.motion-enabled .hero-founder.is-visible figcaption {
  animation: founder-caption-pulse 4.8s ease-in-out 1.4s infinite;
}

.motion-enabled .hero-proof li i {
  animation: proof-dot-pulse 2.4s ease-in-out infinite;
}
.motion-enabled .hero-proof li:nth-child(2) i { animation-delay: .35s; }
.motion-enabled .hero-proof li:nth-child(3) i { animation-delay: .7s; }

.loaded.motion-enabled .hero-cost-cta {
  animation: cta-breathe 3.6s ease-in-out 2s infinite;
}

.motion-enabled .case-nav button.is-timing i,
.motion-enabled .industry-tabs button.is-timing::after {
  animation-duration: 3s;
  animation-timing-function: linear;
}

@keyframes founder-card-float {
  from { transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  to { transform: translate3d(0, -12px, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}

@keyframes founder-photo-drift {
  from { transform: scale(1.01) translate3d(-4px, 0, 0); filter: saturate(1.02) contrast(1.01); }
  to { transform: scale(1.045) translate3d(5px, -6px, 0); filter: saturate(1.09) contrast(1.04); }
}

@keyframes founder-caption-pulse {
  0%, 100% { transform: translate3d(0, 0, 0); box-shadow: 0 18px 44px rgba(10, 18, 32, .14); }
  50% { transform: translate3d(0, -4px, 0); box-shadow: 0 24px 64px rgba(39, 94, 254, .2); }
}

@keyframes proof-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 94, 254, .28); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(39, 94, 254, 0); }
}

@keyframes cta-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); box-shadow: 0 18px 42px rgba(39, 94, 254, .26); }
  50% { transform: translate3d(0, -3px, 0); box-shadow: 0 24px 58px rgba(39, 94, 254, .34); }
}

/* V2.14: keep the longer AI/CRM offer balanced on narrow screens. */
@media (max-width: 760px) {
  .hero-copy h1 {
    font-size: clamp(36px, 10.25vw, 44px);
    line-height: .96;
    letter-spacing: -.065em;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loaded.motion-enabled .hero-founder.is-visible,
  .loaded.motion-enabled .hero-founder.is-visible .hero-founder-media img,
  .loaded.motion-enabled .hero-founder.is-visible figcaption,
  .motion-enabled .hero-proof li i,
  .loaded.motion-enabled .hero-cost-cta {
    animation: none !important;
  }
}
