/* ── Tech Feature Items ─────────────────────────────────────────────────── */

/* Product page: fade the top edge of the grey section into black.
   Sits above the grey background (z-index:0) but below the content
   (inner wrapper is position:relative; z-index:1). */
.tech-features-section--fade-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, var(--almost-black), transparent);
  pointer-events: none;
  z-index: 0;
}

.tf-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 38px;
  padding-left: 38px;
}

.tf-list::before,
.tf-list::after {
  content: '';
  position: absolute;
  top: -155px;
  bottom: -322px;
  width: 1px;
  /* background: var(--black); */
  background: linear-gradient(to top, transparent 4%, var(--almost-black) 31%, var(--almost-black) 69%, transparent 96%);
  pointer-events: none;
}

.tf-list::before {
  left: 2px;
}

.tf-list::after {
  right: 2px;
}

.tf-item {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 80px;
  align-items: start;
  padding: 24px 0;
  border-top: none;
  position: relative;
}

.tf-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 12%;
  height: 81%;
  width: 5px;
  background: var(--black);
}

/* ── Left column ─────────────────────────────────────────────────────────── */

.tf-item + .tf-item {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.tf-item__left {
  /* padding-left: 20px; */
  padding-top: 40px;
}

.tf-item__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--black);
  margin-bottom: 14px;
}

.tf-item__title {
  font-family: var(--font-pixel);
  font-size: 43px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.tf-item__desc {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.65;
  margin-bottom: 1.6em;
}

/* LEARN MORE button — orange border, black corner brackets */
.tf-item__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--orange);
  position: relative;
}

.tf-item__btn::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  background:
    linear-gradient(var(--black), var(--black)) top    left  / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--black), var(--black)) top    left  / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--black), var(--black)) top    right / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--black), var(--black)) top    right / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--black), var(--black)) bottom left  / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--black), var(--black)) bottom left  / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--black), var(--black)) bottom right / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--black), var(--black)) bottom right / var(--bracket-w) var(--bracket)  no-repeat;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.tf-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background-size: 32px 32px;
  border: 1px solid var(--black);
}

.tf-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-card__corner {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--orange);
  display: block;
  z-index: 1;
}

.tf-card__corner--tl { top: -8px;    left: -8px;  }
.tf-card__corner--tr { top: -8px;    right: -8px; }
.tf-card__corner--bl { bottom: -8px; left: -8px;  }
.tf-card__corner--br { bottom: -8px; right: -8px; }

/* ── Bottom rule + subheading ────────────────────────────────────────────── */

.tf-list + bracket-rule {
  margin-top: 60px;
}

.tech-features__subheading {
  padding: 0 38px;
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 56px;
  max-width: 780px;
}

/* ── Case study scroll strip ─────────────────────────────────────────────── */

/* <card-scroll> host: collapse so its rendered <section> sits in normal flow */
card-scroll {
  display: contents;
}

.case-scroll-wrap {
  position: relative;
}

.case-scroll-arrow {
  position: absolute;
  top: 208px; /* image top padding (48px) + half image height (160px) */
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
}


.case-scroll-arrow--l {
  left: 14px;
}

.case-scroll-arrow--r {
  right: 14px;
}

.case-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 48px 38px 40px;
  scrollbar-width: none;
  cursor: ew-resize;
}

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

.case-card {
  flex: 0 0 475px;
  display: flex;
  flex-direction: column;
  /* background: var(--white, #fff); */
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  cursor: pointer;
}

.case-card::before,
.case-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--orange);
  z-index: 1;
  left: -6px;
}

.case-card::before {
  top: -6px;
}

.case-card::after {
  bottom: -6px;
}

