/* ============================================================
   Outsource Software Development - /service/outsource-software-development
   Prefix: ot-   Palette sampled from the owner's art: coral #f84b29
   (why icons), lilac #dfd2fc + cream #fefaf3 (hero-bg), with deep plum
   instead of black so the coral never reads as terracotta-on-cream.
   ============================================================ */

.ot-page {
  --ot-ink: #1e1240;
  --ot-ink-2: #2d1b62;
  --ot-violet: #6f45ea;
  --ot-lilac: #dfd2fc;
  --ot-lilac-2: #f3eefe;
  --ot-coral: #f84b29;
  --ot-amber: #ff8a3d;
  --ot-green: #16a06b;
  --ot-cream: #fefaf3;
  --ot-text: #4b4366;
  --ot-muted: #6f6888;
  --ot-line: #e8e2f2;
  --ot-dim: #bcb1de;
  --ot-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ot-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ot-font: "Schibsted Grotesk", system-ui, sans-serif;
  --ot-gap: clamp(72px, 9vw, 128px);
  --ot-hdr: 76px;

  font-family: var(--ot-font);
  color: var(--ot-text);
  background: #fff;
  overflow-x: clip;
  interpolate-size: allow-keywords;
}

/* style.css:2845 forces Gabarito !important on headings and p */
.ot-page :is(h1, h2, h3, p, li, dd, dt, th, td, button, summary, a, span) {
  font-family: var(--ot-font) !important;
}

.ot-page :is(h1, h2, h3) {
  margin: 0;
  color: var(--ot-ink);
  letter-spacing: -0.025em;
}

.ot-page h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.ot-page p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.ot-page :is(ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ot-page img {
  max-width: 100%;
}

.ot-page section {
  position: relative;
}

.ot-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.ot-head {
  max-width: 860px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}

.ot-head h2 + p,
.ot-head p + p {
  margin-top: 16px;
}

@media (min-width: 992px) {
  .ot-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: end;
    max-width: none;
    text-align: left;
  }
}

.ot-head--split > div {
  margin-top: 16px;
}

@media (min-width: 992px) {
  .ot-head--split > div {
    margin-top: 0;
  }
}

/* ---------- reveal: animation, not transition, so delays never touch hovers ---------- */
:where(.ot-anim) .ot-reveal {
  opacity: 0;
}

:where(.ot-anim) .ot-reveal.is-in {
  animation: ot-rise 0.9s var(--ot-ease) var(--d, 0s) both;
}

@keyframes ot-rise {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- button: arrow disc crosses to the left on hover ---------- */
.ot-btn {
  --w: 44px;
  --in: 7px;

  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--w) + 2 * var(--in));
  max-width: 100%;
  padding: 0 calc(var(--w) + var(--in) + 14px) 0 26px;
  border-radius: 999px;
  background: var(--ot-coral);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(248, 75, 41, 0.3);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    padding 0.5s var(--ot-ease-io);
}

.ot-btn__label {
  min-width: 0;
  padding-block: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.ot-btn__icon {
  position: absolute;
  top: var(--in);
  right: var(--in);
  display: grid;
  place-items: center;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  background: #fff;
  color: var(--ot-coral);
  transition: right 0.5s var(--ot-ease-io);
}

.ot-btn__icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  transition: transform 0.45s var(--ot-ease-io);
}

.ot-btn:hover,
.ot-btn:focus-visible {
  padding-left: calc(var(--w) + var(--in) + 14px);
  padding-right: 26px;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(248, 75, 41, 0.38);
}

.ot-btn:hover .ot-btn__icon,
.ot-btn:focus-visible .ot-btn__icon {
  right: calc(100% - var(--w) - var(--in));
}

.ot-btn:hover .ot-btn__icon svg,
.ot-btn:focus-visible .ot-btn__icon svg {
  transform: rotate(0deg);
}

.ot-page :is(a, button, summary):focus-visible {
  outline: 3px solid var(--ot-violet);
  outline-offset: 3px;
}

