/* ==========================================================================
   UI/UX service page — redesigned sections (templates in blocks/uiux/)
   Motion lives in blocks/js/uiux_page.js; everything here renders fine without it.
   ========================================================================== */

.ux-page {
  --ux-ink: #172125;
  --ux-ink-2: #1d2a2f;
  --ux-paper: #f7f5f4;
  --ux-muted: rgba(247, 245, 244, 0.64);
  --ux-faint: rgba(247, 245, 244, 0.38);
  --ux-line: rgba(247, 245, 244, 0.1);
  --ux-line-strong: rgba(247, 245, 244, 0.2);
  --ux-coral: #f0493e;
  --ux-ember: #f7722f;
  --ux-btn: linear-gradient(270deg, #ce4961 8.92%, #c94d45 84.76%);
  --ux-text-grad: linear-gradient(92deg, #f7f5f4 12%, #e8ad94 42%, #f7722f 78%);
  --ux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ux-ink);
  color: var(--ux-paper);
}

.ux-page .ux-sec {
  position: relative;
  background: var(--ux-ink);
}

.ux-page .ux-sec > .w-container {
  position: relative;
  background: var(--ux-ink);
}

/* Section rail: accent fill grows as the section scrolls past */
.ux-page .ux-sec > .sidebar {
  position: relative;
}
.ux-page .ux-sec > .sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--ux-ember), var(--ux-coral));
  transform-origin: top;
  transform: scaleY(var(--ux-rail, 0));
}

/* ---------- Shared type ---------- */

.ux-page .ux-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: "Satoshi-Bold";
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--ux-paper);
}
.ux-page .ux-eyebrow__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--ux-ember);
  box-shadow: 0 0 0 0.4rem rgba(247, 114, 47, 0.18);
}

.ux-page .ux-h2,
.ux-page .ux-h2 p {
  font-family: "Satoshi-Bold";
  font-size: clamp(3rem, 3.4vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ux-paper);
}
.ux-page .ux-h2 p {
  display: inline;
  font-size: inherit !important;
}
/* Bold words in CMS headings get the brand gradient. Once split into words (JS),
   each word carries its own sampled colour instead, so the gradient is dropped. */
.ux-page .ux-h2 b,
.ux-page .ux-work__statement b,
.ux-page .ux-hero__title b {
  font-weight: inherit;
  background: var(--ux-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ux-page b.ux-plain,
.ux-page b.ux-plain span {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.ux-page .ux-h3 {
  font-family: "Satoshi-Bold";
  font-size: 2.4rem;
  line-height: 1.3;
  color: var(--ux-paper);
}

.ux-page .ux-lead {
  max-width: 64rem;
  margin-top: 2.8rem;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--ux-muted);
}

.ux-page .ux-head {
  padding-top: 14rem;
  padding-bottom: 8rem;
  max-width: 110rem;
}

/* Split-text masks (built by JS) */
.ux-page .ux-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ux-page .ux-w > span {
  display: inline-block;
  will-change: transform;
}

/* ---------- Buttons & links ---------- */

.ux-page .ux-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  height: 5.6rem;
  padding: 0 1.2rem 0 2.8rem;
  overflow: hidden;
  isolation: isolate;
  font-family: "Satoshi-Black";
  font-size: 1.4rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: #fff;
  background: var(--ux-btn);
  text-decoration: none;
  will-change: transform;
}
.ux-page .ux-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ux-paper);
  transform: translateY(101%);
  transition: transform 0.55s var(--ux-ease);
}
.ux-page .ux-btn__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 3.2rem;
  transition: transform 0.55s var(--ux-ease);
}
.ux-page .ux-btn:hover,
.ux-page .ux-btn:focus-visible {
  color: #c94d45;
}
.ux-page .ux-btn:hover::before,
.ux-page .ux-btn:focus-visible::before {
  transform: translateY(0);
}
.ux-page .ux-btn:hover .ux-btn__icon {
  transform: translateX(0.6rem);
}
.ux-page .ux-btn:focus-visible {
  outline: 2px solid var(--ux-ember);
  outline-offset: 4px;
}