.case-card__img {
  width: 475px;
  height: 320px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.case-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.case-card__desc {
  font-family: var(--font-pixel-square);
  font-size: 20px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  max-width: 297px;
}

.case-card__customer {
    font-weight: 500;
    font-family: var(--font-sans);
}

.case-card__link {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  align-self: flex-end;
}

/* Stretch the link over the whole card so clicking anywhere on the tile
   navigates to the case study (.case-card is position: relative). */
.case-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ── Book a Demo CTA ─────────────────────────────────────────────────────── */

.book-demo {
  width: 100%;
  min-height: 930px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/cta-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.book-demo__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
  padding: 100px 38px;
}

.book-demo__heading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 57px;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  max-width: 724px;
}

.book-demo__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.book-demo__subheading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
  max-width: 660px;
}

.book-demo__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 16px 36px;
  border: 1px solid var(--orange);
  position: relative;
}

.book-demo__btn::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  background:
    linear-gradient(var(--orange), var(--orange)) top    left  / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--orange), var(--orange)) top    left  / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--orange), var(--orange)) top    right / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--orange), var(--orange)) top    right / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--orange), var(--orange)) bottom left  / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--orange), var(--orange)) bottom left  / var(--bracket-w) var(--bracket)  no-repeat,
    linear-gradient(var(--orange), var(--orange)) bottom right / var(--bracket) var(--bracket-w) no-repeat,
    linear-gradient(var(--orange), var(--orange)) bottom right / var(--bracket-w) var(--bracket)  no-repeat;
}

/* ── Product page: platform intro (under the hero) ───────────────────────── */
.platform-intro {
  text-align: center;
  padding: 90px 38px;
}

.platform-intro__eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 24px;
}

.platform-intro__heading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 auto;
  max-width: 820px;
}

/* ── Product page: scroll-expand media component (repeatable) ─────────────── */
.scroll-media {
  background: var(--almost-black);
  padding: 0 38px 140px;
}

.scroll-media__item {
  max-width: var(--col-width);
  margin: 0 auto;
  text-align: left;
}

.scroll-media__item + .scroll-media__item {
  margin-top: 160px;
}

.scroll-media__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  /* text-transform: uppercase; */
  color: rgba(255, 255, 255, 0.45);
  padding-left: 30px;
}

.scroll-media__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 22px;
  padding-left: 30px;
  max-width: 760px;
}

.scroll-media__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 64px;
  margin-left: 30px;
}

/* Outer frame: full viewport width (breaks out of the centred column),
   untransformed — used by the scroll script as a stable measurement reference.
   z-index 102 lifts it above the page's vertical tram lines (z-index 101); the
   nav is raised above this (see nav.css) so it still sits on top. */
.scroll-media__frame {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  z-index: 102;
}

/* Inner media: starts small, then expands to full size when js/scroll-media.js
   adds .is-expanded as it scrolls into view. The cubic-bezier eases out hard at
   the end (matches the site's benefits easing). */
.scroll-media__media {
  transform: scale(0.5);
  transform-origin: center center;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-media__media.is-expanded {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-media__media {
    transition: none;
    transform: scale(1);
  }
}

/* Heading block ([0x] / title / read more) pins over the video while its own
   item scrolls, then releases automatically when the item ends (sticky is bound
   by .scroll-media__item, so the next section's heading takes over). z-index sits
   above the video frame (102); text-shadow + a soft scrim keep it legible over
   moving footage. pointer-events:none lets the video area stay interactive,
   except the read-more link which is re-enabled. */
.scroll-media__head {
  position: sticky;
  top: 92px;
  z-index: 103;
  width: max-content;
  max-width: 100%;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.6);
}

.scroll-media__head::before {
  content: '';
  position: absolute;
  top: -28px;
  bottom: 0;
  left: -40px;
  right: -60px;
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  z-index: -1;
  pointer-events: none;
}

.scroll-media__head .scroll-media__link {
  pointer-events: auto;
}

.scroll-media__video,
.scroll-media__media img {
  display: block;
  /* Full-height: the activated clip fills the full viewport height as a
     full-screen block. The wrapper scales 0.5 → 1 as it scrolls into view
     (see .scroll-media__media), so each clip grows up to full height when
     activated. These are landscape recordings, so object-fit: cover keeps it
     edge-to-edge by cropping the sides rather than overflowing horizontally. */
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
