/* ==========================================================================
   Navigo Software Solutions — styles
   ========================================================================== */

@font-face {
  font-family: 'KyivType Sans';
  src: url('../assets/KyivTypeSans-Regular.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f3f4f8;
  --paper-3: #e4e6ef;
  --ink: #000000;
  --ink-2: #3a3d4a;
  --ink-3: #7a7e90;
  --navigo: #394dff;
  --navigo-2: #2033d6;
  --navigo-soft: #e8eaff;
  --midnight: #0b1240;
  --midnight-2: #151f63;

  --reso: #fbddb2;
  --reso-line: #ff1a1a;
  --one: #7ee07e;
  --smritivan: #9b2418;
  --cts: #3a4eff;
  --reso-stays: #141211;
  --lanes: #FFC61A;

  --font: "Fustat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --cursor-default: auto;
  --cursor-pointer: pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + clamp(12px, 1.8vw, 20px) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "wdth" 100;
}

body:not(.cs-body) {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(11, 18, 64, 0.2) 1.1px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: center top;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--navigo);
  outline-offset: 3px;
}

/* Text selection: white on Navigo blue */
::selection {
  background: var(--navigo);
  color: #fff;
}

/* Where the surface is already Navigo blue, select in midnight instead */
.pcard[data-id="cts"] ::selection,
.flow__lead[style*="#394dff"] ::selection,
.btn ::selection,
.flow__step.is-done ::selection {
  background: var(--midnight);
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 96px);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section__lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  cursor: var(--cursor-pointer);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s, transform 0.2s var(--ease-out);
}

.btn:hover {
  background: var(--navigo);
  border-color: var(--navigo);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--light:hover {
  background: var(--navigo);
  color: var(--paper);
  border-color: var(--navigo);
}

.btn--outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- Logo ---------- */
.logo {
  width: 64px;
  height: 34px;
  overflow: visible;
}

.logo__base,
.logo__run,
.logo__head {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.5;
}

.logo__base {
  stroke: var(--navigo);
  stroke-opacity: 0.22;
}

.logo__run {
  stroke: var(--navigo);
  stroke-dasharray: 100 220;
  stroke-dashoffset: 110;
  animation: logo-run 3.2s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

.logo__head {
  stroke: var(--navigo);
  stroke-dasharray: 100 220;
  stroke-dashoffset: 110;
  opacity: 0;
  animation: logo-head 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes logo-run {
  0% {
    stroke-dashoffset: 110;
    opacity: 0;
  }

  4% {
    stroke-dashoffset: 100;
    opacity: 1;
  }

  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  88% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 110;
    opacity: 0;
  }
}

@keyframes logo-head {

  0%,
  48% {
    stroke-dashoffset: 110;
    opacity: 0;
  }

  50% {
    stroke-dashoffset: 100;
    opacity: 1;
  }

  65% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  88% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 110;
    opacity: 0;
  }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: transform 0.7s var(--ease-in-out), opacity 0.4s ease;
}

.loader.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader__logo {
  width: min(260px, 60vw);
  height: auto;
  overflow: visible;
}

.loader__track,
.loader__fill,
.loader__head {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.5;
}

.loader__track {
  stroke: var(--paper-3);
}

.loader__fill {
  stroke: var(--navigo);
  stroke-dasharray: 100 200;
  stroke-dashoffset: 100;
}

.loader__head {
  stroke: var(--navigo);
  stroke-dasharray: 100 200;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: stroke-dashoffset 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.04s ease;
}

.loader.is-complete .loader__head {
  stroke-dashoffset: 0;
  opacity: 1;
}

.loader__label {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Nav (Floating Island) ---------- */
.nav {
  position: sticky;
  top: clamp(12px, 1.8vw, 20px);
  z-index: 1000;
  width: 100%;
  pointer-events: none;
  user-select: none;
  padding-inline: clamp(14px, 2.5vw, 32px);
  margin-top: clamp(12px, 1.8vw, 20px);
  margin-bottom: calc(-1 * clamp(12px, 1.8vw, 20px));
  box-sizing: border-box;
}

.nav__backdrop {
  display: none;
}

.nav__inner {
  height: var(--nav-h);
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  padding: 0 10px 0 24px;
  box-shadow:
    0 12px 32px -6px rgba(11, 18, 64, 0.08),
    0 2px 8px -1px rgba(11, 18, 64, 0.03);
  pointer-events: auto;
  position: relative;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------- Case Studies Idle Animated Highlight (Desktop) ---------- */
@media (min-width: 1041px) {

  .nav__links a.nav__link--cases,
  .nav__links a[href="404.html"],
  .nav__links a[href*="case-studies"] {
    position: relative;
    isolation: isolate;
  }

  .nav__links a.nav__link--cases::before,
  .nav__links a[href="404.html"]::before,
  .nav__links a[href*="case-studies"]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--paper-2);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    box-shadow: 0 0 0 1px rgba(57, 77, 255, 0.2), 0 2px 10px -2px rgba(57, 77, 255, 0.1);
    /* Opacity-only so the breathing stays on the compositor (no repaints under the blurred nav) */
    animation: nav-cases-breathe 2.8s ease-in-out infinite;
    transition: opacity 0.25s var(--ease-out);
    will-change: opacity;
  }

  .nav__links a.nav__link--cases:hover::before,
  .nav__links a[href="404.html"]:hover::before,
  .nav__links a[href*="case-studies"]:hover::before {
    opacity: 1;
    box-shadow: none;
    animation-play-state: paused;
  }

  @keyframes nav-cases-breathe {

    0%,
    100% {
      opacity: 0.25;
    }

    50% {
      opacity: 0.9;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .nav__links a.nav__link--cases::before,
    .nav__links a[href="404.html"]::before,
    .nav__links a[href*="case-studies"]::before {
      animation: none;
      opacity: 0.4;
      box-shadow: 0 0 0 1px rgba(228, 230, 239, 0.7);
    }
  }
}

.nav__cta {
  padding: 11px 18px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-2);
  cursor: var(--cursor-pointer);
  place-items: center;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease-out);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(44px, 5.5vw, 76px);
  position: relative;
  overflow-x: clip;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 22ch;
  text-align: center;
  margin-inline: auto;
}

.hero__title-accent {
  color: var(--navigo);
}

@media (max-width: 640px) {
  .hero__title br {
    display: none;
  }
}

.hero__text {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--ink-2);
  max-width: 54ch;
  line-height: 1.5;
  text-align: center;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero__trusted-label {
  margin-top: clamp(64px, 8vw, 96px);
  margin-bottom: clamp(24px, 3.2vw, 36px);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
}

/* ---------- Hero Trusted Marquee ---------- */
.hero__marquee {
  width: 100%;
  position: relative;
  overflow: hidden;
  user-select: none;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 6%,
      black 94%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 6%,
      black 94%,
      transparent 100%);
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hero-marquee-ltr 50s linear infinite;
}

.hero__marquee:hover .hero__marquee-track {
  animation-play-state: paused;
}

.hero__marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 64px;
  padding-inline: clamp(24px, 3.5vw, 44px);
}

.hero__marquee-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 0.2s var(--ease-out);
}

.hero__marquee-item:hover .hero__marquee-logo {
  transform: scale(1.05);
}

/* Optical balance adjustments so each logo has harmonized visual weight */
.hero__marquee-logo--travel-magics {
  height: 48px;
  max-width: 48px;
}

.hero__marquee-logo--aj-infotech {
  height: 44px;
}

.hero__marquee-logo--navigate {
  height: 46px;
  max-width: 165px;
}

.hero__marquee-logo--powerhubb {
  height: 46px;
  max-width: 155px;
}

.hero__marquee-logo--golden-leo {
  height: 24px;
  max-width: 185px;
}

.hero__marquee-logo--evey {
  height: 40px;
}

.hero__marquee-logo--freedom {
  height: 40px;
}

.hero__marquee-logo--ganga-hotel {
  height: 36px;
}

@keyframes hero-marquee-ltr {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track {
    animation-play-state: paused;
  }
}

/* ---------- Case study band ---------- */
.band {
  display: block;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.band__checker {
  display: block;
  width: 100%;
  height: 40px;
}

.band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
  gap: 8px 32px;
  padding-block: 36px 40px;
  min-height: 220px;
}

.band__side {
  grid-row: 1 / 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.band__side::after {
  content: "";
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.4);
}

.band__year {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.band__title {
  grid-column: 2;
  grid-row: 2;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.03em;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
}

.band__title span {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
}

.band__dot {
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--navigo);
  transition: transform 0.4s var(--ease-out);
}

.band:hover .band__dot {
  transform: scale(1.4);
}

.band__arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: end;
  width: 96px;
  height: 40px;
  overflow: visible;
}

.band__arrow path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}

.band:hover .band__arrow path {
  transform: translateX(16px);
}

.band__label {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Who we are ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__copy p+p {
  margin-top: 20px;
}

.about__copy p {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  max-width: 40ch;
}

.about__copy p:first-child {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.industries__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* ---------- Industries Scroll Container & Custom Scrollbar ---------- */
.industries__wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 14px;
  gap: 16px;
  align-items: stretch;
  border-top: 1px solid var(--ink);
}

.industries {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  /* Sensible default before dynamic JS height calculation */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / legacy Edge */
  scroll-behavior: auto;
  /* Instant 1:1 scroll without animation lag */
}

.industries::-webkit-scrollbar {
  display: none;
  /* Chromium / Safari */
}

.industries:focus-visible {
  outline: 2px solid var(--navigo);
  outline-offset: 4px;
  border-radius: 4px;
}

.industries li {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-3);
  transition: background-color 0.15s ease;
}

.industries li:hover {
  background-color: rgba(57, 77, 255, 0.02);
}

.industries strong {
  font-weight: 700;
}

.industries span {
  color: var(--ink-2);
}

/* Bespoke Scrollbar */
.industries__scrollbar {
  position: relative;
  width: 14px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  cursor: var(--cursor-pointer);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.industries__track {
  position: relative;
  width: 6px;
  height: 100%;
  background: var(--paper-3);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease-out), width 0.2s var(--ease-out);
}

.industries__scrollbar:hover .industries__track,
.industries__wrap.is-scrolling .industries__track,
.industries__wrap.is-dragging .industries__track {
  background: #cbd0e2;
  width: 8px;
}

.industries__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 40px;
  background: var(--ink-2);
  border-radius: 999px;
  cursor: var(--cursor-pointer);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.industries__scrollbar:hover .industries__thumb,
.industries__wrap.is-scrolling .industries__thumb,
.industries__thumb.is-scrolling {
  background: var(--navigo);
  box-shadow: 0 0 0 3px rgba(57, 77, 255, 0.25);
}

.industries__thumb:hover,
.industries__thumb.is-active,
.industries__wrap.is-dragging .industries__thumb {
  background: var(--navigo);
  cursor: var(--cursor-pointer);
  box-shadow: 0 0 0 3px rgba(57, 77, 255, 0.25);
  transition: none;
  /* Zero lag during drag */
}

.industries__thumb:focus-visible {
  outline: 2px solid var(--navigo);
  outline-offset: 3px;
}

/* Active Dragging States */
.industries__wrap.is-dragging,
.industries__wrap.is-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.is-dragging-scrollbar,
body.is-dragging-scrollbar * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: var(--cursor-pointer) !important;
}

.industries__other {
  margin-top: 28px;
  padding: 24px;
  background: var(--paper-2);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.industries__other p {
  font-weight: 600;
  max-width: 26ch;
  line-height: 1.3;
}

/* ---------- Products ---------- */
.products {
  background: #000000;
  color: #ffffff;
}

.products .section__title {
  color: #ffffff;
}

.products .products__hint {
  color: rgba(255, 255, 255, 0.6);
}

.products__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.products__counter {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 96px;
  height: 48px;
  padding: 8px 18px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;
}

.products__counter-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
}