.ux-page .ux-link {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3.2rem;
  font-family: "Satoshi-Bold";
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.ux-page .ux-link svg {
  transition: transform 0.45s var(--ux-ease);
}
.ux-page .ux-link:hover svg {
  transform: translateX(0.8rem);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ux-hero .ux-hero__main {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 13rem;
  padding-bottom: 8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ux-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 245, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 245, 244, 0.05) 1px, transparent 1px);
  background-size: 8rem 8rem;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.ux-hero__glow {
  --gx: 70%;
  --gy: 40%;
  position: absolute;
  inset: 0;
  background: radial-gradient(42rem circle at var(--gx) var(--gy), rgba(240, 73, 62, 0.16), transparent 70%);
  pointer-events: none;
}

.ux-hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 4rem;
}

.ux-crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3.2rem;
  font-family: "Satoshi-Medium";
  font-size: 1.4rem;
  color: var(--ux-faint);
}
.ux-crumb a {
  color: var(--ux-paper);
  text-decoration: none;
  transition: color 0.3s;
}
.ux-crumb a:hover {
  color: var(--ux-ember);
}

.ux-hero__title p {
  display: inline;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.ux-hero__title {
  max-width: 78rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(4.4rem, 5.6vw, 8.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ux-paper);
}

.ux-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 5.6rem;
}

.ux-scrollhint {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  font-family: "Satoshi-Medium";
  font-size: 1.4rem;
  color: var(--ux-muted);
  text-decoration: none;
}
.ux-scrollhint__line {
  position: relative;
  width: 5.6rem;
  height: 1px;
  overflow: hidden;
  background: var(--ux-line-strong);
}
.ux-scrollhint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ux-ember);
  animation: ux-scan 2.4s var(--ux-ease) infinite;
}
@keyframes ux-scan {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Design canvas */
.ux-canvas {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 58rem;
  justify-self: end;
}
.ux-canvas__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}
.ux-canvas__ring {
  position: absolute;
  top: 2%;
  right: -12%;
  width: 96%;
  animation: ux-spin 60s linear infinite;
}
@keyframes ux-spin {
  to { transform: rotate(360deg); }
}

.ux-frame {
  position: absolute;
  top: 16%;
  left: 8%;
  width: 62%;
  aspect-ratio: 1.3;
  border: 1px solid var(--ux-line-strong);
  background: linear-gradient(160deg, rgba(247, 245, 244, 0.07), rgba(247, 245, 244, 0.02));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 3rem 8rem -2rem rgba(0, 0, 0, 0.5);
  outline: 1px solid var(--ux-ember);
  outline-offset: 6px;
}
.ux-frame__label {
  position: absolute;
  top: -3.4rem;
  left: -0.6rem;
  font-family: "Satoshi-Medium";
  font-size: 1.2rem;
  color: var(--ux-muted);
}
.ux-frame__size {
  position: absolute;
  bottom: -3.8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  font-family: "Satoshi-Bold";
  font-size: 1.1rem;
  color: #fff;
  background: var(--ux-ember);
  white-space: nowrap;
}
.ux-frame__bar {
  display: flex;
  gap: 0.6rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--ux-line);
}
.ux-frame__bar i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--ux-line-strong);
}
.ux-frame__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.8rem;
}
.ux-frame__hero {
  height: 9rem;
  background:
    linear-gradient(135deg, rgba(240, 73, 62, 0.35), rgba(247, 114, 47, 0.1)),
    repeating-linear-gradient(45deg, rgba(247, 245, 244, 0.05) 0 1px, transparent 1px 10px);
}
.ux-frame__line {
  height: 1rem;
  border-radius: 1rem;
  background: rgba(247, 245, 244, 0.14);
  transform-origin: left;
}
.ux-frame__line.is-long { width: 72%; }
.ux-frame__line.is-short { width: 44%; }
.ux-frame__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}
.ux-frame__row span {
  height: 4.4rem;
  border: 1px dashed var(--ux-line-strong);
}
.ux-handle {
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: var(--ux-paper);
  border: 1px solid var(--ux-ember);
}
.ux-handle.tl { top: -1.2rem; left: -1.2rem; }
.ux-handle.tr { top: -1.2rem; right: -1.2rem; }
.ux-handle.bl { bottom: -1.2rem; left: -1.2rem; }
.ux-handle.br { bottom: -1.2rem; right: -1.2rem; }