.ot-btn--light {
  background: #fff;
  color: var(--ot-ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.ot-btn--light .ot-btn__icon {
  background: var(--ot-coral);
  color: #fff;
}

.ot-btn--light:hover,
.ot-btn--light:focus-visible {
  color: var(--ot-ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

/* ============================================================
   HERO
   ============================================================ */
.ot-hero {
  --mx: 0;
  --my: 0;

  overflow: hidden;
  background: var(--ot-cream);
}

.ot-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: calc(var(--mx) * -14px) calc(var(--my) * -10px);
  scale: 1.04;
  transition: translate 0.6s ease-out;
}

.ot-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: 32px;
  align-items: center;
  min-height: min(780px, calc(100vh - 112px));
  padding-block: 48px 56px;
}

.ot-page .ot-hero__title {
  font-size: clamp(36px, 4.3vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.ot-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.ot-mask > span {
  display: block;
}

:where(.ot-anim) .ot-mask > span {
  translate: 0 110%;
  transition: translate 1.1s var(--ot-ease);
}

:where(.ot-anim) .ot-mask + .ot-mask > span {
  transition-delay: 0.1s;
}

:where(.ot-anim) .is-ready .ot-mask > span {
  translate: 0 0;
}

.ot-page .ot-hero__lead {
  max-width: 600px;
  margin-top: 22px;
  font-size: 18px;
}

.ot-hero__points {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 36px;
  margin: 26px 0 34px !important;
}

.ot-hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ot-ink);
  font-size: 16px;
  font-weight: 600;
}

.ot-hero__points i {
  color: var(--ot-coral);
  font-size: 20px;
}

:where(.ot-anim) .ot-hero__in {
  opacity: 0;
}

:where(.ot-anim) .is-ready .ot-hero__in {
  animation: ot-rise 0.9s var(--ot-ease) var(--d, 0s) both;
}

.ot-art {
  position: relative;
  container-type: inline-size;
  justify-self: start;
  width: min(116%, 560px);
}

.ot-art__float {
  position: relative;
  translate: calc(var(--mx) * 18px) calc(var(--my) * 14px);
  transition: translate 0.5s ease-out;
  animation: ot-float 7s ease-in-out infinite;
}

:where(.ot-anim) .ot-art {
  opacity: 0;
  translate: 0 70px;
  transition:
    opacity 0.9s ease 0.15s,
    translate 1.3s var(--ot-ease) 0.15s;
}

:where(.ot-anim) .is-ready .ot-art {
  opacity: 1;
  translate: 0 0;
}

@keyframes ot-float {
  50% {
    transform: translateY(-12px);
  }
}

.ot-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(64, 32, 140, 0.22));
}

.ot-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104cqw;
  aspect-ratio: 1;
  margin: -52cqw 0 0 -52cqw;
  border: 1.5px dashed rgba(111, 69, 234, 0.3);
  border-radius: 50%;
  animation: ot-spin 46s linear infinite;
}

.ot-orbit::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 14%;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: var(--ot-coral);
  box-shadow: 0 0 0 7px rgba(248, 75, 41, 0.16);
}

.ot-orbit--b {
  width: 78cqw;
  margin: -39cqw 0 0 -39cqw;
  animation-duration: 32s;
  animation-direction: reverse;
}

.ot-orbit--b::after {
  width: 10px;
  height: 10px;
  margin: -5px;
  background: var(--ot-violet);
  box-shadow: 0 0 0 6px rgba(111, 69, 234, 0.16);
}

@keyframes ot-spin {
  to {
    rotate: 360deg;
  }
}

/* sits exactly over the sprint card baked into hero-art */
.ot-sprint {
  position: absolute;
  top: 7.4%;
  left: 65.7%;
  width: 30.2%;
  height: 23.8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2cqw 2.1cqw 2cqw;
  border-radius: 2.2cqw;
  background: #fff;
  box-shadow: 0 1.4cqw 3.4cqw rgba(64, 32, 140, 0.12);
}

.ot-sprint__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ot-ink);
  font-size: 2.2cqw;
  font-weight: 800;
}

.ot-page .ot-sprint__top span {
  letter-spacing: -0.02em;
}

.ot-sprint__top em {
  color: var(--ot-green);
  font-size: 1.5cqw;
  font-style: normal;
  font-weight: 700;
}

.ot-sprint__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5cqw;
  color: var(--ot-text);
  font-size: 1.55cqw;
  font-weight: 500;
}

