.theme-prism {
  --f-ink: #092f49;
  --f-sky: #27a9cf;
  --f-cyan: #71d4d1;
  --f-mint: #b6ead9;
  --f-violet: #8491df;
  --f-pink: #eaa0bb;
  --f-paper: #f7fcfe;
  background:
    radial-gradient(circle at 4% 35%, rgba(112, 213, 210, 0.2), transparent 25rem),
    linear-gradient(180deg, #f8fdff, #edf8fc);
}
.theme-prism .desktop-nav {
  gap: clamp(1.6rem, 3.1vw, 3.8rem);
  color: #0b3550;
  font-size: clamp(1.08rem, 1.28vw, 1.25rem);
  font-weight: 750;
  letter-spacing: 0.055em;
}
.theme-prism .nav-cta {
  padding: 1.12rem 1.7rem;
}
.theme-prism .mobile-nav nav a {
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
}
.theme-prism .section-heading {
  align-items: flex-start;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.theme-prism .section-heading > div {
  position: relative;
  padding-left: clamp(1.2rem, 2.2vw, 2.2rem);
}
.theme-prism .section-heading > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 4px;
  height: calc(100% - 0.25rem);
  background: linear-gradient(180deg, var(--f-cyan), var(--f-sky) 52%, var(--f-violet));
}
.theme-prism .section-heading h2 {
  font-size: clamp(4rem, 8.5vw, 9.6rem);
  font-weight: 760;
  line-height: 0.76;
  letter-spacing: -0.075em;
}
.theme-prism .section-heading > span {
  margin-top: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(19, 118, 156, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #365f76;
}
.theme-prism .services {
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 68%, rgba(126, 141, 220, 0.07) 68.1% 68.25%, transparent 68.35%),
    radial-gradient(circle at 85% 18%, rgba(115, 215, 207, 0.24), transparent 22rem),
    linear-gradient(180deg, #edf8fc, #fbfdff 54%, #eef9f8);
}
.theme-prism .services::before {
  content: "05";
  position: absolute;
  right: -0.04em;
  bottom: -0.23em;
  color: rgba(18, 100, 142, 0.035);
  font-size: clamp(18rem, 40vw, 48rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  pointer-events: none;
}
.theme-prism .services .accent-rule {
  display: none;
}
.theme-prism .service-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: clamp(0.9rem, 1.4vw, 1.35rem);
}
.theme-prism .service-card {
  min-height: 290px;
  grid-template-columns: minmax(72px, 0.22fr) minmax(0, 1fr);
  padding: clamp(2rem, 3.8vw, 3.7rem);
  border: 1px solid rgba(20, 119, 157, 0.14);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(27, 99, 137, 0.08);
}
.theme-prism .service-card:nth-child(1) {
  grid-column: 1 / span 7;
  min-height: 350px;
  background: linear-gradient(132deg, rgba(255,255,255,.96), rgba(220,246,248,.9));
}
.theme-prism .service-card:nth-child(2) {
  grid-column: 8 / span 5;
  min-height: 350px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(231,237,255,.88));
}
.theme-prism .service-card:nth-child(3) {
  grid-column: 1 / span 4;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(225,248,244,.9));
}
.theme-prism .service-card:nth-child(4) {
  grid-column: 5 / span 4;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(230,245,252,.9));
}
.theme-prism .service-card:nth-child(5) {
  grid-column: 9 / span 4;
  min-height: 290px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,232,243,.82));
}
.theme-prism .service-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 11rem;
  height: 11rem;
  right: -5.5rem;
  bottom: -5.5rem;
  border: 1px solid rgba(34, 153, 183, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 2.6rem rgba(81, 200, 199, 0.035), 0 0 0 5.2rem rgba(123, 139, 216, 0.025);
  transition: scale 600ms ease;
}
.theme-prism .service-card .card-top,
.theme-prism .service-card h3,
.theme-prism .service-card > p {
  position: relative;
  z-index: 1;
}
.theme-prism .service-card::before {
  left: 0;
  right: auto;
  width: 4px;
  height: 100%;
  border-radius: 0;
  transform: scaleY(0.32);
  transform-origin: bottom;
}
.theme-prism .service-card:hover,
.theme-prism .service-card:nth-child(even):hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 32px 74px rgba(29, 105, 142, 0.14);
}
.theme-prism .service-card:hover::before {
  transform: scaleY(1);
}
.theme-prism .service-card:hover::after {
  scale: 1.12;
}
.theme-prism .service-card .card-number {
  font-size: clamp(3.4rem, 5.2vw, 6.2rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.075em;
}
.theme-prism .service-card h3 {
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
}
.theme-prism .service-card > p {
  max-width: 34rem;
}
.theme-prism .cases {
  background:
    radial-gradient(circle at 8% 84%, rgba(118, 212, 202, 0.18), transparent 24rem),
    radial-gradient(circle at 93% 14%, rgba(139, 151, 224, 0.14), transparent 24rem),
    linear-gradient(180deg, #fbfdff, #eef7fb);
}
.theme-prism .case-grid {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(132px, auto));
  grid-auto-flow: column;
  gap: 0 clamp(4rem, 7vw, 8rem);
  margin-top: 2.5rem;
}
.theme-prism .case-grid::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(transparent, #57c6c4 10%, #25a7ca 52%, #8794df 90%, transparent);
}
.theme-prism .case-grid::after {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: 49%;
  width: 11px;
  height: 11px;
  border: 3px solid #f3fafc;
  border-radius: 50%;
  background: #36b6c7;
  box-shadow: 0 0 0 1px rgba(29, 139, 176, 0.24), 0 0 28px rgba(38, 176, 194, 0.32);
}
.theme-prism .case-card,
.theme-prism .case-card:nth-child(n) {
  min-height: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 1.35rem;
  padding: 1.55rem 0;
  border: 0;
  border-top: 1px solid rgba(18, 113, 156, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
.theme-prism .case-card::before {
  z-index: 1;
  inset: -1px auto auto 0;
  width: 72px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--f-cyan), var(--f-sky));
  box-shadow: none;
  transform: none;
}
.theme-prism .case-card:nth-child(n + 5)::before {
  background: linear-gradient(90deg, var(--f-violet), var(--f-pink));
}
.theme-prism .case-card::after {
  content: none;
}
.theme-prism .case-card > span {
  color: #168eb3;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}
.theme-prism .case-card h3 {
  max-width: none;
  margin: 0;
  color: #123b54;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.7;
  transition: translate 350ms ease, color 350ms ease;
}
.theme-prism .case-card:hover,
.theme-prism .case-card:nth-child(even):hover {
  color: #0b2d48;
  transform: none;
  background: transparent;
  box-shadow: none;
}
.theme-prism .case-card:hover::before {
  transform: none;
}
.theme-prism .case-card:hover h3 {
  color: #087da5;
  translate: 6px 0;
}
.theme-prism .flow {
  min-height: 1180px;
  background:
    radial-gradient(circle at 50% 47%, rgba(98, 207, 199, 0.2), transparent 26rem),
    linear-gradient(180deg, #e8f6f8 0%, #fafdff 50%, #edf7fb 100%);
  color: var(--f-ink);
}
.theme-prism .flow::before {
  content: none;
}
.theme-prism .flow .center-heading {
  margin-bottom: 1.5rem;
}
.theme-prism .flow-grid {
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(190px, auto));
  gap: 1.1rem 0;
  max-width: 1180px;
  margin: 4.5rem auto 0;
}
.theme-prism .flow-grid::before {
  z-index: 1;
  inset: 1.5rem auto 1.5rem 50%;
  width: 2px;
  height: auto;
  background: linear-gradient(#76d2c5, #1fa9c8 48%, #8793df 100%);
  opacity: 0.9;
  transform: none;
  animation: none;
}
.theme-prism .flow-grid::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(50% - 12rem);
  top: calc(50% - 12rem);
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(40, 164, 188, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(92, 203, 195, 0.024), 0 0 0 10rem rgba(126, 141, 220, 0.018);
}
.theme-prism .flow-card,
.theme-prism .flow-card:last-child {
  min-height: 190px;
  align-self: center;
  overflow: visible;
  padding: 2.25rem 2.4rem;
  border: 1px solid rgba(20, 119, 157, 0.14);
  border-radius: 4px 38px 4px 4px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 54px rgba(29, 100, 137, 0.09);
  color: var(--f-ink);
}
.theme-prism .flow-card:nth-child(1) { grid-area: 1 / 1; }
.theme-prism .flow-card:nth-child(2) { grid-area: 2 / 3; border-radius: 38px 4px 4px 4px; }
.theme-prism .flow-card:nth-child(3) { grid-area: 3 / 1; }
.theme-prism .flow-card:nth-child(4) { grid-area: 4 / 3; border-radius: 38px 4px 4px 4px; }
.theme-prism .flow-card::before {
  left: auto;
  right: -56px;
  top: 50%;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 143, 177, 0.2), #28aec6);
  transform: none;
}
.theme-prism .flow-card:nth-child(even)::before {
  left: -56px;
  right: auto;
  background: linear-gradient(90deg, #7487d7, rgba(30, 143, 177, 0.2));
}
.theme-prism .flow-card .flow-number {
  position: absolute;
  z-index: 3;
  right: -88px;
  top: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0;
  border: 6px solid #eef8fa;
  border-radius: 50%;
  background: linear-gradient(135deg, #79d2c4, #25a9c8);
  box-shadow: 0 12px 28px rgba(35, 139, 170, 0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.theme-prism .flow-card:nth-child(even) .flow-number {
  left: -88px;
  right: auto;
  background: linear-gradient(135deg, #28a9ca, #8793df);
}
.theme-prism .flow-card h3 {
  color: #0d3852;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
}
.theme-prism .flow-card p {
  color: #53758a;
  font-size: 1rem;
}
.theme-prism .flow-card:hover,
.theme-prism .flow-card:nth-child(even):hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 28px 64px rgba(27, 102, 140, 0.14);
}
.theme-prism .contact {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  min-height: 880px;
  background:
    radial-gradient(circle at 94% 12%, rgba(143, 154, 225, 0.19), transparent 24rem),
    linear-gradient(135deg, #e9f7fa 0%, #fbfdff 58%, #edf8f4 100%);
  color: var(--f-ink);
  isolation: isolate;
}
.theme-prism .contact::before {
  content: "";
  z-index: 0;
  inset: 9% 3% 9% 56%;
  height: auto;
  border: 0;
  border-radius: 50% 8px 8px 50%;
  background: linear-gradient(150deg, rgba(104, 211, 199, 0.32), rgba(57, 167, 205, 0.23) 52%, rgba(132, 145, 220, 0.2));
  box-shadow: none;
  transform: none;
}
.theme-prism .contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -14rem;
  bottom: -17rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(34, 151, 181, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 6rem rgba(79, 192, 192, 0.035), 0 0 0 12rem rgba(125, 141, 219, 0.02);
}
.theme-prism .contact-copy {
  grid-area: 1 / 1 / 2 / 8;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  border-radius: 56px 8px 8px 56px;
  background:
    radial-gradient(circle at 10% 10%, rgba(178, 239, 222, 0.34), transparent 17rem),
    linear-gradient(135deg, #0b668f, #169cbb 56%, #68c8ba);
  box-shadow: 0 34px 84px rgba(14, 107, 142, 0.18);
  color: #fff;
}
.theme-prism .contact-kicker span,
.theme-prism .contact-kicker b,
.theme-prism .contact-copy h2 {
  color: #fff;
}
.theme-prism .contact-copy h2 {
  max-width: 760px;
  font-size: clamp(2.35rem, 3.6vw, 4.4rem);
  line-height: 1.42;
}
.theme-prism .contact-copy > p {
  max-width: 610px;
  color: rgba(245, 253, 255, 0.88);
  font-size: 1rem;
}
.theme-prism .contact-form {
  grid-area: 1 / 7 / 2 / 13;
  z-index: 3;
  align-self: center;
  margin-block: 5rem;
  border-radius: 12px 60px 12px 60px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 40px 100px rgba(17, 91, 126, 0.19);
  rotate: 0.65deg;
  transition: rotate 350ms ease, box-shadow 350ms ease;
}
.theme-prism .contact-form:focus-within {
  rotate: 0deg;
}
.theme-prism .submit-button {
  border-radius: 8px 28px 8px 28px;
}
.js .theme-prism .reveal {
  transform: translateY(16px);
  transition-duration: 680ms;
}
.js .theme-prism .reveal-left,
.js .theme-prism .reveal-right {
  transform: translateY(16px);
}
.js .theme-prism .reveal.is-visible {
  transform: translateY(0);
}
.theme-prism .service-card:nth-child(2),
.theme-prism .case-card:nth-child(2),
.theme-prism .flow-card:nth-child(2) { transition-delay: 60ms; }
.theme-prism .service-card:nth-child(3),
.theme-prism .case-card:nth-child(3),
.theme-prism .flow-card:nth-child(3) { transition-delay: 120ms; }
.theme-prism .service-card:nth-child(n + 4),
.theme-prism .case-card:nth-child(n + 4),
.theme-prism .flow-card:nth-child(4) { transition-delay: 0ms; }
@media (min-width: 1181px) {
  .theme-prism .service-grid {
    grid-template-rows: repeat(10, minmax(92px, auto));
    gap: 16px;
  }
  .theme-prism .service-card {
    padding: clamp(1.75rem, 3vw, 3rem);
  }
  .theme-prism .service-card:nth-child(1) { grid-area: 1 / 1 / 4 / 8; min-height: 0; }
  .theme-prism .service-card:nth-child(2) { grid-area: 2 / 8 / 5 / 13; min-height: 0; }
  .theme-prism .service-card:nth-child(3) { grid-area: 4 / 1 / 7 / 6; min-height: 0; }
  .theme-prism .service-card:nth-child(4) { grid-area: 5 / 6 / 8 / 13; min-height: 0; }
  .theme-prism .service-card:nth-child(5) { grid-area: 8 / 3 / 11 / 12; min-height: 0; }
}
@media (max-width: 1120px) {
  .theme-prism .desktop-nav {
    gap: 1.25rem;
    font-size: 1rem;
  }
  .theme-prism .nav-cta {
    padding-inline: 1.25rem;
  }
  .theme-prism .contact-copy {
    grid-column-end: 9;
  }
  .theme-prism .contact-form {
    grid-column-start: 7;
  }
}
@media (max-width: 900px) {
  .theme-prism .service-card:nth-child(n) {
    grid-column: span 6;
    min-height: 300px;
  }
  .theme-prism .service-card:nth-child(5) {
    grid-column: 1 / -1;
  }
  .theme-prism .case-grid {
    gap: 0 3rem;
  }
  .theme-prism .flow {
    min-height: auto;
  }
  .theme-prism .flow-grid {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: none;
    gap: 1.2rem 0;
    padding-left: 0;
  }
  .theme-prism .flow-grid::before {
    left: 31px;
  }
  .theme-prism .flow-grid::after {
    content: none;
  }
  .theme-prism .flow-card:nth-child(n) {
    grid-area: auto / 2;
    border-radius: 4px 30px 4px 4px;
  }
  .theme-prism .flow-card:nth-child(n)::before {
    left: -33px;
    right: auto;
    width: 33px;
    background: linear-gradient(90deg, #39b7c2, rgba(30, 143, 177, 0.2));
  }
  .theme-prism .flow-card:nth-child(n) .flow-number {
    left: -65px;
    right: auto;
  }
  .theme-prism .contact {
    grid-template-columns: 1fr;
    padding-inline: 1.5rem;
  }
  .theme-prism .contact::before {
    inset: 42% 0 3%;
  }
  .theme-prism .contact-copy {
    grid-area: 1 / 1;
    min-height: 560px;
    padding: 4rem 2rem 7rem;
    border-radius: 42px 8px 8px 42px;
  }
  .theme-prism .contact-form {
    grid-area: 2 / 1;
    width: calc(100% - 2rem);
    margin: -4rem auto 3rem;
    rotate: 0deg;
  }
}
@media (max-width: 620px) {
  .theme-prism .section-heading h2 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }
  .theme-prism .service-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 290px;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  }
  .theme-prism .case-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 0;
  }
  .theme-prism .case-grid::before,
  .theme-prism .case-grid::after {
    content: none;
  }
  .theme-prism .case-card,
  .theme-prism .case-card:nth-child(n) {
    grid-template-columns: 58px 1fr;
    padding-block: 1.4rem;
  }
  .theme-prism .flow-grid {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .theme-prism .flow-grid::before {
    left: 25px;
  }
  .theme-prism .flow-card,
  .theme-prism .flow-card:last-child {
    min-height: 235px;
    padding: 2rem 1.5rem;
  }
  .theme-prism .flow-card:nth-child(n)::before {
    left: -27px;
    width: 27px;
  }
  .theme-prism .flow-card:nth-child(n) .flow-number {
    left: -59px;
  }
  .theme-prism .contact {
    padding-inline: 1rem;
  }
  .theme-prism .contact-copy {
    min-height: 520px;
    padding: 3.5rem 1.5rem 6rem;
    border-radius: 30px 6px 6px 30px;
  }
  .theme-prism .contact-form {
    width: calc(100% - 1rem);
    border-radius: 8px 36px 8px 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-prism .case-card h3,
  .theme-prism .contact-form {
    transition: none;
  }
  .theme-prism .case-card:hover h3 {
    translate: none;
  }
  .theme-prism .flow-card:hover,
  .theme-prism .service-card:hover,
  .theme-prism .service-card:nth-child(even):hover {
    transform: none;
  }
}