.ux-chip {
  position: absolute;
  padding: 1.6rem 1.8rem;
  background: rgba(29, 42, 47, 0.86);
  border: 1px solid var(--ux-line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2rem 5rem -1.5rem rgba(0, 0, 0, 0.55);
}
.ux-chip__title {
  margin-bottom: 1.2rem;
  font-family: "Satoshi-Bold";
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ux-faint);
}
.ux-swatches {
  top: 56%;
  right: 0;
  width: 19rem;
}
.ux-swatches ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.ux-swatches li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Satoshi-Medium";
  font-size: 1.3rem;
  color: var(--ux-paper);
}
.ux-swatches i {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  border: 1px solid var(--ux-line-strong);
}

.ux-type {
  top: 4%;
  right: 4%;
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
}
.ux-type__aa {
  font-family: "Satoshi-Bold";
  font-size: 6.4rem;
  line-height: 0.9;
  background: var(--ux-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ux-type__meta {
  font-family: "Satoshi-Medium";
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ux-muted);
}

.ux-component {
  bottom: 6%;
  left: 2%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.ux-toggle {
  position: relative;
  width: 4.4rem;
  height: 2.4rem;
  border-radius: 2rem;
  background: rgba(247, 245, 244, 0.18);
  transition: background 0.4s var(--ux-ease);
}
.ux-toggle i {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s var(--ux-ease);
}
.ux-toggle.is-on {
  background: var(--ux-ember);
}
.ux-toggle.is-on i {
  transform: translateX(2rem);
}
.ux-component__btn {
  padding: 0.9rem 1.6rem;
  font-family: "Satoshi-Black";
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
  background: var(--ux-btn);
}

.ux-pen {
  position: absolute;
  left: 18%;
  bottom: 14%;
  width: 56%;
  overflow: visible;
}
.ux-pen__handle {
  stroke: rgba(247, 245, 244, 0.35);
  stroke-width: 1;
}
.ux-pen__knob {
  fill: var(--ux-ink);
  stroke: var(--ux-paper);
  stroke-width: 1.2;
}
.ux-pen__node {
  fill: var(--ux-paper);
  stroke: var(--ux-ember);
  stroke-width: 1.5;
}

.ux-cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  will-change: transform;
}
.ux-cursor span {
  margin: 1.4rem 0 0 -0.2rem;
  padding: 0.3rem 0.9rem;
  font-family: "Satoshi-Bold";
  font-size: 1.1rem;
  color: #fff;
  border-radius: 0 0.8rem 0.8rem 0.8rem;
  background: var(--ux-coral);
}
.ux-cursor--b span {
  background: var(--ux-ember);
}
.ux-cursor--a { left: 62%; top: 30%; }
.ux-cursor--b { left: 30%; top: 76%; }

/* ==========================================================================
   What we do — marquee + sticky story
   ========================================================================== */

.ux-marquee {
  position: relative;
  padding: 3.2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
}
.ux-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ux-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ux-marquee__group span {
  padding: 0 3.2rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(4rem, 6vw, 9.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 245, 244, 0.32);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.ux-marquee__group span:hover {
  color: var(--ux-paper);
  -webkit-text-stroke-color: transparent;
}
.ux-marquee__group i {
  font-style: normal;
  font-size: 3.2rem;
  color: var(--ux-ember);
}

.ux-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8rem;
  padding-top: 10rem;
  padding-bottom: 16rem;
}
.ux-story__list {
  list-style: none;
}
.ux-story__item {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  opacity: 0.28;
  transition: opacity 0.6s var(--ux-ease);
}
.ux-story__item.is-active {
  opacity: 1;
}
.ux-story__num {
  margin-bottom: 1.6rem;
  font-family: "Satoshi-Bold";
  font-size: 1.6rem;
  color: var(--ux-ember);
}
.ux-story__title {
  margin-bottom: 2rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(3.2rem, 3.2vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ux-paper);
}
.ux-story__text {
  max-width: 52rem;
  font-size: 1.7rem;
  line-height: 1.65;
  color: var(--ux-muted);
}
.ux-story__inline {
  display: none;
}

.ux-story__stage {
  position: relative;
}
.ux-story__frame {
  position: sticky;
  top: 14vh;
  height: 72vh;
}
.ux-story__media {
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(100% 0 0 0);
}
.ux-story__media.is-active {
  clip-path: inset(0 0 0 0);
}
.ux-story__img {
  position: absolute;
  inset: 0 6rem 6rem 0;
  width: calc(100% - 6rem);
  height: calc(100% - 6rem);
  object-fit: cover;
  will-change: transform;
}
.ux-story__decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 55%;
  object-fit: cover;
  will-change: transform;
}
.ux-story__img--illustrated {
  inset: 0 0 6rem;
  width: 100%;
  object-fit: contain;
}
.ux-story__hud {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: "Satoshi-Medium";
  font-size: 1.4rem;
  color: var(--ux-muted);
}
.ux-story__count b {
  font-family: "Satoshi-Bold";
  color: var(--ux-paper);
}
.ux-story__progress {
  position: relative;
  width: 12rem;
  height: 2px;
  background: var(--ux-line-strong);
}
.ux-story__progress i {
  position: absolute;
  inset: 0;
  background: var(--ux-ember);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   Case studies — horizontal pinned track
   ========================================================================== */

.ux-cases .ux-cases__main {
  padding-bottom: 12rem;
  overflow: hidden;
}
.ux-cases__head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 6rem;
}
.ux-cases__head > div {
  max-width: 92rem;
}
.ux-cases__meter {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: "Satoshi-Medium";
  font-size: 1.6rem;
  color: var(--ux-faint);
  white-space: nowrap;
}
.ux-cases__meter b {
  font-family: "Satoshi-Bold";
  font-size: 4.8rem;
  line-height: 1;
  color: var(--ux-paper);
}
.ux-cases__meter span {
  width: 4rem;
  height: 1px;
  background: var(--ux-line-strong);
}