.ot-sprint__row i {
  grid-column: 1 / -1;
  position: relative;
  height: 1.35cqw;
  border-radius: 1.35cqw;
  background: #ece8fb;
  overflow: hidden;
}

.ot-sprint__row i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c);
  transform: scaleX(var(--v));
  transform-origin: left;
}

:where(.ot-anim) .ot-sprint__row i::after {
  transform: scaleX(0);
  transition: transform 1.6s var(--ot-ease) 1s;
}

:where(.ot-anim) .is-ready .ot-sprint__row i::after {
  transform: scaleX(var(--v));
}

/* ============================================================
   STATS - plum band, odometer digits
   ============================================================ */
.ot-stats {
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--ot-ink);
}

.ot-stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ot-page .ot-stats h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
}

.ot-page .ot-stats p {
  margin-top: 16px;
  color: var(--ot-dim);
}

.ot-stats__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.ot-stats__list > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 22px 26px;
  background: var(--ot-ink);
}

.ot-stats__list dd {
  display: flex;
  color: #fff;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ot-odo {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
}

.ot-odo > span {
  display: block;
  width: 1ch;
  word-break: break-all;
  transition: transform 1.8s var(--ot-ease);
}

.ot-stats__list dt {
  margin-top: 6px;
  color: var(--ot-dim);
  font-size: 16px;
  font-weight: 500;
}

/* ============================================================
   SERVICES - pinned sprint board
   ============================================================ */
.ot-board {
  background: var(--ot-lilac-2);
}

.ot-board__pin {
  position: relative;
  padding-block: var(--ot-gap);
}

.ot-board__intro {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
}

.ot-page .ot-board__intro p {
  margin-top: 16px;
}

.ot-board__lanes {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding: 12px 24px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}

.ot-board__lanes::-webkit-scrollbar {
  display: none;
}

.ot-lane {
  --tone: var(--ot-coral);

  flex: none;
}

.ot-lane--violet {
  --tone: var(--ot-violet);
}

.ot-lane--amber {
  --tone: var(--ot-amber);
}

.ot-lane--green {
  --tone: var(--ot-green);
}

.ot-page .ot-lane__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ot-ink);
  font-size: 17px;
  font-weight: 700;
}

.ot-lane__name span {
  width: 34px;
  height: 6px;
  border-radius: 6px;
  background: var(--tone);
}

.ot-lane__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 80vw);
  gap: 16px;
}

.ot-ticket {
  scroll-snap-align: start;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(30, 18, 64, 0.06);
  transition:
    translate 0.35s var(--ot-ease),
    box-shadow 0.35s ease;
}

:where(.ot-anim) .ot-ticket.js-drop {
  opacity: 0;
}

:where(.ot-anim) .ot-ticket.js-drop.is-in {
  animation: ot-land 0.8s var(--ot-ease) both;
}

@keyframes ot-land {
  from {
    opacity: 0;
    transform: translateY(-26px) rotate(var(--r));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ot-ticket:hover {
  translate: 0 -5px;
  box-shadow: 0 22px 40px rgba(64, 32, 140, 0.14);
}

.ot-ticket > i {
  display: block;
  margin-bottom: 10px;
  color: var(--tone);
  font-size: 26px;
  line-height: 1;
}

.ot-page .ot-ticket h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.ot-page .ot-ticket p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.ot-ticket.is-tall {
  background: var(--ot-ink);
}

.ot-ticket.is-tall > i {
  color: #ffb199;
}

.ot-ticket__art {
  display: none;
}

.ot-page .ot-ticket.is-tall h3 {
  color: #fff;
}

.ot-page .ot-ticket.is-tall p {
  color: var(--ot-dim);
}

.ot-board__bar {
  display: none;
}

@media (min-width: 992px) and (min-height: 740px) and (prefers-reduced-motion: no-preference) {
  .ot-board__pin {
    position: sticky;
    top: var(--ot-hdr);
    display: flex;
    align-items: center;
    height: calc(100vh - var(--ot-hdr));
    padding-block: 20px 34px;
    overflow: hidden;
  }

  .ot-board__track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    padding-inline: max(24px, calc((100vw - 1280px) / 2 + 24px));
    will-change: transform;
  }

  .ot-board__intro {
    flex: none;
    width: 440px;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .ot-board__lanes {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .ot-lane__grid {
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: 340px;
    min-height: min(560px, calc(100vh - var(--ot-hdr) - 112px));
  }

  .ot-ticket.is-tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }

  /* owner's assistant card fills the top of the double-height ticket */
  .ot-ticket__art {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    margin-bottom: 18px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
    animation: ot-float 7s ease-in-out infinite;
  }

  .ot-page .ot-ticket.is-tall h3 {
    font-size: 24px;
  }

  .ot-board__bar {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 16px;
    display: block;
    height: 4px;
    border-radius: 4px;
    background: var(--ot-lilac);
    overflow: hidden;
  }

  .ot-board__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ot-coral);
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* ============================================================
   CTA 1 - framed image opens to full width on scroll
   ============================================================ */
.ot-window {
  --w: 1;

  background: var(--ot-lilac-2);
}

.ot-window__frame {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 42vw, 620px);
  overflow: hidden;
  clip-path: inset(calc((1 - var(--w)) * 7%) calc((1 - var(--w)) * 9%) round calc((1 - var(--w)) * 44px));
}

.ot-window__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  scale: calc(1.14 - var(--w) * 0.14);
}