.products__counter-curr {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.products__counter-sep {
  opacity: 0.35;
  font-weight: 400;
  margin-inline: 1px;
}

.products__counter-total {
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.products__counter-progress {
  position: absolute;
  bottom: 5px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.products__counter-bar {
  height: 100%;
  width: 0%;
  background: #10b981;
  border-radius: 999px;
  will-change: width;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: var(--cursor-pointer);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--midnight);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdeck {
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: 540px;
  width: 100%;
  overflow: hidden;
  padding-bottom: 2px;
  box-sizing: border-box;
}

.pcard {
  --bg: #ddd;
  --fg: #fff;
  --text: #000;
  display: flex;
  flex: 0 0 115px;
  min-width: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  will-change: flex-grow, flex-basis;
  transform: translateZ(0);
  transition: flex-grow 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    flex-basis 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    box-shadow 0.35s var(--ease-out),
    transform 0.3s var(--ease-out);
  cursor: var(--cursor-pointer);
  box-sizing: border-box;
}

.pcard:hover:not(.is-open) {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}

.pcard.is-open {
  flex: 1 1 0%;
  cursor: var(--cursor-default);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}

/* Cards outside the 4-card window collapse to zero width (cancelling the
   14px gap), so the row slides: the first card leaves on the left while the
   next product slides in on the right. Desktop only; mobile lists them all. */
@media (min-width: 821px) {
  .pcard.is-window-hidden {
    flex: 0 0 0px;
    margin-right: -14px;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
  }
}

.pcard[data-id="reso-stays"] {
  background: radial-gradient(ellipse 120% 55% at 50% 100%, #9a2c1d 0%, #541c16 35%, #221412 65%, #141211 100%);
}

.pcard.is-open:hover {
  transform: none;
}

.pcard__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
  display: grid;
  place-items: center;
  color: var(--fg);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease 0.1s, visibility 0.2s ease 0.1s;
}

.pcard.is-open .pcard__logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.pcard__logo:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}

.pcard__word {
  writing-mode: vertical-rl;
  line-height: 1;
  font-size: 88px;
  white-space: nowrap;
  user-select: none;
}

.pcard__word--reso {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  font-size: 108px;
  letter-spacing: -0.04em;
  text-decoration-thickness: 0.11em;
}

.pcard__word--one {
  font-family: var(--font);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.02em;
}

/* Navigo One app icon: shown in a rounded tile, as in the app */
.pcard__app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 24, 31, 0.1), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}

.pcard__name--one {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pcard__name--one .pcard__app-icon {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.28em;
}

.pcard__word--smritivan {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 68px;
  letter-spacing: -0.01em;
}

.pcard__word--cts {
  font-family: var(--font);
  font-weight: 800;
  font-size: 96px;
  letter-spacing: -0.03em;
}

.pcard__word--reso-stays {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pcard__word--reso-stays .pcard__part-reso {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pcard__word--reso-stays .pcard__part-stays {
  font-family: "Beau Rivage", cursive;
  font-weight: 400;
  font-size: 78px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.pcard__word--lanes {
  font-family: "KyivType Sans", var(--font), sans-serif;
  font-weight: 400;
  font-size: 88px;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Brand logos (Reso, Smritivan, CTS) ---- */
.pcard__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--fg);
}

/* Reso wordmark turned to run down the collapsed card */
.pcard__brand--reso img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}

.pcard__brand--smritivan img {
  width: 54px;
  height: 54px;
}

.pcard__name--logo img {
  width: auto;
  height: clamp(36px, 3.2vw, 46px);
}

.pcard__name--smritivan {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pcard__name--smritivan img {
  width: 1.15em;
  height: 1.15em;
}

.pcard__name--cts {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.pcard__name--cts .pcard__app-icon {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.28em;
}

/* The CTS tile is the same blue as its card, so give it a light ring */
.pcard__app-icon--cts {
  background: transparent;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 10px 24px -10px rgba(0, 0, 20, 0.6);
}

/* Navigo One's ink card needs an edge against the black section */
.pcard[data-id="one"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pcard[data-id="one"].is-open {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}

/* White mock-ups need an edge on the light brand cards */
.pcard[data-id="reso"] .mini-ui,
.pcard[data-id="smritivan"] .mini-ui {
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 24px 48px -26px rgba(17, 17, 17, 0.35);
}

.pcard__panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 1;
}

.pcard.is-open .pcard__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease 0.1s, visibility 0.28s ease 0.1s;
}

.pcard__panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 340px);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 3vw, 40px);
  box-sizing: border-box;
}

.pcard__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.pcard__name {
  writing-mode: horizontal-tb;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.pcard__name.pcard__word--reso {
  font-size: clamp(2.2rem, 3.2vw, 2.7rem);
}

.pcard__name--one {
  font-size: clamp(2.1rem, 3vw, 2.5rem);
}

.pcard__name.pcard__word--smritivan {
  font-size: clamp(2.1rem, 3vw, 2.5rem);
}

.pcard__name.pcard__word--cts {
  font-size: clamp(2.1rem, 3vw, 2.5rem);
}

.pcard__name.pcard__word--reso-stays {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(2.2rem, 3.2vw, 2.7rem);
}

.pcard__name.pcard__word--reso-stays .pcard__part-reso {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pcard__name.pcard__word--reso-stays .pcard__part-stays {
  font-family: "Beau Rivage", cursive;
  font-weight: 400;
  font-size: 1.15em;
  line-height: 1;
}

.pcard__name.pcard__word--lanes {
  font-family: "KyivType Sans", var(--font), sans-serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
}

.pcard__tag {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.pcard__desc {
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.55;
  opacity: 0.88;
  margin: 0;
  max-width: 480px;
}

.pcard__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pcard__meta {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
  font-weight: 500;
}

.pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pcard__actions .btn {
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
}

.pcard__actions .btn--current {
  background: var(--accent, var(--text));
  color: var(--accent-ink, var(--bg));
  border-color: var(--accent, var(--text));
}

.pcard__actions .btn--current:hover {
  background: var(--navigo);
  color: #fff;
  border-color: var(--navigo);
}

.pcard__actions .btn--ghost-current {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}

.pcard__actions .btn--ghost-current:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Decorative Mini UI Showcase Card ---------- */
.pcard__showcase {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.mini-ui {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  font-family: var(--font);
  user-select: none;
}

.mini-ui__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-ui__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-ui__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.mini-ui--reso .mini-ui__icon {
  stroke: #e61919;
}

.mini-ui--one .mini-ui__icon {
  stroke: #16a34a;
}

.mini-ui--smritivan .mini-ui__icon {
  stroke: #9b2418;
}

.mini-ui--cts .mini-ui__icon {
  stroke: #2563eb;
}

.mini-ui--reso-stays .mini-ui__icon {
  stroke: #D92D20;
}

.mini-ui--lanes .mini-ui__icon {
  stroke: #123A2E;
}

.mini-ui__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.mini-ui__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mini-ui__badge--confirmed {
  background: #e6f9ed;
  color: #0f766e;
}

.mini-ui__badge--live {
  background: #dcfce7;
  color: #166534;
}

.mini-ui__badge--match {
  background: #fee2e2;
  color: #991b1b;
}

.mini-ui__badge--transit {
  background: #dbeafe;
  color: #1e40af;
}

.mini-ui__badge--stays {
  background: #f1f5f9;
  color: #0f172a;
}

.mini-ui__badge--lanes {
  background: #fef3c7;
  color: #123A2E;
}

.mini-ui__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-ui__field {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-ui__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mini-ui__val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.mini-ui__val--positive {
  color: #16a34a;
}

.mini-ui__card-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-ui__box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-ui__box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.mini-ui__box-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.mini-ui__box-sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.mini-ui__box-dates {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 500;
}

.mini-ui__progress-mini {
  height: 5px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-ui__progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
}

.mini-ui__search-bar {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.mini-ui__search-icon {
  width: 13px;
  height: 13px;
  stroke: #64748b;
  flex-shrink: 0;
}

.mini-ui__avatars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mini-ui__thumb {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.mini-ui__thumb-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

.mini-ui__route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
}

.mini-ui__arrow {
  color: #2563eb;
  font-weight: 700;
}

.mini-ui__btn {
  border: 0;
  outline: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: var(--cursor-pointer);
  transition: transform 0.2s, opacity 0.2s;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.mini-ui__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mini-ui__btn--reso {
  background: #e61919;
  box-shadow: 0 4px 14px rgba(230, 25, 25, 0.28);
}

.mini-ui__btn--one {
  background: #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.mini-ui__btn--smritivan {
  background: #9b2418;
  box-shadow: 0 4px 14px rgba(155, 36, 24, 0.28);
}

.mini-ui__btn--cts {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.mini-ui__btn--reso-stays {
  background: #D92D20;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 45, 32, 0.35);
}

.mini-ui__btn--reso-stays:hover {
  background: #c52418;
}

/* ---------- Lanes Mini Decorative Card (Replication) ---------- */
.mini-ui--lanes {
  background: #FEEAA2;
  color: #181c20;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.mini-ui--lanes .mini-ui__stop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mini-ui--lanes .mini-ui__pin--origin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #181c20;
  margin-top: 5px;
  margin-left: 2px;
  flex-shrink: 0;
}

.mini-ui--lanes .mini-ui__origin-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #181c20;
  letter-spacing: -0.01em;
}

.mini-ui--lanes .mini-ui__track {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
}

.mini-ui--lanes .mini-ui__track-dotted {
  width: 0;
  height: 24px;
  border-left: 2px dotted #8e959e;
  margin-left: 5.5px;
  flex-shrink: 0;
}

.mini-ui--lanes .mini-ui__track-dist {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1;
}

.mini-ui--lanes .mini-ui__stop--dest {
  align-items: center;
}

.mini-ui--lanes .mini-ui__pin--dest {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2.5px solid #181c20;
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-left: 1px;
}

.mini-ui--lanes .mini-ui__dest-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #181c20;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.mini-ui--lanes .mini-ui__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 14px;
}

.mini-ui--lanes .mini-ui__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d2939;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mini-ui--lanes .mini-ui__status-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #fab005;
  border: 1.5px solid #1d2939;
  flex-shrink: 0;
}

.mini-ui--lanes .mini-ui__date {
  font-size: 0.92rem;
  font-weight: 500;
  color: #344054;
}

.mini-ui--lanes .mini-ui__divider-dashed {
  width: 100%;
  border: none;
  border-top: 1.5px dashed #deb853;
  margin: 0 0 14px 0;
}

.mini-ui--lanes .mini-ui__specs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mini-ui--lanes .mini-ui__specs-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-ui--lanes .mini-ui__specs-line {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1d2939;
}

.mini-ui--lanes .mini-ui__offer-line {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1d2939;
}

.mini-ui--lanes .mini-ui__quotes {
  font-size: 0.92rem;
  font-weight: 600;
  color: #101828;
}

.mini-ui--lanes .mini-ui__btn--lanes {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #ffba08;
  color: #181c20;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 18px;
  cursor: var(--cursor-pointer);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 186, 8, 0.25);
  font-family: inherit;
}

.mini-ui--lanes .mini-ui__btn--lanes:hover {
  background: #f5ae00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 174, 0, 0.35);
}

/* ---------- One (Operations Hub) Mini Decorative Card ---------- */
.mini-ui--one {
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  padding: 20px 16px 20px 16px;
  width: 100%;
  max-width: 375px;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: var(--font);
  user-select: none;
}

.mini-ui--one .mini-ui__one-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-ui--one .mini-ui__one-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-ui--one .mini-ui__one-app-icon {
  width: 34px;
  height: 34px;
  background: #0f172a;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.mini-ui--one .mini-ui__one-app-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mini-ui--one .mini-ui__one-title-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mini-ui--one .mini-ui__one-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.mini-ui--one .mini-ui__one-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
}

.mini-ui--one .mini-ui__one-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  flex-shrink: 0;
}

.mini-ui--one .mini-ui__one-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.mini-ui--one .mini-ui__one-sec-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.mini-ui--one .mini-ui__one-leads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mini-ui--one .mini-ui__one-lead-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 9px 6px 9px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 68px;
  min-width: 0;
  box-sizing: border-box;
}

.mini-ui--one .mini-ui__one-lead-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1;
  margin-bottom: 2px;
}

.mini-ui--one .mini-ui__one-lead-tag--spacer {
  visibility: hidden;
}

.mini-ui--one .mini-ui__one-lead-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mini-ui--one .mini-ui__one-lead-label {
  font-size: 0.63rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.mini-ui--one .mini-ui__one-fin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mini-ui--one .mini-ui__one-fin-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 8px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70px;
  min-width: 0;
  box-sizing: border-box;
}

.mini-ui--one .mini-ui__one-fin-card--centered {
  justify-content: center;
  gap: 0;
}

.mini-ui--one .mini-ui__one-fin-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1;
  margin-bottom: 3px;
}