.ux-cases__viewport {
  padding-left: 5.4rem;
}
.ux-cases__track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  padding-right: 5.4rem;
  will-change: transform;
}
.ux-case {
  --case-bg: #2a3438;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  width: min(118rem, 78vw);
  min-height: 56rem;
  background: var(--case-bg);
  transform-style: preserve-3d;
  will-change: transform;
}
.ux-case__body {
  display: flex;
  flex-direction: column;
  padding: 5.6rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 55%);
}
.ux-case__tag {
  align-self: flex-start;
  margin-bottom: 3.2rem;
  padding: 0.6rem 1.2rem;
  font-family: "Satoshi-Bold";
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ux-case__title {
  margin-bottom: 2.4rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(2.6rem, 2.4vw, 3.6rem);
  line-height: 1.15;
  color: #fff;
}
.ux-case__text {
  margin-bottom: 4rem;
  font-size: 1.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.ux-case__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2rem;
  margin-top: auto;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.ux-case__stats dt {
  margin-bottom: 0.8rem;
  font-family: "Satoshi-Bold";
  font-size: 4.8rem;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ux-case__stats dd {
  margin: 0;
  font-family: "Spline Sans";
  font-size: 1.5rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.ux-case__media {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.ux-case__img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.ux-cases__rail {
  margin-top: 4.8rem;
}
.ux-cases__bar {
  position: relative;
  display: block;
  height: 2px;
  background: var(--ux-line);
}
.ux-cases__bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ux-coral), var(--ux-ember));
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   Our work — scrubbed statement + domain tiles
   ========================================================================== */

.ux-work .ux-work__main {
  padding-top: 14rem;
  padding-bottom: 14rem;
}
.ux-work__statement,
.ux-work__statement p {
  max-width: 120rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(3.2rem, 4vw, 6rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ux-paper);
}
.ux-work__statement p {
  display: inline;
  font-size: inherit !important;
}
.ux-work__statement .ux-sw {
  opacity: 0.16;
}

.ux-domains {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 9rem;
  background: var(--ux-line);
  border: 1px solid var(--ux-line);
}
.ux-domain {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 12rem;
  padding: 3.2rem;
  overflow: hidden;
  background: var(--ux-ink);
  transition: background 0.5s var(--ux-ease);
}

/* Pointer-tracked spotlight shared by domain tiles and reason cards */
[data-ux-spot] {
  --mx: 50%;
  --my: 50%;
}
[data-ux-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgba(247, 114, 47, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
[data-ux-spot]:hover::before {
  opacity: 1;
}

.ux-domain__num {
  font-family: "Satoshi-Bold";
  font-size: 1.3rem;
  color: var(--ux-faint);
}
.ux-domain__title {
  position: relative;
  font-family: "Satoshi-Bold";
  font-size: 2rem;
  line-height: 1.3;
  color: var(--ux-paper);
  transition: transform 0.5s var(--ux-ease);
}
.ux-domain__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ux-ember);
  opacity: 0;
  transform: translate(-0.8rem, 0.8rem);
  transition: opacity 0.4s, transform 0.5s var(--ux-ease);
}
.ux-domain:hover {
  background: var(--ux-ink-2);
}
.ux-domain:hover .ux-domain__title {
  transform: translateX(0.6rem);
}
.ux-domain:hover .ux-domain__arrow {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Tools — logo marquee
   ========================================================================== */

.ux-tools .ux-tools__main {
  padding-bottom: 14rem;
  overflow: hidden;
}
.ux-tools__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
  padding-top: 7rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--ux-line);
  margin: 0 5.4rem;
  padding-left: 0;
  padding-right: 0;
}
.ux-tools__head .ux-lead {
  margin-top: 0;
}
.ux-tools__rows {
  display: grid;
  gap: 2.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ux-logos__label {
  margin: 0 5.4rem 1.4rem;
  font-size: 1.3rem;
  color: var(--ux-faint);
}
.ux-logos__track {
  display: flex;
  width: max-content;
  animation: ux-marquee 42s linear infinite;
}
.ux-logos.is-reverse .ux-logos__track {
  animation-direction: reverse;
  animation-duration: 50s;
}
.ux-logos:hover .ux-logos__track {
  animation-play-state: paused;
}
@keyframes ux-marquee {
  to { transform: translateX(-50%); }
}
.ux-logos__group {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  padding-right: 2.4rem;
}
.ux-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 8rem;
  padding: 0 2.8rem 0 1.6rem;
  border: 1px solid var(--ux-line);
  background: rgba(247, 245, 244, 0.02);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ux-ease);
}
.ux-logo img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 0.6rem;
}
.ux-logo__name {
  font-family: "Satoshi-Medium";
  font-size: 1.6rem;
  white-space: nowrap;
  color: var(--ux-muted);
  transition: color 0.4s;
}
.ux-logo:hover {
  border-color: rgba(247, 114, 47, 0.6);
  background: rgba(247, 114, 47, 0.06);
  transform: translateY(-0.4rem);
}
.ux-logo:hover .ux-logo__name {
  color: var(--ux-paper);
}