.ot-window .ot-wrap {
  position: relative;
}

.ot-window__copy {
  max-width: 520px;
  padding-block: 56px;
}

.ot-page .ot-window__copy p {
  margin-block: 16px 28px;
  color: #33305a;
}

/* ============================================================
   CASES - stacking deck
   ============================================================ */
.ot-cases {
  padding-block: var(--ot-gap);
}

.ot-deck {
  display: grid;
  gap: 24px;
}

.ot-case {
  --tint: #e6f0fe;
  --s: 1;

  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 28px;
  background: var(--tint);
  transform: scale(var(--s));
  transform-origin: top center;
}

.ot-case--clay {
  --tint: #fbeee3;
}

.ot-case--sage {
  --tint: #e7eee3;
}

.ot-case__art {
  overflow: hidden;
  border-radius: 18px;
}

.ot-case__art img {
  display: block;
  width: 100%;
  height: auto;
  transition: scale 1.2s var(--ot-ease);
}

.ot-case:hover .ot-case__art img {
  scale: 1.04;
}

.ot-case__body {
  padding-right: clamp(0px, 2vw, 24px);
}

.ot-page .ot-case h3 {
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}

.ot-page .ot-case__ind {
  margin-top: 6px;
  color: var(--ot-muted);
  font-size: 16px;
}

.ot-case dl {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ot-case dt {
  color: var(--ot-ink);
  font-size: 16px;
  font-weight: 700;
}

.ot-case dd {
  font-size: 16px;
  line-height: 1.5;
}

.ot-case dd + dd {
  margin-top: 4px;
}

@media (min-width: 992px) and (min-height: 720px) {
  .ot-case {
    position: sticky;
    top: calc(var(--ot-hdr) + 16px + var(--i) * 14px);
  }
}

/* ============================================================
   INDUSTRIES - photo reel, panels widen like a shutter
   ============================================================ */
.ot-ind {
  padding-bottom: var(--ot-gap);
}

.ot-reel {
  display: flex;
  gap: 8px;
  height: clamp(460px, 42vw, 580px);
  padding-inline: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.ot-reel__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 20px;
  background: var(--ot-ink);
  overflow: hidden;
  transition: flex-grow 0.8s var(--ot-ease);
}

.ot-reel__item.is-on {
  flex-grow: 7.5;
}

/* fixed-width photo: the panel uncovers it instead of rescaling it */
.ot-reel__item > img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 760px;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
  translate: -50% 0;
  opacity: 0.72;
  transition:
    opacity 0.6s ease,
    scale 6s linear;
}

.ot-reel__item.is-on > img {
  opacity: 1;
  scale: 1.06;
}

.ot-reel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 18, 64, 0.9) 8%, rgba(30, 18, 64, 0.1) 62%);
  pointer-events: none;
}

.ot-reel__side {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  transition: opacity 0.3s ease;
}

.ot-reel__item.is-on .ot-reel__side {
  opacity: 0;
}