.mini-ui--one .mini-ui__one-fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.mini-ui--one .mini-ui__one-fin-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.mini-ui--one .mini-ui__one-fin-icon {
  width: 20px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.mini-ui--one .mini-ui__one-fin-icon--profit {
  stroke: #1e293b;
}

.mini-ui--one .mini-ui__one-fin-label--profit {
  color: #64748b;
}

.mini-ui--one .mini-ui__one-fin-icon--rev {
  stroke: #22c55e;
}

.mini-ui--one .mini-ui__one-fin-label--rev {
  color: #22c55e;
}

.mini-ui--one .mini-ui__one-fin-icon--exp {
  stroke: #c26330;
}

.mini-ui--one .mini-ui__one-fin-label--exp {
  color: #c26330;
}

.mini-ui--one .mini-ui__one-fin-icon--out {
  stroke: #f87171;
}

.mini-ui--one .mini-ui__one-fin-label--out {
  color: #f87171;
}

.mini-ui--one .mini-ui__one-fin-label {
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.mini-ui--one .mini-ui__one-fin-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
}

.mini-ui--one .mini-ui__one-val-full {
  display: inline;
}

.mini-ui--one .mini-ui__one-val-short {
  display: none;
}

/* ---------- Records Mini Card (Reso) ---------- */
.mini-ui--records {
  padding: 22px 22px;
}

.mini-ui__records-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  user-select: none;
}

.mini-ui__records-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mini-ui__records-sub {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.3;
}

.mini-ui__records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-ui__rec-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: var(--cursor-pointer);
}

.mini-ui__rec-tile:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.mini-ui__rec-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-ui__rec-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mini-ui__rec-icon--campaigns {
  background: #ebf3fe;
  color: #2563eb;
}

.mini-ui__rec-icon--counters {
  background: #f1ebe5;
  color: #6b5347;
}

.mini-ui__rec-icon--customers {
  background: #e6f6ec;
  color: #16a34a;
}

.mini-ui__rec-icon--expenses {
  background: #fef4e4;
  color: #d97706;
}

.mini-ui__rec-icon--properties {
  background: #f6ecfa;
  color: #9333ea;
}

.mini-ui__rec-icon--bookings {
  background: #e0f6f7;
  color: #0891b2;
}

.mini-ui__rec-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 1px;
}

.mini-ui__rec-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mini-ui__rec-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Products Bottom Footer ---------- */
.products__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 16px;
}

.products__status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.products__status-icon {
  width: 14px;
  height: 14px;
  fill: #10b981;
  opacity: 0.85;
  flex-shrink: 0;
}

.products__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  padding: 0;
  cursor: var(--cursor-pointer);
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.products__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.products__dot.is-active {
  width: 24px;
  background: #ffffff;
}

/* ---------- Services ---------- */
.services {
  background: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.services .section__title {
  color: #ffffff;
}

.services .section__lede {
  color: rgba(255, 255, 255, 0.75);
}

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}

.services__list li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 30px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: var(--cursor-pointer);
  outline: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1),
    opacity 0.45s ease,
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.services__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navigo);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1),
    background 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease,
    box-shadow 0.45s ease;
}

.services__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: color 0.45s ease, transform 0.45s ease, text-shadow 0.45s ease;
}

.services__desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
  line-height: 1.55;
  transition: color 0.45s ease;
}

/* Scroll-connected states when interactive */
.services--interactive .services__list li {
  opacity: 0.35;
  transform: translateX(0);
}

.services--interactive .services__list li .services__num {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.45);
}

.services--interactive .services__list li .services__name {
  color: rgba(255, 255, 255, 0.45);
}

.services--interactive .services__list li .services__desc {
  color: rgba(255, 255, 255, 0.32);
}