/* ==========================================================================
   Process — sticky header + drawn timeline
   ========================================================================== */

.ux-process .ux-process__main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8rem;
  padding-top: 14rem;
  padding-bottom: 14rem;
}
.ux-process__head {
  position: sticky;
  top: 14rem;
  align-self: start;
}

.ux-steps {
  position: relative;
}
.ux-steps__track {
  position: absolute;
  top: 3.2rem;
  bottom: 3.2rem;
  left: 3.2rem;
  width: 1px;
  background: rgba(247, 245, 244, 0.12);
}
.ux-steps__track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ux-ember), var(--ux-coral));
  transform-origin: top;
  transform: scaleY(0);
}
.ux-steps__list {
  list-style: none;
  display: grid;
  gap: 7.2rem;
}
.ux-step {
  position: relative;
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 3.2rem;
}
.ux-step__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  font-family: "Satoshi-Bold";
  font-size: 1.8rem;
  color: var(--ux-paper);
  background: var(--ux-ink);
  border: 1px solid rgba(247, 245, 244, 0.18);
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.ux-step__node img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.5s;
}
.ux-step.is-active .ux-step__node {
  border-color: var(--ux-ember);
  box-shadow: 0 0 0 0.6rem rgba(247, 114, 47, 0.12), 0 0 4rem rgba(240, 73, 62, 0.35);
}
.ux-step.is-active .ux-step__node img {
  filter: none;
}
.ux-step__body {
  padding-top: 0.8rem;
  opacity: 0.4;
  transition: opacity 0.6s var(--ux-ease);
}
.ux-step.is-active .ux-step__body {
  opacity: 1;
}
.ux-step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: "Satoshi-Bold";
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ux-ember);
}
.ux-step__title {
  margin-bottom: 1.4rem;
  font-family: "Satoshi-Bold";
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--ux-paper);
}
.ux-step__text {
  max-width: 56rem;
  font-size: 1.7rem;
  line-height: 1.65;
  color: var(--ux-muted);
}