.ot-reel__body {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 26px;
  width: 520px;
  max-width: calc(100% - 56px);
  opacity: 0;
  translate: 0 14px;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    translate 0.25s ease,
    visibility 0.25s;
}

.ot-reel__item.is-on .ot-reel__body {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  transition:
    opacity 0.5s ease 0.3s,
    translate 0.6s var(--ot-ease) 0.3s,
    visibility 0s;
}

.ot-page .ot-reel__body h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.ot-reel__body ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
  margin-top: 12px;
}

.ot-reel__body li {
  position: relative;
  padding-left: 16px;
  color: #efeafb;
  font-size: 16px;
  line-height: 1.35;
}

.ot-reel__body li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ot-coral);
}

.ot-reel__hit {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}

.ot-reel__item.is-on .ot-reel__hit {
  cursor: default;
}

/* ============================================================
   TECHNOLOGIES - exploded app layers
   ============================================================ */
.ot-tech {
  --x: 1;

  padding-block: var(--ot-gap);
  background:
    radial-gradient(60% 70% at 18% 50%, rgba(111, 69, 234, 0.35), transparent 70%),
    var(--ot-ink);
  overflow: hidden;
}

.ot-tech__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ot-layers {
  display: grid;
  place-items: center;
  height: 520px;
  perspective: 1400px;
}

.ot-layers__set {
  position: relative;
  width: 240px;
  height: 240px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg);
}

.ot-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: rgba(150, 120, 245, 0.2);
  color: #fff;
  font-size: 58px;
  transform: translateZ(calc(var(--i) * -1 * (14px + var(--x) * 64px)));
  transition:
    transform 0.7s var(--ot-ease),
    background 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.ot-layer img {
  width: 56px;
  height: 56px;
  opacity: 0.8;
}

.ot-layer.is-on {
  border-color: #ffb199;
  background: var(--ot-coral);
  box-shadow: 0 0 70px rgba(248, 75, 41, 0.55);
  transform: translateZ(calc(var(--i) * -1 * (14px + var(--x) * 64px))) translate(26px, 26px);
}

.ot-layer.is-on img {
  opacity: 1;
}

.ot-page .ot-tech h2 {
  color: #fff;
}

.ot-page .ot-tech__lead {
  margin-top: 16px;
  color: var(--ot-dim);
}

.ot-tech__list {
  margin-top: 28px;
}

.ot-tech__item {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ot-tech__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ot-page .ot-tech__item h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.ot-tech__item button {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: 0;
  background: none;
  color: var(--ot-dim);
  font-size: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.3s ease,
    padding 0.4s var(--ot-ease);
}

.ot-tech__item.is-on button {
  padding-left: 14px;
  color: #fff;
}

.ot-tech__copy {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ot-ease);
}

.ot-tech__item.is-on .ot-tech__copy {
  grid-template-rows: 1fr;
}

.ot-page .ot-tech__copy p {
  overflow: hidden;
  min-height: 0;
  padding-inline: 14px;
  color: var(--ot-dim);
  font-size: 16px;
  visibility: hidden;
  transition:
    padding 0.5s var(--ot-ease),
    visibility 0.5s;
}

.ot-page .ot-tech__item.is-on .ot-tech__copy p {
  padding-bottom: 16px;
  visibility: visible;
}

/* ============================================================
   CTA 2 - two halves of one picture close together
   ============================================================ */
.ot-join {
  --j: 1;

  display: grid;
  place-items: center;
  min-height: clamp(420px, 36vw, 520px);
  padding: 56px 24px;
  background: #fef9f6;
  overflow: hidden;
}

.ot-join__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
}

.ot-join__art img:first-child {
  clip-path: inset(0 50% 0 0);
  translate: calc((1 - var(--j)) * -22%) 0;
}

.ot-join__art img:last-child {
  clip-path: inset(0 0 0 50%);
  translate: calc((1 - var(--j)) * 22%) 0;
}

.ot-join__copy {
  position: relative;
  max-width: 680px;
  text-align: center;
}

.ot-page .ot-join__copy h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.ot-page .ot-join__copy p {
  margin-block: 16px 28px;
}

/* ============================================================
   STACK - bento of logo tiles, card width follows item count
   ============================================================ */