/* Active Highlighted Forward Item */
.services--interactive .services__list li.is-active {
  opacity: 1;
  transform: translateX(20px);
  background: linear-gradient(90deg, rgba(57, 77, 255, 0.15) 0%, rgba(57, 77, 255, 0.03) 60%, transparent 100%);
  border-bottom-color: rgba(57, 77, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.services--interactive .services__list li.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3.5px;
  border-radius: 4px;
  background: var(--navigo);
  box-shadow: 0 0 16px var(--navigo), 0 0 4px #ffffff;
}

.services--interactive .services__list li.is-active .services__num {
  background: var(--navigo);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(57, 77, 255, 0.7), 0 0 8px rgba(57, 77, 255, 0.45);
}

.services--interactive .services__list li.is-active .services__name {
  color: #ffffff;
  transform: translateX(4px);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
}

.services--interactive .services__list li.is-active .services__desc {
  color: rgba(255, 255, 255, 0.95);
}

/* Passed items (scrolled past in forward direction) */
.services--interactive .services__list li.is-passed {
  opacity: 0.72;
  transform: translateX(6px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.services--interactive .services__list li.is-passed .services__num {
  background: rgba(57, 77, 255, 0.22);
  border: 1px solid rgba(57, 77, 255, 0.45);
  color: #ffffff;
}

.services--interactive .services__list li.is-passed .services__name {
  color: rgba(255, 255, 255, 0.85);
}

.services--interactive .services__list li.is-passed .services__desc {
  color: rgba(255, 255, 255, 0.62);
}

/* Hover preview */
.services--interactive .services__list li:hover:not(.is-active) {
  opacity: 0.88;
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.services--interactive .services__list li:hover:not(.is-active) .services__num {
  background: rgba(57, 77, 255, 0.16);
  border: 1px solid rgba(57, 77, 255, 0.35);
  color: #ffffff;
}

.services--interactive .services__list li:hover:not(.is-active) .services__name {
  color: #ffffff;
}

.services--interactive .services__list li:hover:not(.is-active) .services__desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Focus styles for keyboard accessibility */
.services__list li:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--navigo), 0 0 16px rgba(57, 77, 255, 0.4);
}

/* ---------- Contact ---------- */
.contact {
  /* Transparent so the body dot grid (and the magnetic canvas) shows through */
  background: transparent;
  color: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
}

.contact__text {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 44ch;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.contact__aside {
  display: grid;
  gap: 24px;
}

.contact__details {
  display: grid;
  gap: 18px;
  font-size: 0.98rem;
  margin: 0;
}

.contact__details a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.contact__details a:hover {
  color: var(--navigo);
  border-color: var(--navigo);
}

.contact__details dt {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.contact__details dd {
  margin: 0;
  color: var(--ink);
}

.map {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(11, 18, 64, 0.1);
  box-shadow: 0 16px 36px -12px rgba(11, 18, 64, 0.15);
  background:
    radial-gradient(circle at center, rgba(57, 77, 255, 0.35) 0, rgba(57, 77, 255, 0) 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 32px),
    var(--midnight-2);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--navigo);
  rotate: -45deg;
  box-shadow: 0 12px 24px -8px rgba(57, 77, 255, 0.7);
}

.map__pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.map__note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Contact Scroll Reveal Animation ---------- */
.contact.contact--animated .contact__title {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact.contact--animated .contact__text {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact.contact--animated .contact__actions {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact.contact--animated .contact__detail-item,
.contact.contact--animated .contact__details>div {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact.contact--animated .map {
  opacity: 0;
  transform: translate3d(0, 52px, 0) scale(0.95);
  will-change: opacity, transform;
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Instant reset utility without animation lag */
.contact.no-transition,
.contact.no-transition * {
  transition: none !important;
}

/* Stagger delays when revealed into view */
.contact.is-revealed .contact__title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.05s;
}

.contact.is-revealed .contact__text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.15s;
}

.contact.is-revealed .contact__actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.25s;
}

.contact.is-revealed .contact__detail-item:nth-child(1),
.contact.is-revealed .contact__details>div:nth-child(1) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.16s;
}

.contact.is-revealed .contact__detail-item:nth-child(2),
.contact.is-revealed .contact__details>div:nth-child(2) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.26s;
}

.contact.is-revealed .contact__detail-item:nth-child(3),
.contact.is-revealed .contact__details>div:nth-child(3) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.36s;
}

.contact.is-revealed .map {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.30s;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {

  .contact.contact--animated .contact__title,
  .contact.contact--animated .contact__text,
  .contact.contact--animated .contact__actions,
  .contact.contact--animated .contact__detail-item,
  .contact.contact--animated .contact__details>div {
    transform: translate3d(0, 30px, 0);
  }

  .contact.contact--animated .map {
    transform: translate3d(0, 36px, 0) scale(0.97);
  }

  .contact.is-revealed .contact__title {
    transition-delay: 0.04s;
  }

  .contact.is-revealed .contact__text {
    transition-delay: 0.12s;
  }

  .contact.is-revealed .contact__actions {
    transition-delay: 0.20s;
  }

  .contact.is-revealed .contact__detail-item:nth-child(1),
  .contact.is-revealed .contact__details>div:nth-child(1) {
    transition-delay: 0.28s;
  }

  .contact.is-revealed .contact__detail-item:nth-child(2),
  .contact.is-revealed .contact__details>div:nth-child(2) {
    transition-delay: 0.36s;
  }

  .contact.is-revealed .contact__detail-item:nth-child(3),
  .contact.is-revealed .contact__details>div:nth-child(3) {
    transition-delay: 0.44s;
  }

  .contact.is-revealed .map {
    transition-delay: 0.50s;
  }
}

/* Settled state cleanup */
.contact.is-settled .contact__title,
.contact.is-settled .contact__text,
.contact.is-settled .contact__actions,
.contact.is-settled .contact__detail-item,
.contact.is-settled .contact__details>div,
.contact.is-settled .map {
  will-change: auto;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: #050507;
  color: #fff;
  padding-top: clamp(56px, 7vw, 96px);
}

/* Faint dot grid echoing the page background */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

.footer > .wrap {
  position: relative;
  z-index: 1;
}

.footer a {
  text-decoration: none;
}

/* Top: brand + call to action */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 440px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__mark {
  width: 56px;
  height: auto;
  overflow: visible;
}

.footer__mark path {
  fill: none;
  stroke: var(--navigo);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__tagline {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer__cta-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.footer__cta-btn:hover {
  background: var(--navigo);
  color: #fff;
}

.footer__cta-btn:hover svg {
  transform: translateX(4px);
}

.footer__mail {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__mail:hover {
  color: #fff;
  border-color: #fff;
}

/* Link columns */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding-block: clamp(40px, 5vw, 64px);
}

.footer__col-title {
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__ext {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__links a:hover .footer__ext {
  opacity: 1;
  transform: translate(2px, -2px);
}

.footer__links--inline {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

/* Bottom bar */
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__up-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer__up-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__up:hover {
  color: #fff;
}

.footer__up:hover .footer__up-icon {
  background: var(--navigo);
  border-color: var(--navigo);
  transform: translateY(-3px);
}

/* Signature wordmark, cropped by the bottom edge */
.footer__word {
  position: relative;
  margin: 0 auto -0.2em;
  width: min(100% - 2 * var(--gutter), var(--max));
  font-size: clamp(5.5rem, 23vw, 21rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  font-variation-settings: "wdth" 110;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(57, 77, 255, 0.12) 55%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer__top {
    align-items: flex-start;
  }

  .footer__cta {
    align-items: flex-start;
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Case studies page — Physical Folder & Index Card Redesign
   ========================================================================== */
.cs-body {
  background: radial-gradient(circle at 50% 25%, #f7f9fd 0%, #e8ecf4 100%);
  color: var(--ink);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle architectural dot grid on desk backdrop */
.cs-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(11, 18, 64, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Fixed viewport container — strictly non-scrollable */
.cs-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3.5vh, 48px) clamp(16px, 3.5vw, 48px);
  overflow: hidden;
  z-index: 1;
}

/* Main Folder Container — Fixed Dimensions */
.cs-folder {
  position: relative;
  width: min(880px, 94vw);
  height: clamp(560px, 82vh, 680px);
  max-height: 92dvh;
}

/* Folder palette (near-black covers, graphite file tabs) */
.cs-folder {
  --folder-back: #0e0f12;
  --folder-front: #0f1013;
  --folder-front-top: #17181c;
  --folder-tab: #26282f;
}

/* Counter on the front cover: which files are showing, and how many more */
.cs-folder-count {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cs-folder-count strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cs-folder-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(57, 77, 255, 0.55);
  border-radius: 999px;
  background: rgba(57, 77, 255, 0.14);
  color: #c9d0ff;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.cs-folder-more:hover {
  background: var(--navigo);
  color: #fff;
}

.cs-folder-more svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-folder-more[hidden] {
  display: none;
}

/* Small embossed company label on the cover */
.cs-folder-label {
  position: absolute;
  right: clamp(24px, 4vw, 40px);
  bottom: 22px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  .cs-folder-label {
    display: none;
  }

  .cs-folder-count {
    margin-top: 16px;
    font-size: 0.74rem;
  }
}

/* 1. Back Cover */
.cs-back-cover {
  position: absolute;
  inset: 0;
  background: var(--folder-back);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1;
  /* A plain box-shadow (painted once) instead of drop-shadow filters, so
     sliding the folder in and scrolling an opened file stay cheap */
  box-shadow: 0 28px 48px rgba(11, 18, 64, 0.18), 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Top Right Tab on Back Cover: < BACK TO HOME (Aligned with Right Column) */
.cs-home-tab {
  position: absolute;
  top: -42px;
  right: 28px;
  width: clamp(270px, 38%, 340px);
  height: 42px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  z-index: 2;
}

/* When a file/sheet is opened, hide the Back to Home tab on desktop */
body.has-open-case .cs-home-tab,
.cs-folder.has-open-case .cs-home-tab {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(6px);
}

.cs-home-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 34px;
}

.cs-home-tab .cs-tab-bg-fill {
  fill: var(--folder-back);
}

.cs-home-tab .cs-tab-bg-stroke {
  stroke: rgba(255, 255, 255, 0.14);
}

.cs-home-tab:hover .cs-tab-bg-fill {
  fill: var(--navigo, #394dff);
}

.cs-home-tab:hover .cs-tab-bg-stroke {
  stroke: rgba(255, 255, 255, 0.35);
}

.cs-home-tab:hover {
  color: #ffffff;
}

.cs-home-tab svg:not(.cs-tab-bg) {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.cs-home-tab:hover svg:not(.cs-tab-bg) {
  transform: translateX(-3px);
}

/* Scalable Rounded Corner Tab Background & Stroke */
.cs-tab-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.cs-tab-bg-fill {
  transition: fill 0.2s ease;
}

.cs-tab-bg-stroke {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.2s ease;
}

.cs-tab-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. Stack of File Sheets */
.cs-stack {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.cs-file-item {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: auto;
  pointer-events: auto;
  cursor: var(--cursor-pointer);
  outline: none;
  transition: top 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    transform 0.22s ease;
}

.cs-file-item:focus-visible .cs-file-tab {
  outline: 2px solid var(--navigo, #394dff);
  outline-offset: 2px;
  border-radius: 12px 12px 0 0;
}

/* Enticing idle animation on bottom-most visible file sheet (Slot 0) */
@keyframes cs-slot0-entice-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes cs-slot0-tab-highlight {

  0%,
  100% {
    fill: var(--folder-tab);
  }

  50% {
    fill: var(--navigo, #394dff);
  }
}

@keyframes cs-slot0-stroke-highlight {

  0%,
  100% {
    stroke: rgba(255, 255, 255, 0.16);
  }

  50% {
    stroke: rgba(255, 255, 255, 0.38);
  }
}

@keyframes cs-slot0-sheet-glow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Uniform 52px stepped slots */
.cs-file-item.is-slot-0 {
  top: 204px;
  z-index: 40;
  opacity: 1;
  pointer-events: auto;
  will-change: transform;
  animation: cs-slot0-entice-bob 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-fill {
  animation: cs-slot0-tab-highlight 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-stroke {
  animation: cs-slot0-stroke-highlight 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Blue glow pulses via opacity on a pseudo-element (composited, no repaint) */
.cs-file-item.is-slot-0 .cs-file-sheet::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  box-shadow: 0 -8px 24px rgba(57, 77, 255, 0.16), 0 -4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  animation: cs-slot0-sheet-glow 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.cs-file-item.is-slot-1 {
  top: 152px;
  z-index: 30;
  opacity: 1;
  pointer-events: auto;
}

.cs-file-item.is-slot-2 {
  top: 100px;
  z-index: 20;
  opacity: 1;
  pointer-events: auto;
}

.cs-file-item.is-slot-3 {
  top: 48px;
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
}

/* Slid down inside front cover pocket */
.cs-file-item.is-hidden-below {
  top: 260px;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
}

/* Slid up above back cover */
.cs-file-item.is-hidden-above {
  top: 0px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

/* Tab at top of each file (Rounded Corner Folder Tab) */
.cs-file-tab {
  position: absolute;
  top: -44px;
  height: 44px;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cs-file-tab .cs-tab-bg-fill {
  fill: var(--folder-tab);
}

.cs-file-tab .cs-tab-bg-stroke {
  stroke: rgba(255, 255, 255, 0.16);
}

.cs-tab-num {
  font-weight: 800;
  font-size: 1.02rem;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.cs-tab-divider {
  opacity: 0.4;
  font-weight: 300;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cs-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Column Alignment: Left Tabs align at left: 28px, Right Tabs at right: 28px */
.cs-file-item--left .cs-file-tab {
  left: 28px;
  width: clamp(270px, 38%, 340px);
}

.cs-file-item--right .cs-file-tab {
  right: 28px;
  width: clamp(270px, 38%, 340px);
}

/* Hover on file item */
.cs-file-item:hover:not(.is-hidden-below):not(.is-hidden-above) {
  animation: none;
  transform: translateY(-6px);
}

.cs-file-item:hover:not(.is-hidden-below):not(.is-hidden-above) .cs-file-tab .cs-tab-bg-fill {
  animation: none;
  fill: var(--navigo, #394dff);
}

.cs-file-item:hover:not(.is-hidden-below):not(.is-hidden-above) .cs-file-tab .cs-tab-bg-stroke {
  animation: none;
  stroke: rgba(255, 255, 255, 0.4);
}

.cs-file-item:hover:not(.is-hidden-below):not(.is-hidden-above) .cs-file-tab {
  color: #ffffff;
}

.cs-file-item:hover:not(.is-hidden-below):not(.is-hidden-above) .cs-file-sheet {
  animation: none;
  box-shadow: 0 -8px 24px rgba(57, 77, 255, 0.18), 0 -4px 16px rgba(0, 0, 0, 0.1);
}

/* Pause idle animation when a case study is currently opened to read */
body.has-open-case .cs-file-item.is-slot-0,
.cs-folder.has-open-case .cs-file-item.is-slot-0,
body.has-open-case .cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-fill,
body.has-open-case .cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-stroke,
body.has-open-case .cs-file-item.is-slot-0 .cs-file-sheet,
body.has-open-case .cs-file-item.is-slot-0 .cs-file-sheet::after {
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {

  .cs-file-item.is-slot-0,
  .cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-fill,
  .cs-file-item.is-slot-0 .cs-file-tab .cs-tab-bg-stroke,
  .cs-file-item.is-slot-0 .cs-file-sheet,
  .cs-file-item.is-slot-0 .cs-file-sheet::after {
    animation: none !important;
    transform: none !important;
  }
}

/* White Sheet Body — fully contained inside folder */
.cs-file-sheet {
  background: #ffffff;
  border: 1.5px solid #1c1e23;
  border-radius: 16px;
  height: 100%;
  width: 100%;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* 3. Front Cover Flap */
.cs-front-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  /* Near-black cover with a soft sheen so it still reads as a physical folder */
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(180deg, var(--folder-front-top) 0%, var(--folder-front) 100%);
  border-radius: 0 0 22px 22px;
  border-top-left-radius: 18px;
  z-index: 50;
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px clamp(32px, 6vw, 68px);
}

/* Navigation Tab with Up & Down Chevron Buttons (Right-aligned, matching Right Column) */
.cs-nav-tab {
  position: absolute;
  top: -42px;
  right: 28px;
  width: clamp(270px, 38%, 340px);
  height: 42px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 52;
}

.cs-nav-tab .cs-tab-bg-fill {
  fill: var(--folder-front-top);
}

.cs-nav-tab .cs-tab-bg-stroke {
  stroke: rgba(255, 255, 255, 0.18);
}

.cs-nav-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 46px;
}

.cs-nav-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: var(--cursor-pointer);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.cs-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Chevron Arrow Pulse (Synchronized in 1.6s rhythm with bottom file sheet bob) */
@keyframes cs-nav-btn-pulse {

  0%,
  100% {
    color: #ffffff;
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(57, 77, 255, 0));
  }

  50% {
    color: var(--navigo, #394dff);
    transform: scale(1.24);
    filter: drop-shadow(0 0 6px rgba(57, 77, 255, 0.5));
  }
}

.cs-nav-btn.is-pulsing:not(:disabled) {
  animation: cs-nav-btn-pulse 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.cs-nav-btn:hover:not(:disabled) {
  animation: none;
  color: var(--navigo, #394dff);
  transform: scale(1.24);
  filter: drop-shadow(0 0 8px rgba(57, 77, 255, 0.6));
}

.cs-nav-btn:disabled {
  opacity: 0.25;
  cursor: var(--cursor-default);
  transform: none;
  animation: none;
  filter: none;
}

/* Stop arrow pulse when a case study is currently opened to read */
body.has-open-case .cs-nav-btn,
.cs-folder.has-open-case .cs-nav-btn {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cs-nav-btn.is-pulsing {
    animation: none !important;
  }
}

/* Front Cover Branding */
.cs-folder-title {
  font-family: var(--font);
  font-size: clamp(3.2rem, 7.2vw, 5.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.cs-title-row {
  display: block;
}

.cs-bold {
  font-weight: 800;
  color: #ffffff;
}

.cs-outline {
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
  letter-spacing: 0.14em;
}

.cs-folder-subtitle {
  margin: 20px 0 0 0;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* 4. Opened File View — Static Container, Scrollable Inside */
.cs-opened-view {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cs-opened-view.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  animation: csOpenedEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes csOpenedEnter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top Black Tab on Opened File (Displays Full Title) */
.cs-opened-tab {
  position: absolute;
  top: -44px;
  height: 44px;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 102;
}

.cs-opened-tab .cs-tab-bg-fill {
  fill: #0d0e12;
}

.cs-opened-tab .cs-tab-bg-stroke {
  stroke: rgba(255, 255, 255, 0.16);
}

.cs-opened-tab--left {
  left: 28px;
  width: clamp(320px, 46%, 440px);
}

.cs-opened-tab--right {
  right: 28px;
  width: clamp(320px, 46%, 440px);
}

.cs-opened-tab-num {
  font-weight: 800;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.cs-opened-tab-divider {
  opacity: 0.35;
  font-weight: 300;
  flex-shrink: 0;
}

.cs-opened-tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Static White Card Container */
.cs-opened-card {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #1c1e23;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fixed Container Header */
.cs-opened-header {
  flex: 0 0 auto;
  height: 60px;
  padding: 0 clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  z-index: 2;
}

.cs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 22px;
  border-radius: 999px;
  border: 1.5px solid #1c1e23;
  background: #ffffff;
  color: #1c1e23;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: var(--cursor-pointer);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cs-back-btn:hover {
  background: #1c1e23;
  color: #ffffff;
  transform: translateX(-2px);
}

.cs-back-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

.cs-back-btn:hover svg {
  transform: translateX(-3px);
}

.cs-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Scrollable Content Area (Inside static container) */
.cs-opened-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 36px clamp(24px, 5vw, 64px) 56px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 30, 35, 0.24) transparent;
}

.cs-opened-scrollable::-webkit-scrollbar {
  width: 7px;
}

.cs-opened-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.cs-opened-scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(28, 30, 35, 0.22);
  border-radius: 4px;
}

.cs-opened-scrollable::-webkit-scrollbar-thumb:hover {
  background-color: rgba(28, 30, 35, 0.4);
}

.cs-opened-inner {
  max-width: 820px;
  margin-inline: auto;
}

/* Metadata Bar */
.cs-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f2f5;
}

.cs-meta-item span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cs-meta-item strong {
  font-size: 0.95rem;
  color: #111317;
  font-weight: 700;
}

/* Detail Title & Lead */
.cs-detail-title {
  margin: 28px 0 0 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #111317;
  max-width: 24ch;
}

.cs-detail-lead {
  margin: 20px 0 0 0;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: #4b5563;
  max-width: 62ch;
}

/* Detail Sections */
.cs-detail-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.cs-detail-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111317;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.cs-detail-paragraph {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 62ch;
  margin: 0 0 14px 0;
}

.cs-detail-paragraph:last-child {
  margin-bottom: 0;
}

.cs-detail-list {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 62ch;
}

.cs-detail-li+.cs-detail-li {
  margin-top: 10px;
}

/* Results Metrics Grid */
.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cs-metric-card {
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid var(--navigo, #394dff);
  border-top: 1px solid #eef0f4;
  border-right: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
}

.cs-metric-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111317;
  font-variation-settings: "wdth" 110;
}

.cs-metric-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.35;
}

/* Quote */
.cs-detail-quote {
  margin: 40px 0 0 0;
  padding: 24px 28px;
  background: #f4f6fa;
  border-radius: 14px;
  border-left: 4px solid #1c1e23;
}

.cs-quote-text {
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  color: #1c1e23;
  margin: 0 0 14px 0;
}

.cs-quote-author {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
}

.cs-quote-author strong {
  color: #111317;
  font-weight: 700;
}

.cs-quote-author span {
  color: #6b7280;
  margin-top: 2px;
}

.cs-detail-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.cs-back-btn--footer {
  padding: 9px 24px;
}

/* ==========================================================================
   Case Study 01 — Bespoke Sheet Layout & Components
   Adheres to Navigo brand standards, Fustat typography, and editorial styling.
   ========================================================================== */

.cs-sheet-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-sheet-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cs-sheet-client-logo {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.85;
}

.cs-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font);
}

.cs-sheet-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.cs-sheet-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 18px 20px;
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.cs-sheet-meta-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
}

.cs-sheet-meta-item strong {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
  display: block;
}

.cs-sheet-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.cs-chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navigo, #394dff);
  margin-bottom: 10px;
  font-family: var(--font);
}

.cs-chapter-badge--green {
  color: #059669;
}

.cs-chapter-title {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #111317;
  margin: 0 0 16px 0;
}

.cs-sheet-p {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 14px 0;
}

.cs-sheet-p:last-child {
  margin-bottom: 0;
}

/* Section 01 Scale Highlight Card */
.cs-scale-card {
  padding: 22px 24px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--navigo, #394dff);
  margin: 20px 0;
}

.cs-scale-card-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
}

.cs-scale-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.cs-scale-stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: var(--font);
}

.cs-scale-stat-item span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Section 02 Challenges Grid */
.cs-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.cs-challenge-card {
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cs-challenge-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.cs-challenge-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111317;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-challenge-card-p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 8px 0;
}

.cs-challenge-card-p:last-child {
  margin-bottom: 0;
}

.cs-callout-takeaway {
  padding: 20px 24px;
  background: #eff6ff;
  border-radius: 12px;
  border-left: 4px solid var(--navigo, #394dff);
  margin: 24px 0 0 0;
}

.cs-callout-takeaway p {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.55;
  margin: 0;
}

/* Section 04 Modular Breakdown */
.cs-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.cs-module-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cs-module-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
}

.cs-module-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cs-module-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111317;
  margin: 0 0 10px 0;
}

.cs-module-p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 10px 0;
}

.cs-module-p:last-child {
  margin-bottom: 0;
}

/* Section 05 Before & After Comparison Table */
.cs-comparison-table-wrap {
  margin: 24px 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.cs-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.cs-th-before {
  background: #f9fafb;
  color: #374151;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #e5e7eb;
  width: 48%;
  text-align: left;
}

.cs-th-after {
  background: #f0fdf4;
  color: #065f46;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #10b981;
  width: 52%;
  text-align: left;
  border-left: 1px solid #e5e7eb;
}

.cs-td-before {
  padding: 14px 20px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  vertical-align: top;
  line-height: 1.5;
}

.cs-td-after {
  padding: 14px 20px;
  color: #111827;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  background: #fafdfb;
  vertical-align: top;
  line-height: 1.5;
  border-left: 1px solid #f3f4f6;
}

.cs-comparison-table tr:last-child td {
  border-bottom: none;
}

.cs-feedback-note {
  padding: 18px 22px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 3px solid #94a3b8;
  font-size: 0.96rem;
  font-style: italic;
  color: #334155;
  line-height: 1.55;
  margin-top: 20px;
}

/* Section 06 Impact Metrics KPI Grid */
.cs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.cs-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #10b981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.cs-kpi-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111317;
  font-family: var(--font);
  margin-bottom: 8px;
}

.cs-kpi-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.cs-kpi-desc {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Section 07 Operational Difference Query Grid */
.cs-queries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.cs-query-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.94rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cs-query-card:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

.cs-query-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--navigo, #394dff);
  margin-top: 2px;
}

/* Section 09 Takeaway Card */
.cs-takeaway-card {
  padding: 24px 26px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  border-left: 5px solid #10b981;
  margin: 24px 0 0 0;
}

.cs-takeaway-quote {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin: 0;
}

/* Explore Navigo One CTA Box */
.cs-sheet-cta {
  margin-top: 48px;
  padding: 38px clamp(24px, 4vw, 44px);
  background: #111317;
  color: #ffffff;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.cs-sheet-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, var(--navigo, #394dff));
}

.cs-sheet-cta-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.cs-sheet-cta-p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 auto 28px auto;
  line-height: 1.55;
}

.cs-sheet-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-sheet-cta-btn--primary {
  background: #10b981;
  color: #ffffff;
  border: 1.5px solid #10b981;
  font-weight: 700;
}

.cs-sheet-cta-btn--primary:hover {
  background: #059669;
  border-color: #059669;
}

.cs-sheet-cta-btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.cs-sheet-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* Reso-specific Theme Modifiers (Case Study 02) */
.cs-sheet-badge--reso {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.cs-sheet-badge-dot--reso {
  background: #f59e0b;
}

.cs-chapter-badge--amber {
  color: #d97706;
}

.cs-module-card:hover.cs-module-card--reso,
.cs-module-card--reso:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
}

.cs-module-tag--amber {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.cs-th-after--reso {
  background: #fffbeb;
  color: #92400e;
  border-bottom: 2px solid #f59e0b;
}

.cs-td-after--reso {
  background: #fffdfa;
}

.cs-kpi-card--reso {
  border-top-color: #f59e0b;
}

.cs-takeaway-card--reso {
  border-left-color: #f59e0b;
}

.cs-sheet-cta--reso::before {
  background: linear-gradient(90deg, #f59e0b, var(--navigo, #394dff));
}

.cs-sheet-cta-btn--reso {
  background: #f59e0b;
  color: #ffffff;
  border: 1.5px solid #f59e0b;
  font-weight: 700;
}

.cs-sheet-cta-btn--reso:hover {
  background: #d97706;
  border-color: #d97706;
}

/* CTS-specific Theme Modifiers (Case Study 03) */
.cs-sheet-badge--cts {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cs-sheet-badge-dot--cts {
  background: var(--cts, #3a4eff);
}

.cs-chapter-badge--blue {
  color: #2563eb;
}

.cs-module-card:hover.cs-module-card--cts,
.cs-module-card--cts:hover {
  border-color: var(--cts, #3a4eff);
  box-shadow: 0 8px 20px rgba(58, 78, 255, 0.1);
}

.cs-module-tag--blue {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cs-th-after--cts {
  background: #eff6ff;
  color: #1e40af;
  border-bottom: 2px solid var(--cts, #3a4eff);
}

.cs-td-after--cts {
  background: #fbfdff;
}

.cs-kpi-card--cts {
  border-top-color: var(--cts, #3a4eff);
}

.cs-takeaway-card--cts {
  border-left-color: var(--cts, #3a4eff);
}

.cs-sheet-cta--cts::before {
  background: linear-gradient(90deg, var(--cts, #3a4eff), #60a5fa);
}

.cs-sheet-cta-btn--cts {
  background: var(--cts, #3a4eff);
  color: #ffffff;
  border: 1.5px solid var(--cts, #3a4eff);
  font-weight: 700;
}

.cs-sheet-cta-btn--cts:hover {
  background: var(--navigo-2, #2033d6);
  border-color: var(--navigo-2, #2033d6);
}

/* Smritivan-specific Theme Modifiers (Case Study 04) */
.cs-sheet-client-logo--camera {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111317;
  line-height: 1;
  max-width: none;
  opacity: 0.9;
}

.cs-sheet-client-logo--camera .cs-camera-icon {
  width: 20px;
  height: 20px;
  color: #111317;
  flex-shrink: 0;
}

.cs-sheet-badge--smritivan {
  color: #9b2418;
  background: #fdf2f0;
  border-color: #f8c9c4;
}

.cs-sheet-badge-dot--smritivan {
  background: #9b2418;
}

.cs-chapter-badge--smritivan {
  color: #9b2418;
}

.cs-callout-takeaway--smritivan {
  background: #fdf4f3;
  border-left-color: #9b2418;
}

.cs-callout-takeaway--smritivan p {
  color: #7a1b12;
}

.cs-scale-card--smritivan {
  background: #fff8f7;
  border-left-color: #9b2418;
}

.cs-module-card:hover.cs-module-card--smritivan,
.cs-module-card--smritivan:hover {
  border-color: #9b2418;
  box-shadow: 0 8px 20px rgba(155, 36, 24, 0.1);
}

.cs-module-tag--smritivan {
  color: #9b2418;
  background: #fdf2f0;
  border-color: #f8c9c4;
}

.cs-takeaway-card--smritivan {
  border-left-color: #9b2418;
}

.cs-sheet-cta--smritivan::before {
  background: linear-gradient(90deg, #9b2418, #f87171);
}

.cs-sheet-cta-btn--smritivan {
  background: #9b2418;
  color: #ffffff;
  border: 1.5px solid #9b2418;
  font-weight: 700;
}

.cs-sheet-cta-btn--smritivan:hover {
  background: #7a1b12;
  border-color: #7a1b12;
}

/* ---------- Responsive Rules for Mobile (matches Image 2 concept wireframe) ---------- */
@media (max-width: 768px) {
  .cs-stage {
    padding: 16px 12px;
  }

  .cs-folder {
    width: min(348px, 92vw);
    height: clamp(570px, 86vh, 670px);
    border-radius: 28px;
  }

  .cs-back-cover {
    border-radius: 28px;
  }

  /* Centered < BACK TO HOME Tab */
  .cs-home-tab {
    top: -38px;
    height: 38px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: clamp(230px, 78%, 280px);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .cs-home-content {
    padding: 0 24px;
  }

  /* When a file/sheet is opened, hide the Back to Home tab on mobile */
  body.has-open-case .cs-home-tab,
  .cs-folder.has-open-case .cs-home-tab {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
  }

  /* Stacked File Cards Container */
  .cs-file-item {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cs-file-sheet {
    border-radius: 16px;
  }

  /* All File Tabs (01, 02, 03, 04): Uniform Centered Alignment across the card */
  .cs-file-tab {
    height: 38px;
    top: -38px;
    font-size: 0.8rem;
  }

  .cs-file-item--left .cs-file-tab,
  .cs-file-item--right .cs-file-tab {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(296px, 92%) !important;
  }

  .cs-tab-content {
    padding: 0 24px;
    gap: 10px;
  }

  .cs-tab-num {
    font-size: 0.98rem;
  }

  .cs-tab-title {
    font-size: 0.82rem;
  }

  /* Uniform 46px slot stepping matching the concept card stack */
  .cs-file-item.is-slot-0 {
    top: 228px;
  }

  .cs-file-item.is-slot-1 {
    top: 182px;
  }

  .cs-file-item.is-slot-2 {
    top: 136px;
  }

  .cs-file-item.is-slot-3 {
    top: 90px;
  }

  .cs-file-item.is-hidden-below {
    top: 275px;
  }

  .cs-file-item.is-hidden-above {
    top: 40px;
  }

  /* Front Cover Flap */
  .cs-front-cover {
    height: 55%;
    padding: 28px 24px;
    border-radius: 0 0 28px 28px;
    border-top-left-radius: 0;
  }

  /* Centered Front Cover Navigation Tab (Chevron Arrows) */
  .cs-nav-tab {
    top: -38px;
    height: 38px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: clamp(190px, 60%, 220px);
  }

  .cs-nav-content {
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cs-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.6;
  }

  /* Front Cover Title Typography */
  .cs-folder-title {
    font-size: clamp(2.5rem, 11vw, 3.1rem);
    line-height: 0.94;
    letter-spacing: 0.08em;
  }

  .cs-outline {
    -webkit-text-stroke: 1.3px rgba(255, 255, 255, 0.92);
    letter-spacing: 0.1em;
  }

  .cs-folder-subtitle {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
  }

  /* Mobile Opened File View */
  .cs-opened-tab {
    top: -38px;
    height: 38px;
    font-size: 0.8rem;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(296px, 92%) !important;
  }

  .cs-opened-tab--left,
  .cs-opened-tab--right {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(296px, 92%) !important;
  }

  .cs-opened-card {
    border-radius: 24px;
  }

  .cs-opened-header {
    height: 54px;
    padding: 0 14px;
    gap: 10px;
  }

  .cs-back-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .cs-back-btn svg {
    width: 14px;
    height: 14px;
  }

  .cs-header-badge {
    font-size: 0.7rem;
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  .cs-header-badge>span:not(.cs-badge-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  .cs-opened-scrollable {
    padding: 24px 18px 40px;
  }

  .cs-meta-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cs-detail-title {
    font-size: 1.7rem;
    margin-top: 20px;
  }

  .cs-detail-lead {
    font-size: 1.02rem;
    margin-top: 14px;
  }

  .cs-metrics-grid {
    grid-template-columns: 1fr;
  }

  .cs-challenges-grid,
  .cs-modules-grid,
  .cs-kpi-grid,
  .cs-queries-grid {
    grid-template-columns: 1fr;
  }

  .cs-sheet-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-scale-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .cs-comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cs-th-before,
  .cs-th-after,
  .cs-td-before,
  .cs-td-after {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .cs-sheet-cta {
    padding: 28px 18px;
  }
}


/* ---------- Responsive ---------- */
/* ---------- Responsive Products Deck (Desktop intermediate widths) ---------- */
@media (max-width: 1285px) and (min-width: 821px) {
  .pdeck {
    gap: 12px;
  }

  .pcard {
    flex: 0 0 94px;
  }

  .pcard__word {
    font-size: 74px;
  }

  .pcard__word--reso {
    font-size: 90px;
  }

  .pcard__word--one {
    font-size: 56px;
  }

  .pcard__word--smritivan {
    font-size: 60px;
  }

  .pcard__word--cts {
    font-size: 74px;
  }

  .pcard__word--reso-stays .pcard__part-reso {
    font-size: 54px;
  }

  .pcard__word--reso-stays .pcard__part-stays {
    font-size: 66px;
  }

  .pcard__word--lanes {
    font-size: 74px;
  }

  .pcard__panel-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 300px);
    padding: 24px 26px;
    gap: 20px;
  }

  .mini-ui {
    max-width: 300px;
    padding: 16px 18px;
    gap: 10px;
    border-radius: 16px;
  }

  .mini-ui__title {
    font-size: 0.86rem;
  }

  .mini-ui__badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .mini-ui__field {
    padding: 6px 10px;
  }

  .mini-ui__val {
    font-size: 0.82rem;
  }

  .mini-ui__card-box {
    padding: 9px 11px;
    gap: 4px;
  }

  .mini-ui__btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .mini-ui--records {
    padding: 16px 16px;
  }

  .mini-ui__records-title {
    font-size: 1.08rem;
  }

  .mini-ui__records-sub {
    font-size: 0.76rem;
  }

  .mini-ui__records-grid {
    gap: 8px;
  }

  .mini-ui__rec-tile {
    padding: 8px 9px;
    gap: 9px;
    border-radius: 11px;
  }

  .mini-ui__rec-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .mini-ui__rec-icon svg {
    width: 16px;
    height: 16px;
  }

  .mini-ui__rec-num {
    font-size: 1.05rem;
  }

  .mini-ui__rec-label {
    font-size: 0.72rem;
  }

  /* One (Operations Hub) in 1285px-821px */
  .mini-ui--one {
    max-width: 300px;
    padding: 15px 12px;
    border-radius: 18px;
  }

  .mini-ui--one .mini-ui__one-app-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .mini-ui--one .mini-ui__one-app-icon svg {
    width: 16px;
    height: 16px;
  }

  .mini-ui--one .mini-ui__one-title {
    font-size: 0.9rem;
  }

  .mini-ui--one .mini-ui__one-sub {
    font-size: 0.68rem;
  }

  .mini-ui--one .mini-ui__one-badge {
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .mini-ui--one .mini-ui__one-sec-title {
    font-size: 0.85rem;
    margin-top: 12px;
    margin-bottom: 6px;
  }

  .mini-ui--one .mini-ui__one-leads-grid {
    gap: 5px;
  }

  .mini-ui--one .mini-ui__one-lead-card {
    padding: 7px 4px;
    min-height: 60px;
    border-radius: 10px;
  }

  .mini-ui--one .mini-ui__one-lead-num {
    font-size: 1.25rem;
  }

  .mini-ui--one .mini-ui__one-lead-label {
    font-size: 0.58rem;
  }

  .mini-ui--one .mini-ui__one-fin-grid {
    gap: 5px;
  }

  .mini-ui--one .mini-ui__one-fin-card {
    padding: 7px 8px;
    min-height: 60px;
    border-radius: 10px;
  }

  .mini-ui--one .mini-ui__one-fin-val {
    font-size: 0.92rem;
  }

  .mini-ui--one .mini-ui__one-val-full {
    display: none;
  }

  .mini-ui--one .mini-ui__one-val-short {
    display: inline;
  }
}

@media (max-width: 1060px) and (min-width: 821px) {
  .pdeck {
    gap: 10px;
    height: 510px;
  }

  .pcard {
    flex: 0 0 76px;
  }

  .pcard__word {
    font-size: 58px;
  }

  .pcard__word--reso {
    font-size: 74px;
  }

  .pcard__word--one {
    font-size: 52px;
  }

  .pcard__word--smritivan {
    font-size: 48px;
  }

  .pcard__word--cts {
    font-size: 58px;
  }

  .pcard__word--reso-stays .pcard__part-reso {
    font-size: 44px;
  }

  .pcard__word--reso-stays .pcard__part-stays {
    font-size: 54px;
  }

  .pcard__word--lanes {
    font-size: 58px;
  }

  .pcard__panel-inner {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 246px);
    padding: 20px 20px;
    gap: 14px;
  }

  .pcard__name {
    font-size: 1.85rem;
    margin-bottom: 8px;
  }

  .pcard__tag {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .pcard__desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .pcard__actions .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  .mini-ui {
    max-width: 246px;
    padding: 12px 13px;
    gap: 8px;
    border-radius: 14px;
  }

  .mini-ui__icon {
    width: 15px;
    height: 15px;
  }

  .mini-ui__title {
    font-size: 0.78rem;
  }

  .mini-ui__badge {
    font-size: 0.64rem;
    padding: 2px 7px;
  }

  .mini-ui__row {
    gap: 6px;
  }

  .mini-ui__field {
    padding: 5px 8px;
  }

  .mini-ui__label {
    font-size: 0.62rem;
  }

  .mini-ui__val {
    font-size: 0.76rem;
  }

  .mini-ui__card-box {
    padding: 7px 9px;
    gap: 3px;
    border-radius: 10px;
  }

  .mini-ui__box-title {
    font-size: 0.78rem;
  }

  .mini-ui__box-tag {
    font-size: 0.64rem;
  }

  .mini-ui__box-sub {
    font-size: 0.7rem;
  }

  .mini-ui__box-dates {
    font-size: 0.68rem;
  }

  .mini-ui__search-bar {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .mini-ui__route-strip {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .mini-ui__btn {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .mini-ui--records {
    padding: 12px 12px;
  }

  .mini-ui__records-title {
    font-size: 0.95rem;
  }

  .mini-ui__records-sub {
    font-size: 0.68rem;
  }

  .mini-ui__records-grid {
    gap: 6px;
  }

  .mini-ui__rec-tile {
    padding: 6px 7px;
    gap: 6px;
    border-radius: 9px;
  }

  .mini-ui__rec-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .mini-ui__rec-icon svg {
    width: 13px;
    height: 13px;
  }

  .mini-ui__rec-num {
    font-size: 0.92rem;
  }

  .mini-ui__rec-label {
    font-size: 0.64rem;
  }

  /* One (Operations Hub) in 1060px-821px (card width ~246px) */
  .mini-ui--one {
    max-width: 246px;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .mini-ui--one .mini-ui__one-title-group {
    gap: 7px;
  }

  .mini-ui--one .mini-ui__one-app-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .mini-ui--one .mini-ui__one-app-icon svg {
    width: 14px;
    height: 14px;
  }

  .mini-ui--one .mini-ui__one-title {
    font-size: 0.82rem;
  }

  .mini-ui--one .mini-ui__one-sub {
    font-size: 0.6rem;
  }

  .mini-ui--one .mini-ui__one-badge {
    padding: 2px 7px;
    font-size: 0.62rem;
    gap: 4px;
  }

  .mini-ui--one .mini-ui__one-dot {
    width: 5px;
    height: 5px;
  }

  .mini-ui--one .mini-ui__one-sec-title {
    font-size: 0.78rem;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  .mini-ui--one .mini-ui__one-leads-grid {
    gap: 4px;
  }

  .mini-ui--one .mini-ui__one-lead-card {
    padding: 5px 3px;
    min-height: 50px;
    border-radius: 8px;
  }

  .mini-ui--one .mini-ui__one-lead-tag {
    font-size: 0.55rem;
    margin-bottom: 1px;
  }

  .mini-ui--one .mini-ui__one-lead-num {
    font-size: 1.05rem;
  }

  .mini-ui--one .mini-ui__one-lead-label {
    font-size: 0.52rem;
    letter-spacing: -0.025em;
  }

  .mini-ui--one .mini-ui__one-fin-grid {
    gap: 4px;
  }

  .mini-ui--one .mini-ui__one-fin-card {
    padding: 5px 6px;
    min-height: 50px;
    border-radius: 8px;
  }

  .mini-ui--one .mini-ui__one-fin-tag {
    font-size: 0.55rem;
    margin-bottom: 1px;
  }

  .mini-ui--one .mini-ui__one-fin-icon {
    width: 16px;
    height: 15px;
  }

  .mini-ui--one .mini-ui__one-fin-label {
    font-size: 0.55rem;
  }

  .mini-ui--one .mini-ui__one-fin-val {
    font-size: 0.84rem;
  }

  .mini-ui--one .mini-ui__one-val-full {
    display: none;
  }

  .mini-ui--one .mini-ui__one-val-short {
    display: inline;
  }
}

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

  .hero__visual {
    width: min(100%, 420px);
    justify-self: start;
  }

  .section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .products__nav {
    justify-self: start;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }











  .services__list li {
    grid-template-columns: 48px 1fr;
    padding: 24px 14px;
    gap: 16px;
  }

  .services__desc {
    grid-column: 2;
  }

  .services--interactive .services__list li.is-active {
    transform: translateX(10px);
  }

  .services--interactive .services__list li.is-passed {
    transform: translateX(4px);
  }

  .services--interactive .services__list li:hover:not(.is-active) {
    transform: translateX(6px);
  }
}

@media (max-width: 820px) {
  .pdeck {
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 12px;
  }

  .pcard {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: column-reverse;
    height: auto;
    border-radius: 14px;
  }

  .pcard:hover {
    transform: none;
  }

  .pcard__logo {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: 96px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pcard.is-open .pcard__logo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pcard__word {
    writing-mode: horizontal-tb;
    font-size: 64px;
  }

  .pcard__word--reso {
    font-size: 76px;
  }

  .pcard__word--one {
    font-size: 40px;
  }

  .pcard__word--smritivan {
    font-size: 54px;
  }

  .pcard__word--cts {
    font-size: 64px;
  }

  .pcard__brand {
    flex-direction: row;
    gap: 14px;
  }

  .pcard__brand--reso img {
    position: static;
    width: 150px;
    transform: none;
  }

  .pcard__brand--smritivan img {
    width: 44px;
    height: 44px;
  }

  .pcard__brand--smritivan .pcard__word--smritivan {
    font-size: 46px;
  }

  .pcard__brand--cts .pcard__app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .pcard__brand--one .pcard__app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .pcard__word--reso-stays {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .pcard__word--reso-stays .pcard__part-reso {
    font-size: 56px;
  }

  .pcard__word--reso-stays .pcard__part-stays {
    font-size: 68px;
  }

  .pcard__word--lanes {
    font-size: 58px;
  }

  .pcard__panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
    overflow: hidden;
  }

  .pcard.is-open .pcard__panel {
    grid-template-rows: 1fr;
  }

  .pcard__panel-inner {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    overflow: hidden;
    padding: 0 24px;
    transform: translateY(12px);
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    opacity: 0;
    transition: opacity 0.3s ease, padding 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }

  .pcard.is-open .pcard__panel-inner {
    padding: 8px 24px 28px;
    opacity: 1;
    transform: none;
  }

  .pcard__name {
    display: none;
  }

  .pcard__showcase {
    display: none;
  }

  .pcard__meta {
    margin-top: 8px;
  }

  .products__nav {
    display: flex;
    margin-top: 18px;
    margin-bottom: 8px;
    align-self: flex-start;
  }

  .products__footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .pcard__word--reso-stays .pcard__part-reso {
    font-size: 42px;
  }

  .pcard__word--reso-stays .pcard__part-stays {
    font-size: 52px;
  }

  .pcard__word--lanes {
    font-size: 46px;
  }

  /* One (Operations Hub) on small mobile screens */
  .mini-ui--one .mini-ui__one-val-full {
    display: none;
  }

  .mini-ui--one .mini-ui__one-val-short {
    display: inline;
  }

  .mini-ui--one .mini-ui__one-fin-val {
    font-size: 0.98rem;
  }
}

@media (max-width: 1040px) {
  .nav {
    top: 10px;
    margin-top: 10px;
    margin-bottom: -10px;
    padding-inline: 12px;
  }

  .nav__inner {
    height: 62px;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
  }

  .nav__toggle {
    display: grid;
    position: relative;
    z-index: 1003;
    pointer-events: auto;
  }

  .nav__backdrop,
  .nav.is-open .nav__backdrop {
    display: none !important;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--paper-3);
    border-radius: 24px;
    box-shadow:
      0 20px 40px -10px rgba(11, 18, 64, 0.16),
      0 2px 8px rgba(11, 18, 64, 0.05);
    display: none;
    pointer-events: auto;
    z-index: 1002;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links li {
    list-style: none;
    pointer-events: auto;
  }

  .nav__links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 1.05rem;
    color: var(--ink);
    border-radius: 12px;
    pointer-events: auto;
    cursor: var(--cursor-pointer);
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(57, 77, 255, 0.1);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav__links a:hover,
  .nav__links a:active,
  .nav__links a.is-active {
    background: var(--paper-2);
    color: var(--navigo);
  }

  .nav__cta {
    display: none;
  }
}

@media (max-width: 760px) {

  .band__inner {
    grid-template-columns: auto 1fr;
    min-height: 0;
  }

  .band__arrow {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .band__label {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .industries li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .file__tab {
    padding: 0 18px;
    gap: 12px;
    font-size: 0.8rem;
  }

  .folder__heading h1 {
    font-size: clamp(2.6rem, 14vw, 5rem);
  }

  .files {
    inset: 0 0 38% 0;
  }

  .folder__front {
    height: 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo__run,
  .logo__head {
    animation: none;
    stroke-dashoffset: 0;
    stroke-dasharray: none;
    opacity: 1;
  }

  .hero__halo,
  .hero__path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .hero__head {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .loader {
    display: none;
  }

  .pcard,
  .pcard__panel,
  .pcard__panel-inner,
  .file,
  .band__arrow path,
  .band__dot,
  .services__list li,
  .services__num,
  .services__name {
    transition: none !important;
    transform: none !important;
  }

  .contact.contact--animated .contact__title,
  .contact.contact--animated .contact__text,
  .contact.contact--animated .contact__actions,
  .contact.contact--animated .contact__detail-item,
  .contact.contact--animated .contact__details>div,
  .contact.contact--animated .map {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

}

/* ==========================================================================
   Pixelated Custom Mouse Pointer with Movement Animation (Desktop only)
   ========================================================================== */

/* Native OS cursor skinned with the pixel arrow: zero input latency */
@media (hover: hover) and (pointer: fine) {
  :root {
    --cursor-default: url('../assets/cursor-pixel.svg') 2 2, auto;
    --cursor-pointer: url('../assets/cursor-pixel-hover.svg') 2 2, pointer;
  }

  html,
  body {
    cursor: var(--cursor-default);
  }

  a,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  select,
  summary,
  label[for],
  .btn,
  .icon-btn,
  .pcard__logo,
  .file__tab,
  .file__sheet,
  .file__open,
  .file__back,
  .folder__scroll button,
  [tabindex]:not([tabindex="-1"]) {
    cursor: var(--cursor-pointer);
  }

  .file.is-open .file__tab,
  .file.is-open .file__sheet,
  .folder__scroll button:disabled {
    cursor: var(--cursor-default);
  }

  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }
}

/* Hover cursor (js/cursor.js): after resting on a clickable item for about
   a second, the native hover cursor is hidden and this drawn copy of the
   same arrow plays the original step animation, with a glow fading in. */
html.cursor-anim {
  --cursor-pointer: none;
}

.pixel-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  width: 36px;
  height: 38px;
  margin: -2px 0 0 -2px; /* arrow tip sits at (2, 2) in the artwork */
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
}

.pixel-cursor.is-visible {
  visibility: visible;
}

.pixel-cursor__icon {
  display: block;
  width: 36px;
  height: 38px;
  background: url('../assets/cursor-pixel-hover.svg') no-repeat 0 0 / contain;
  image-rendering: pixelated;
  transform-origin: 2px 2px;
}

/* Glow fades in, then the arrow starts its stepped nudge */
.pixel-cursor.is-visible .pixel-cursor__icon {
  animation:
    pixel-cursor-glow 0.3s ease-out forwards,
    pixel-cursor-active 0.44s step-end 0.12s infinite;
}

@keyframes pixel-cursor-glow {
  from {
    filter: drop-shadow(0 0 0 rgba(57, 77, 255, 0));
  }

  to {
    filter: drop-shadow(0 0 8px rgba(57, 77, 255, 0.65));
  }
}

/* Press effect */
.pixel-cursor.is-visible.is-down .pixel-cursor__icon {
  animation: none;
  filter: drop-shadow(0 0 8px rgba(57, 77, 255, 0.65));
  transform: scale(0.86);
}

/* Discrete retro pixel step movement */
@keyframes pixel-cursor-active {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(2px, 2px, 0);
  }

  50% {
    transform: translate3d(4px, 4px, 0);
  }

  75% {
    transform: translate3d(2px, 2px, 0);
  }
}

/* Interactive dot grid canvas (js/cursor.js): lit dots only; the resting
   grid is the body background, so an idle page paints nothing here. */
.dot-grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

main,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Custom 404 Page (Minimalist Centered Art Flow)
   ========================================================================== */

.page-404 {
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

/* 1. 404 span */
.page-404__badge-wrap {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.page-404__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--midnight);
}

/* 2. ASCII art container (extremely simple, no controls, simply holds the art) */
.ascii-art-container {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(24px, 4vw, 40px);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ascii-art-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  margin: 0 auto;
}

/* 3. page-404__title */
.page-404__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--midnight);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 14px;
}

/* 4. page-404__desc */
.page-404__desc {
  text-align: center;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 76px);
}

/* 5. page-404__recovery */
.page-404__recovery {
  max-width: 1080px;
  margin-inline: auto;
}

.page-404__recovery-head {
  text-align: center;
  margin-bottom: 32px;
}

.page-404__recovery-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 6px;
}

.page-404__recovery-sub {
  color: var(--ink-2);
  font-size: 1rem;
}

.page-404__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.recovery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid rgba(11, 18, 64, 0.1);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.recovery-card:hover {
  transform: translateY(-4px);
  border-color: var(--navigo);
  box-shadow: 0 16px 36px -10px rgba(57, 77, 255, 0.15);
}

.recovery-card__tag {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navigo);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.recovery-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 8px;
}

.recovery-card__desc {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 18px;
}

.recovery-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--midnight);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.recovery-card:hover .recovery-card__link {
  color: var(--navigo);
  gap: 10px;
}

/* Small 404 Footer */
.page-404__footer {
  padding-block: clamp(32px, 5vw, 48px);
  text-align: center;
  border-top: 1px solid rgba(11, 18, 64, 0.08);
  margin-top: clamp(48px, 6vw, 72px);
  position: relative;
  z-index: 1;
}

.page-404__credit {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.page-404__credit a {
  color: var(--midnight);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(57, 77, 255, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-404__credit a:hover {
  color: var(--navigo);
  text-decoration-color: var(--navigo);
}

/* ==========================================================================
   Legal Hub Page Styles
   ========================================================================== */

.legal-hub-page {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.legal-hero {
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.legal-hero__badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navigo-soft);
  color: var(--navigo-2);
  border: 1px solid rgba(57, 77, 255, 0.2);
}

.legal-badge--neutral {
  background: var(--paper-2);
  color: var(--ink-2);
  border-color: var(--paper-3);
}

.legal-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navigo);
}

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.legal-breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
  color: var(--navigo);
}

.legal-breadcrumb__sep {
  opacity: 0.4;
}

.legal-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}

.legal-hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-2);
  max-width: 68ch;
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-hero__meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(11, 18, 64, 0.03);
}

.legal-hero__meta-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.legal-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-hero__meta-item svg {
  color: var(--navigo);
  flex-shrink: 0;
}

.legal-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--paper-3);
  cursor: var(--cursor-pointer);
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-btn-sm:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Sticky Hub Navigation Tabs */
.legal-tabs-wrapper {
  position: sticky;
  top: calc(var(--nav-h) + clamp(12px, 1.8vw, 20px) + 8px);
  z-index: 900;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.legal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--paper-3);
  border-radius: 18px;
  box-shadow:
    0 10px 30px -8px rgba(11, 18, 64, 0.07),
    0 2px 6px rgba(11, 18, 64, 0.02);
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-tabs::-webkit-scrollbar {
  display: none;
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: var(--cursor-pointer);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.legal-tab-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.legal-tab-btn.is-active {
  background: var(--midnight);
  color: #ffffff;
  border-color: var(--midnight);
  box-shadow: 0 4px 14px rgba(11, 18, 64, 0.16);
}

.legal-tab-btn__badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 700;
}

.legal-tab-btn.is-active .legal-tab-btn__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Two-column layout */
.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* Sidebar */
.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + clamp(12px, 1.8vw, 20px) + 82px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--paper-3);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(11, 18, 64, 0.03);
}

.legal-sidebar-card__title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-item a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.legal-toc-item a:hover {
  background: var(--paper-2);
  color: var(--navigo);
}

.legal-toc-item.is-active a {
  background: var(--navigo-soft);
  color: var(--navigo-2);
  font-weight: 600;
}

.legal-toc-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.legal-toc-item.is-active .legal-toc-num {
  color: var(--navigo);
}

/* Officer Mini Card in Sidebar */
.legal-officer-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-officer-mini__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-officer-mini__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navigo);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.legal-officer-mini__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.legal-officer-mini__role {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.legal-officer-mini__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--navigo);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.legal-officer-mini__link:hover {
  text-decoration: underline;
}

/* Quick Filter / Search within Documents */
.legal-search-box {
  position: relative;
  margin-bottom: 24px;
}

.legal-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  border: 1.5px solid var(--paper-3);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(11, 18, 64, 0.02);
}

.legal-search-input:focus {
  border-color: var(--navigo);
  box-shadow: 0 0 0 4px var(--navigo-soft);
}

.legal-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.legal-search-results-info {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-3);
  display: none;
}

/* Document Articles / Cards */
.legal-doc-panel {
  display: none;
  animation: legalFadeIn 0.25s var(--ease-out) forwards;
}

.legal-doc-panel.is-active {
  display: block;
}

@keyframes legalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-doc-card {
  background: #ffffff;
  border: 1px solid var(--paper-3);
  border-radius: 24px;
  padding: clamp(28px, 4.5vw, 60px);
  box-shadow:
    0 16px 48px -12px rgba(11, 18, 64, 0.05),
    0 2px 8px rgba(11, 18, 64, 0.02);
  margin-bottom: 32px;
}

.legal-doc-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 36px;
}

.legal-doc-header__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navigo);
  margin-bottom: 8px;
}

.legal-doc-header__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 105;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-doc-header__sub {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.legal-doc-header__sub strong {
  color: var(--ink-2);
}

/* Legal Section inside card */
.legal-section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px dashed var(--paper-3);
  scroll-margin-top: calc(var(--nav-h) + 110px);
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.legal-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

.legal-section__num {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--paper-3);
  flex-shrink: 0;
}

.legal-section__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.legal-section__anchor {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  margin-left: 6px;
  cursor: var(--cursor-pointer);
}

.legal-section__head:hover .legal-section__anchor {
  opacity: 0.8;
}

.legal-section__anchor:hover {
  color: var(--navigo);
  opacity: 1;
}

/* Prose and text blocks */
.legal-prose p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-prose ul {
  margin: 16px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-prose li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.legal-prose li strong {
  color: var(--ink);
}

.legal-prose a {
  color: var(--navigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-prose a:hover {
  color: var(--navigo-2);
}

/* Officer Box (Grievance Redressal) */
.legal-officer-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--paper-2) 100%);
  border: 1.5px solid var(--paper-3);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  margin: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.legal-officer-box__identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-officer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e1f5fe;
  color: #0277bd;
  width: fit-content;
}

.legal-officer-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.legal-officer-role {
  font-size: 0.92rem;
  color: var(--ink-3);
  font-weight: 500;
}

.legal-officer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.legal-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.legal-contact-row svg {
  color: var(--navigo);
  flex-shrink: 0;
}

.legal-officer-box__address {
  background: #ffffff;
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.legal-officer-box__address-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SLA Timeline Cards (Grievance Redressal) */
.legal-sla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.legal-sla-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.legal-sla-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navigo);
}

.legal-sla-card__time {
  font-size: 1.45rem;
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  color: var(--midnight);
  margin-bottom: 4px;
}

.legal-sla-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.legal-sla-card__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* Two Column Compare (Privacy Info collection) */
.legal-grid--two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.legal-compare-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-3);
  border-radius: 16px;
  padding: 22px;
}

.legal-compare-card--direct {
  border-color: rgba(57, 77, 255, 0.3);
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
}

.legal-compare-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-compare-card__desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Callout Boxes */
.legal-callout {
  padding: 20px 24px;
  border-radius: 14px;
  margin: 20px 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.legal-callout--alert {
  background: #fff8f6;
  border: 1px solid #ffd8cc;
  color: #7a220f;
}

.legal-callout--alert strong {
  color: #5c1404;
}

.legal-callout--info {
  background: var(--navigo-soft);
  border: 1px solid rgba(57, 77, 255, 0.25);
  color: var(--midnight-2);
}

.legal-callout--neutral {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
}

/* Toast Notification for Link Copy */
.legal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--midnight);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(11, 18, 64, 0.24);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
}

.legal-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive queries */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .legal-officer-box {
    grid-template-columns: 1fr;
  }

  .legal-hero__meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-tab-btn {
    padding: 10px 16px;
    font-size: 0.86rem;
  }
}

/* Print Styles */
@media print {

  .nav,
  .footer,
  .legal-tabs-wrapper,
  .legal-sidebar,
  .legal-hero__actions,
  .legal-search-box,
  .loader,
  .dot-grid-canvas,
  .pixel-cursor {
    display: none !important;
  }

  .legal-doc-panel {
    display: block !important;
    page-break-after: always;
  }

  .legal-doc-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Close/home tab focus follows the tab's own shape (standalone folder page) */
.cs-home-tab:focus-visible {
  outline: none;
}

.cs-home-tab:focus-visible .cs-tab-bg-fill {
  fill: var(--navigo, #394dff);
}

/* ==========================================================================
   Case studies (homepage) — the folder floats up over the dimmed page.
   Only transform + opacity animate. While it is open, animations on the
   page underneath are paused so nothing behind the tint keeps repainting.
   ========================================================================== */
html.cs-sheet-open {
  overflow: hidden;
}

html.cs-sheet-open .nav *,
html.cs-sheet-open main * {
  animation-play-state: paused !important;
}

.cs-sheet {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.cs-sheet[hidden] {
  display: none;
}

/* See-through tint: the homepage stays visible behind the folder.
   No backdrop blur, which would re-render the whole screen every frame. */
.cs-sheet__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(57, 77, 255, 0.16), transparent 70%),
    radial-gradient(ellipse at 50% 45%, rgba(8, 11, 34, 0.62) 0%, rgba(4, 6, 20, 0.86) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cs-sheet.is-open .cs-sheet__scrim {
  opacity: 1;
  transition-duration: 0.45s;
}

/* Clicks outside the folder fall through to the scrim (which closes) */
.cs-sheet__panel {
  position: absolute;
  inset: 0;
  color: var(--ink);
  pointer-events: none;
}

.cs-sheet .cs-stage {
  position: absolute;
  inset: 0;
  padding-top: clamp(52px, 8vh, 80px);
  padding-bottom: 56px;
  pointer-events: none;
}

.cs-sheet .cs-folder {
  height: clamp(520px, calc(100dvh - 170px), 680px);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(0.94);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.4, 0, 1, 1);
}

.cs-sheet.is-open .cs-folder {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 0.05s, transform 0.75s cubic-bezier(0.22, 1.2, 0.36, 1) 0.05s;
}

/* Folder shadow tuned for the dark tint */
.cs-sheet .cs-back-cover {
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cs-sheet__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vh, 24px);
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-sheet.is-open .cs-sheet__hint {
  opacity: 1;
  transition: opacity 0.4s ease 0.5s;
}

.cs-sheet__hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-sheet__hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.72rem;
  color: #fff;
}

/* The close tab is a <button> here (an <a> on the standalone page) */
button.cs-home-tab {
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 768px) {
  .cs-sheet .cs-stage {
    padding-top: 52px;
    padding-bottom: 16px;
  }

  .cs-sheet .cs-folder {
    height: clamp(520px, calc(100dvh - 90px), 670px);
  }

  .cs-sheet__hint {
    display: none;
  }

  button.cs-home-tab {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-sheet__scrim,
  .cs-sheet__hint,
  .cs-sheet .cs-folder,
  .cs-sheet.is-open .cs-folder {
    transition: none !important;
  }
}

/* ==========================================================================
   Process flow — "From idea to product"
   Stepper with a filling progress line + a two-part panel for the active step
   ========================================================================== */
.flow {
  --flow-progress: 0;
  --flow-dur: 6500ms;
  margin-top: clamp(44px, 6vw, 72px);
}

/* ---- Track ---- */
.flow__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Line runs from the first node's centre to the last node's centre */
.flow__line {
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
}

.flow__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--midnight), var(--navigo));
  transform-origin: left center;
  transform: scaleX(var(--flow-progress));
  transition: transform 0.6s var(--ease-in-out);
}

.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 6px 6px;
  border: 0;
  background: none;
  text-align: center;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.flow__step:focus-visible {
  outline: none;
}

.flow__step:focus-visible .flow__node {
  outline: 3px solid var(--navigo);
  outline-offset: 4px;
}

.flow__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--paper-3);
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.flow__step:hover .flow__node {
  border-color: var(--navigo);
  color: var(--navigo);
  transform: translateY(-2px);
}

.flow__step.is-done .flow__node {
  background: var(--navigo);
  border-color: var(--navigo);
  color: #fff;
}

.flow__step.is-active .flow__node {
  background: var(--midnight);
  border-color: var(--midnight);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(57, 77, 255, 0.14), 0 12px 24px -10px rgba(11, 18, 64, 0.55);
  transform: none;
}

/* Timer ring around the active node (drives auto-advance) */
/* Square ring centred on the node (max-width: none overrides the global
   svg { max-width: 100% }, which squashed it and threw the arc off-centre) */
.flow__ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  max-width: none;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  fill: none;
  stroke: var(--navigo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  opacity: 0;
  pointer-events: none;
}

.flow.is-auto .flow__step.is-active .flow__ring {
  opacity: 1;
  animation: flow-timer var(--flow-dur) linear forwards;
}

.flow.is-paused .flow__ring,
.flow.is-offscreen .flow__ring {
  animation-play-state: paused !important;
}

@keyframes flow-timer {
  to {
    stroke-dashoffset: 0;
  }
}

.flow__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.3s ease;
}

.flow__caption {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.flow__step.is-active .flow__title,
.flow__step.is-done .flow__title {
  color: var(--ink);
}

/* ---- Panel ---- */
.flow__panel {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
}

.flow__lead {
  --flow-bg: var(--midnight);
  --flow-fg: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: 24px;
  background: var(--flow-bg);
  color: var(--flow-fg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 56px -28px rgba(11, 18, 64, 0.5);
  transition: color 0.4s ease, box-shadow 0.4s ease;
}

.flow__lead.is-light {
  border-color: rgba(11, 18, 64, 0.1);
  box-shadow: 0 28px 56px -32px rgba(57, 77, 255, 0.35);
}

/* Big outlined step number in the corner */
.flow__bignum {
  position: absolute;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(-34px, -2.4vw, -20px);
  font-size: clamp(9rem, 15vw, 13rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 110;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--flow-fg);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

.flow__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.flow__heading {
  margin-top: 14px;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 110;
}

.flow__desc {
  position: relative;
  margin-top: 18px;
  max-width: 34ch;
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  line-height: 1.55;
  opacity: 0.9;
}

.flow__controls {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}

.flow__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.flow__arrow:hover {
  background: color-mix(in srgb, currentColor 16%, transparent);
  border-color: color-mix(in srgb, currentColor 50%, transparent);
}

.flow__arrow:active {
  transform: scale(0.94);
}

.flow__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow__details {
  display: grid;
  align-content: start;
  gap: clamp(26px, 3vw, 36px);
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  box-shadow: 0 20px 40px -32px rgba(11, 18, 64, 0.35);
}

.flow__block-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.flow__points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.flow__points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--paper-3);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.flow__points li:last-child {
  padding-bottom: 0;
}

.flow__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--navigo-soft);
  color: var(--navigo);
}

.flow__check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow__chips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow__chips li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--midnight);
}

/* Content entrance when switching steps */
.flow__panel.is-switching .flow__kicker,
.flow__panel.is-switching .flow__heading,
.flow__panel.is-switching .flow__desc,
.flow__panel.is-switching .flow__bignum,
.flow__panel.is-switching .flow__points li,
.flow__panel.is-switching .flow__chips li {
  animation: flow-in 0.5s var(--ease-out) backwards;
}

.flow__panel.is-switching .flow__heading { animation-delay: 0.04s; }
.flow__panel.is-switching .flow__desc { animation-delay: 0.08s; }
.flow__panel.is-switching .flow__bignum { animation-name: flow-num-in; animation-duration: 0.7s; }
.flow__panel.is-switching .flow__points li:nth-child(1) { animation-delay: 0.06s; }
.flow__panel.is-switching .flow__points li:nth-child(2) { animation-delay: 0.1s; }
.flow__panel.is-switching .flow__points li:nth-child(3) { animation-delay: 0.14s; }
.flow__panel.is-switching .flow__chips li:nth-child(1) { animation-delay: 0.16s; }
.flow__panel.is-switching .flow__chips li:nth-child(2) { animation-delay: 0.2s; }
.flow__panel.is-switching .flow__chips li:nth-child(3) { animation-delay: 0.24s; }

@keyframes flow-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes flow-num-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* ---- Tablet / mobile ---- */
@media (max-width: 860px) {
  .flow__panel {
    grid-template-columns: 1fr;
  }

  .flow__lead {
    min-height: 300px;
  }

  .flow__caption {
    display: none;
  }
}

@media (max-width: 560px) {
  .flow__line {
    top: 19px;
  }

  .flow__step {
    gap: 10px;
    padding-inline: 2px;
  }

  .flow__node {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .flow__step.is-active .flow__node {
    box-shadow: 0 0 0 5px rgba(57, 77, 255, 0.14), 0 10px 20px -10px rgba(11, 18, 64, 0.55);
  }

  .flow__ring {
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
  }

  .flow__title {
    font-size: 0.78rem;
  }

  .flow__lead {
    min-height: 0;
    border-radius: 20px;
  }

  .flow__details {
    border-radius: 20px;
  }

  .flow__controls {
    padding-top: 24px;
  }

  .flow__arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow__line-fill,
  .flow__node {
    transition: none;
  }

  .flow__panel.is-switching * {
    animation: none !important;
  }
}

/* ==========================================================================
   FAQ (homepage) — native <details>, readable without JavaScript
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.faq__head .section__lede {
  margin-top: 18px;
}

.faq__list {
  border-top: 1px solid var(--paper-3);
}

.faq__item {
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: var(--cursor-pointer);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--navigo);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--paper-3);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  margin: -0.9px 0 0 -5px;
  border-radius: 2px;
  background: currentColor;
}

.faq__icon::after {
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] .faq__icon {
  background: var(--navigo);
  border-color: var(--navigo);
  color: #fff;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  max-width: 62ch;
  padding: 0 4px 24px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.faq__item[open] .faq__a {
  animation: faq-in 0.35s var(--ease-out);
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

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

  .faq__head {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a {
    animation: none;
  }
}

/* Plain-HTML fallbacks inside JS-built sections (read by crawlers and no-JS
   visitors). Hidden as soon as JS is running; the scripts then replace them. */
.js .pstatic {
  display: none;
}

.pstatic {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pstatic h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.pstatic p {
  margin-top: 6px;
  max-width: 70ch;
  opacity: 0.85;
}

.pdeck .pstatic {
  width: 100%;
  overflow: auto;
}