/* ==========================================================================
   Collaborate CTA
   ========================================================================== */

.ux-collab .ux-collab__main {
  padding-top: 14rem;
  padding-bottom: 6rem;
}
.ux-collab__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8rem;
  padding: 6.4rem;
  overflow: hidden;
  border: 1px solid var(--ux-line);
  background:
    radial-gradient(60rem circle at 100% 0%, rgba(240, 73, 62, 0.14), transparent 60%),
    var(--ux-ink-2);
}
.ux-collab__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ux-collab__img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.ux-collab__content {
  position: relative;
  z-index: 1;
}
.ux-collab__dash {
  display: block;
  width: 5.4rem;
  height: 3px;
  margin-bottom: 3.2rem;
  background: var(--ux-ember);
}
.ux-collab__title {
  margin-bottom: 4.8rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(2.6rem, 2.2vw, 3.4rem);
  line-height: 1.2;
  color: var(--ux-paper);
}
.ux-collab__ring {
  position: absolute;
  right: -8rem;
  bottom: -8rem;
  width: 26rem;
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Why Reckonsys
   ========================================================================== */

.ux-why .ux-why__main {
  padding-bottom: 14rem;
  overflow: hidden;
}
.ux-why__decor {
  position: absolute;
  top: 16rem;
  right: 0;
  opacity: 0.9;
}
.ux-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ux-line);
  border: 1px solid var(--ux-line);
}
.ux-reason {
  position: relative;
  padding: 4.8rem 4rem;
  overflow: hidden;
  background: var(--ux-ink);
  transition: background 0.5s var(--ux-ease);
}
.ux-reason:hover {
  background: var(--ux-ink-2);
}
.ux-reason__num {
  display: block;
  margin-bottom: 4rem;
  font-family: "Satoshi-Bold";
  font-size: 6.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 114, 47, 0.7);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.ux-reason:hover .ux-reason__num {
  color: var(--ux-ember);
  -webkit-text-stroke-color: transparent;
}
.ux-reason__title {
  position: relative;
  margin-bottom: 1.6rem;
  font-family: "Satoshi-Bold";
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--ux-paper);
}
.ux-reason__text {
  position: relative;
  font-size: 1.6rem;
  line-height: 1.65;
  color: var(--ux-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.ux-faq .ux-faq__main {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8rem;
  padding-top: 14rem;
  padding-bottom: 14rem;
  border-top: 1px solid var(--ux-line);
}
.ux-faq__head {
  position: sticky;
  top: 14rem;
  align-self: start;
}
.ux-faq__orbit {
  display: block;
  width: 22rem;
  margin-top: 6rem;
}
.ux-faqs {
  border-top: 1px solid var(--ux-line-strong);
}
.ux-faq-item {
  border-bottom: 1px solid var(--ux-line-strong);
}
.ux-faq-item__q button {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) 3.2rem;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  padding: 3.2rem 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ux-paper);
}
.ux-faq-item__q button:focus-visible {
  outline: 2px solid var(--ux-ember);
  outline-offset: 4px;
}
.ux-faq-item__num {
  font-family: "Satoshi-Bold";
  font-size: 1.4rem;
  color: var(--ux-faint);
  transition: color 0.4s;
}
.ux-faq-item__text {
  font-family: "Satoshi-Bold";
  font-size: 2.2rem;
  line-height: 1.35;
  transition: transform 0.5s var(--ux-ease), color 0.4s;
}
.ux-faq-item__q button:hover .ux-faq-item__text {
  transform: translateX(0.6rem);
}
.ux-faq-item__icon {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--ux-line-strong);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ux-ease);
}
.ux-faq-item__icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.6rem;
  background: var(--ux-paper);
  transition: transform 0.5s var(--ux-ease);
}
.ux-faq-item__icon i:last-child {
  transform: rotate(90deg);
}
.ux-faq-item.is-open .ux-faq-item__icon {
  background: var(--ux-ember);
  border-color: var(--ux-ember);
  transform: rotate(180deg);
}
.ux-faq-item.is-open .ux-faq-item__icon i:last-child {
  transform: rotate(0deg);
}
.ux-faq-item.is-open .ux-faq-item__num {
  color: var(--ux-ember);
}
.ux-faq-item__a {
  overflow: hidden;
  height: 0;
}
.ux-faq-item.is-open .ux-faq-item__a {
  height: auto;
}
.ux-faq-item__a p {
  padding: 0 4.8rem 3.6rem 6.4rem;
  font-size: 1.7rem;
  line-height: 1.65;
  color: var(--ux-muted);
}