.ot-stack {
  padding-block: var(--ot-gap);
}

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

.ot-bento__card {
  grid-column: span 5;
  padding: 24px;
  border-radius: 24px;
  background: var(--ot-lilac-2);
  transition: background 0.4s ease;
}

.ot-bento__card:nth-child(-n + 3) {
  grid-column: span 4;
}

.ot-bento__card:nth-child(5),
.ot-bento__card:nth-child(7),
.ot-bento__card:nth-child(8) {
  grid-column: span 7;
}

.ot-bento__card:hover {
  background: var(--ot-lilac);
}

.ot-page .ot-bento__card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ot-bento__card ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 18px 10px;
  margin-top: 20px;
}

/* wide enough for one row per card, so cards in a row match with no orphans */
@media (min-width: 1200px) {
  .ot-bento__card ul {
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    column-gap: 6px;
  }
}

.ot-bento__card li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ot-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.ot-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(64, 32, 140, 0.08);
  transition:
    translate 0.4s var(--ot-ease),
    rotate 0.4s var(--ot-ease),
    box-shadow 0.3s ease;
}

.ot-bento__card li:hover .ot-tile {
  translate: 0 -6px;
  rotate: -5deg;
  box-shadow: 0 16px 26px rgba(64, 32, 140, 0.18);
}

.ot-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ot-tile i {
  color: var(--ot-violet);
  font-size: 28px;
  line-height: 1;
}

:where(.ot-anim) .ot-bento__card li {
  opacity: 0;
}

:where(.ot-anim) .ot-bento__card.is-in li {
  animation: ot-pop 0.6s var(--ot-ease) calc(var(--i) * 55ms) both;
}

@keyframes ot-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PRICING - table on a shared 0-150k ruler
   ============================================================ */
.ot-price {
  padding-block: var(--ot-gap);
  background: var(--ot-cream);
}

.ot-table {
  width: 100%;
  border-collapse: collapse;
}

.ot-table thead th {
  padding: 0 20px 12px 0;
  border-bottom: 2px solid var(--ot-ink);
  color: var(--ot-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.ot-table tbody th,
.ot-table td {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid #efe6da;
  vertical-align: top;
  text-align: left;
}

.ot-table tbody th {
  width: 22%;
  color: var(--ot-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ot-table td {
  color: var(--ot-text);
  font-size: 17px;
  line-height: 1.5;
}

.ot-table td.ot-table__cost {
  width: 38%;
  padding-right: 0;
  color: var(--ot-ink);
  font-size: 22px;
  font-weight: 700;
}

.ot-range {
  display: block;
  position: relative;
  height: 10px;
  margin-top: 12px;
  border-radius: 10px;
  background: #f2e8db;
  overflow: hidden;
}

.ot-range i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--a) * 100%);
  width: calc((var(--b) - var(--a)) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ot-violet), var(--ot-coral));
  transform-origin: left;
}

:where(.ot-anim) .ot-table .ot-range i {
  transform: scaleX(0);
}

:where(.ot-anim) .ot-table.is-in .ot-range i {
  transform: none;
  transition: transform 1.2s var(--ot-ease) calc(var(--i) * 0.15s);
}

.ot-factors {
  margin-top: clamp(48px, 6vw, 80px);
}

.ot-page .ot-factors h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
}

.ot-factors dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  margin-top: 28px;
}

.ot-factors dl > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
}

.ot-factors i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ot-coral);
  font-size: 21px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    rotate 0.5s var(--ot-ease);
}

.ot-factors dl > div:hover i {
  background: var(--ot-coral);
  color: #fff;
  rotate: -10deg;
}

.ot-factors dt {
  color: var(--ot-ink);
  font-size: 18px;
  font-weight: 700;
}

.ot-factors dd {
  font-size: 16px;
  line-height: 1.5;
}

.ot-quote {
  --cx: 76%;
  --cy: 30%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(32px, 4.4vw, 60px);
  border-radius: 28px;
  background:
    radial-gradient(420px circle at var(--cx) var(--cy), rgba(248, 75, 41, 0.42), transparent 70%),
    var(--ot-ink-2);
}

.ot-quote > div {
  max-width: 720px;
}

.ot-page .ot-quote h2 {
  color: #fff;
  font-size: clamp(26px, 2.8vw, 38px);
}

.ot-page .ot-quote p {
  margin-top: 14px;
  color: #d9d2ee;
}

.ot-quote .ot-btn {
  flex: none;
}

/* ============================================================
   PROCESS - sticky dial, steps scroll past it
   ============================================================ */
.ot-flow {
  --n: 0;
  --p: 0;

  padding-block: var(--ot-gap);
}

.ot-flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: start;
}

.ot-flow__aside {
  position: sticky;
  top: calc(var(--ot-hdr) + 32px);
}

.ot-page .ot-flow__aside p {
  margin-top: 16px;
}

.ot-dial {
  position: relative;
  width: min(250px, 28vh);
  aspect-ratio: 1;
  margin-top: 32px;
}

.ot-dial svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.ot-dial circle {
  fill: none;
  stroke: var(--ot-lilac-2);
  stroke-width: 5;
}

.ot-dial circle.ot-dial__on {
  stroke: var(--ot-coral);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p));
}

.ot-dial__num {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 1.1em;
  color: var(--ot-ink);
  font-size: min(100px, 11vh);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
}

.ot-dial__num > span {
  display: block;
  transform: translateY(calc(var(--n) * -1.1em));
  transition: transform 0.7s var(--ot-ease);
}

.ot-dial__num b {
  display: block;
  font-weight: inherit;
}

.ot-flow__steps li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42vh;
  opacity: 0.32;
  transition:
    opacity 0.5s ease,
    translate 0.6s var(--ot-ease);
}

.ot-flow__steps li.is-on {
  opacity: 1;
  translate: 12px 0;
}

.ot-page .ot-flow__steps h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}

.ot-flow__steps h3 span {
  color: var(--ot-coral);
}

.ot-page .ot-flow__steps p {
  max-width: 540px;
  margin-top: 12px;
}

/* ============================================================
   WHY - phone unfolds, reasons slide out from behind it
   ============================================================ */
.ot-why {
  --k: 1;

  padding-block: var(--ot-gap);
  background: var(--ot-lilac-2);
  overflow: hidden;
}

.ot-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 18px 28px;
}

.ot-why__art {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.ot-why__art img {
  width: 100%;
  max-width: 400px;
  height: auto;
  /* the art has wide transparent margins, so it scales past its column */
  transform: rotateY(calc((1 - var(--k)) * -46deg)) scale(calc(1.2 + var(--k) * 0.4));
}

.ot-why__card {
  position: relative;
  z-index: 1;
  grid-column: 1;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  opacity: var(--k);
  transform: translateX(calc((1 - var(--k)) * var(--s) * 140px));
  transition: box-shadow 0.35s ease;
}

.ot-why__card:nth-of-type(n + 4) {
  grid-column: 3;
}

.ot-why__card:hover {
  box-shadow: 0 20px 40px rgba(64, 32, 140, 0.13);
}

.ot-why__card img {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  object-fit: contain;
}

.ot-page .ot-why__card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.ot-page .ot-why__card p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.ot-faq {
  padding-block: var(--ot-gap);
}

.ot-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: start;
}

.ot-page .ot-faq h2 {
  position: sticky;
  top: calc(var(--ot-hdr) + 32px);
  font-size: clamp(40px, 5vw, 72px);
}

.ot-faq__item {
  border-bottom: 1px solid var(--ot-line);
}

.ot-faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 0.45s var(--ot-ease),
    content-visibility 0.45s allow-discrete;
}

.ot-faq__item[open]::details-content {
  block-size: auto;
}

.ot-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: var(--ot-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.ot-faq__item summary::-webkit-details-marker {
  display: none;
}

.ot-faq__item summary:hover,
.ot-faq__item[open] summary {
  color: var(--ot-coral);
}

.ot-faq__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ot-lilac-2);
  transition:
    background 0.3s ease,
    rotate 0.4s var(--ot-ease);
}

.ot-faq__mark::before,
.ot-faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ot-ink);
  transition: rotate 0.4s var(--ot-ease);
}

.ot-faq__mark::after {
  rotate: 90deg;
}

.ot-faq__item[open] .ot-faq__mark {
  background: var(--ot-coral);
  rotate: 180deg;
}