/* ==========================================================================
   Pre-animation states (only while JS motion is active)
   ========================================================================== */

.ux-anim .ux-page [data-ux-fade],
.ux-anim .ux-page [data-ux-stagger] > * {
  opacity: 0;
}
.ux-anim .ux-page [data-ux-split] {
  visibility: hidden;
}
.ux-anim .ux-page .ux-canvas__layer,
.ux-anim .ux-page .ux-cursor {
  opacity: 0;
}

/* Shared contact + footer snippets are brown-black site-wide; on this page they join the dark blue */
body.uiux-page {
  background: #172125;
}
body.uiux-page .contact-section > .sidebar.dark-section,
body.uiux-page .contact-section > .w-container.c-dark {
  background: #172125;
  border-right-color: rgba(247, 245, 244, 0.1);
}
body.uiux-page .contact-section > .w-container.c-dark {
  border-top: 1px solid rgba(247, 245, 244, 0.1);
}
body.uiux-page .contact-section input,
body.uiux-page .contact-section textarea,
body.uiux-page .contact-main .contact-container .contact-form select,
body.uiux-page .contact-section .countrycode-phnno,
body.uiux-page .contact-section option,
body.uiux-page .newsletter-subscription input {
  /* contact.css uses long selectors (and !important on select); colour only, so the select chevron survives */
  background-color: #111a1d !important;
  border-color: rgba(247, 245, 244, 0.16) !important;
}
body.uiux-page .footer-newsletter {
  background-color: #1d2a2f;
}
body.uiux-page .welcomeback-model {
  background-color: #172125;
}

/* No GSAP at all: show every state fully */
.ux-static .ux-story__item,
.ux-static .ux-step__body {
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 1200px) {
  .ux-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ux-case__body {
    padding: 4rem;
  }
}

@media only screen and (max-width: 992px) {
  .ux-hero__inner {
    grid-template-columns: 1fr;
  }
  .ux-canvas {
    justify-self: center;
    max-width: 52rem;
    margin-top: 4rem;
  }
  .ux-story {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 4rem;
    padding-bottom: 10rem;
  }
  .ux-story__stage {
    display: none;
  }
  .ux-story__item {
    min-height: 0;
    padding: 4rem 0;
    opacity: 1;
    border-bottom: 1px solid var(--ux-line);
  }
  .ux-story__inline {
    display: block;
    margin: 3.2rem 0 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .ux-story__inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ux-story__inline--illustrated img {
    object-fit: contain;
  }
  .ux-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ux-process .ux-process__main,
  .ux-faq .ux-faq__main,
  .ux-collab__card,
  .ux-tools__head {
    grid-template-columns: 1fr;
    gap: 5.6rem;
  }
  .ux-process__head,
  .ux-faq__head {
    position: static;
  }
  .ux-faq__orbit {
    display: none;
  }
  .ux-case {
    grid-template-columns: 1fr;
    width: min(64rem, 82vw);
  }
  .ux-case__media {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

@media only screen and (max-width: 768px) {
  .ux-page .ux-head {
    padding-top: 9rem;
    padding-bottom: 5rem;
  }
  .ux-hero .ux-hero__main {
    padding-top: 12rem;
    min-height: 0;
  }
  .ux-hero__actions {
    gap: 2.4rem;
    margin-top: 4rem;
  }
  .ux-canvas {
    display: none;
  }
  .ux-cases__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .ux-cases__meter {
    display: none;
  }
  /* Native swipe instead of a pinned track on small screens */
  .ux-cases__viewport {
    padding-left: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ux-cases__viewport::-webkit-scrollbar {
    display: none;
  }
  .ux-cases__track {
    padding: 0 2rem;
    gap: 1.6rem;
  }
  .ux-case {
    width: 86vw;
    min-height: 0;
    scroll-snap-align: center;
  }
  .ux-case__body {
    padding: 3.2rem 2.4rem;
  }
  .ux-case__stats dt {
    font-size: 3.6rem;
  }
  .ux-cases__rail {
    display: none;
  }
  .ux-work .ux-work__main,
  .ux-process .ux-process__main,
  .ux-faq .ux-faq__main {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
  .ux-domains,
  .ux-reasons {
    grid-template-columns: 1fr;
  }
  .ux-domains {
    margin-top: 5.6rem;
  }
  .ux-domain {
    min-height: 0;
    padding: 2.4rem;
  }
  .ux-tools__head {
    margin: 0 2rem;
  }
  .ux-logo {
    height: 6.4rem;
  }
  .ux-collab__card {
    padding: 3.2rem 2.4rem;
  }
  .ux-step {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 2rem;
  }
  .ux-step__node {
    width: 4.8rem;
    height: 4.8rem;
  }
  .ux-steps__track {
    left: 2.4rem;
  }
  .ux-faq-item__q button {
    grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem;
    padding: 2.4rem 0;
  }
  .ux-faq-item__text {
    font-size: 1.8rem;
  }
  .ux-faq-item__a p {
    padding: 0 0 2.8rem 4.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-page *,
  .ux-page *::before,
  .ux-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .ux-story__media {
    clip-path: none;
    opacity: 0;
  }
  .ux-story__media.is-active {
    opacity: 1;
  }
}