.ot-faq__item[open] .ot-faq__mark::before,
.ot-faq__item[open] .ot-faq__mark::after {
  background: #fff;
}

.ot-faq__item[open] .ot-faq__mark::after {
  rotate: 0deg;
}

.ot-page .ot-faq__item p {
  padding: 0 52px 22px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .ot-bento__card:nth-child(n + 4) {
    grid-column: span 6;
  }

  .ot-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .ot-why__art {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ot-why__art {
    padding-block: 36px;
  }

  .ot-why__art img {
    max-width: 240px;
  }

  .ot-why__card:nth-of-type(n) {
    grid-column: auto;
  }
}

@media (max-width: 991px) {
  .ot-hero__grid,
  .ot-stats__grid,
  .ot-tech__grid,
  .ot-flow__grid,
  .ot-faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-hero__grid {
    min-height: 0;
  }

  .ot-art {
    width: min(100%, 480px);
    justify-self: center;
  }

  .ot-window__frame {
    display: block;
    min-height: 0;
    clip-path: none;
    padding-bottom: 54vw;
    background: #daeafe;
  }

  .ot-window__frame > img {
    inset: auto 0 0 0;
    height: 62vw;
  }

  .ot-case {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-case__body {
    padding: 0 8px 12px;
  }

  /* reel: swipeable cards, every list visible */
  .ot-reel {
    height: auto;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    gap: 12px;
  }

  .ot-reel::-webkit-scrollbar {
    display: none;
  }

  .ot-reel__item,
  .ot-reel__item.is-on {
    flex: none;
    width: min(340px, 82vw);
    height: 460px;
    scroll-snap-align: start;
  }

  .ot-reel__item > img {
    left: 0;
    width: 100%;
    translate: none;
    opacity: 1;
    scale: 1;
  }

  .ot-reel__side,
  .ot-reel__hit {
    display: none;
  }

  .ot-reel__item::after {
    background: linear-gradient(to top, rgba(30, 18, 64, 0.94) 42%, rgba(30, 18, 64, 0) 72%);
  }

  .ot-reel__body {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    max-width: none;
    opacity: 1;
    translate: none;
    visibility: visible;
  }

  .ot-reel__body ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-layers {
    height: 400px;
  }

  .ot-layers__set {
    scale: 0.82;
  }

  .ot-table,
  .ot-table tbody,
  .ot-table tr,
  .ot-table tbody th,
  .ot-table td {
    display: block;
    width: auto !important;
  }

  .ot-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ot-table tr {
    padding-block: 18px;
    border-bottom: 1px solid #efe6da;
  }

  .ot-table tbody th,
  .ot-table td {
    padding: 0 0 8px;
    border: 0;
  }

  .ot-factors dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ot-quote {
    flex-direction: column;
    text-align: center;
  }

  .ot-quote .ot-btn {
    flex: 0 1 auto;
  }

  /* stacked heads centre instead of leaving the right side empty */
  .ot-stats__grid > :first-child,
  .ot-tech__grid > :last-child > .ot-reveal:first-child,
  .ot-flow__aside,
  .ot-page .ot-faq h2 {
    text-align: center;
  }

  .ot-flow__aside,
  .ot-page .ot-faq h2 {
    position: static;
  }

  .ot-dial {
    display: none;
  }

  .ot-flow__steps li {
    min-height: 0;
    padding-block: 20px;
    border-top: 1px solid var(--ot-line);
    opacity: 1;
  }

  .ot-flow__steps li.is-on {
    translate: none;
  }
}

@media (max-width: 575px) {
  .ot-page .ot-hero__title {
    font-size: 8vw;
  }

  .ot-hero__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-stats__list > div {
    padding: 16px;
  }

  .ot-bento__card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .ot-bento__card {
    padding: 20px 16px;
  }

  .ot-bento__card ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ot-why__grid,
  .ot-factors dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .ot-page .ot-faq__item p {
    padding-right: 0;
  }

  .ot-btn {
    --w: 40px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ot-art__float,
  .ot-orbit {
    animation: none;
  }

  .ot-reel__item > img,
  .ot-reel__item.is-on > img {
    scale: 1;
    transition: none;
  }
}
