/* ==========================================================================
   CODECURIOUS - SERVICES PAGE (/services)
   Loaded after the global layers (luxury, human, site-chrome) so the page
   owns its own surfaces. Class prefix: sv-  (avoids "-card" / "-btn-primary"
   suffixes that luxury.js decorates, and section[class*="hero"] in human.css).
   ========================================================================== */

:root {
  --sv-ink: #0B1B33;
  --sv-ink-2: #334155;
  --sv-ink-3: #526077;
  --sv-blue: #2563EB;
  --sv-blue-deep: #1D4ED8;
  --sv-blue-soft: #EEF4FF;
  --sv-line: #E3EAF5;
  --sv-line-blue: #DCE6FA;
  --sv-tint: #F4F7FF;
  --sv-navy-1: #0A1C38;
  --sv-navy-2: #0F2C57;
  --sv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sv-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --sv-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Page ground: match the band behind the floating nav to the intro tint */
body:has(.sv-page) {
  background: var(--sv-tint);
}

body:has(.sv-page) .lux-aurora {
  display: none !important;
}

.sv-page {
  background: #FFFFFF;
  color: var(--sv-ink);
  font-family: var(--sv-body);
  overflow-x: clip;
}

.sv-page ::selection {
  background: #BFDBFE;
  color: var(--sv-ink);
}

/* Reset at single-class weight so the component rules below (same weight, later) win */
.sv-page :where(h1, h2, h3, p, ul, ol) {
  margin: 0;
}

.sv-page :where(ul, ol) {
  list-style: none;
  padding: 0;
}

/* human.css forces every light-theme section paragraph to a dark slate with
   !important at (0,6,3) specificity. Scope this page's paragraph colours
   through the <main id="main-content"> id so they out-rank it. */
#main-content .sv-intro-lede,
#main-content .sv-build-lede,
#main-content .sv-study-lede {
  color: var(--sv-ink-2) !important;
}

#main-content .sv-trust-label {
  color: var(--sv-ink) !important;
}

#main-content .sv-step-desc {
  color: #C9D6EA !important;
}

#main-content .sv-cta-text {
  color: #EEF4FF !important;
}

.sv-page a:focus-visible {
  outline: 2px solid var(--sv-blue);
  outline-offset: 3px;
}

.sv-wrap {
  width: 100%;
  max-width: var(--container-max, 1560px);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 40px);
  box-sizing: border-box;
}

/* Small uppercase section label (part of the reference layout) */
.sv-label {
  display: block;
  font-family: var(--sv-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sv-blue);
  margin-bottom: 10px;
}

.sv-label--on-dark {
  color: #60A5FA;
}

/* Shared pill actions */
.sv-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 9999px;
  font-family: var(--sv-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--sv-ease), transform 0.25s var(--sv-ease);
}

.sv-action:active {
  transform: scale(0.98);
}

.sv-action--solid {
  background: var(--sv-blue);
  color: #FFFFFF;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.65);
}

.sv-action--solid:hover {
  background: var(--sv-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(29, 78, 216, 0.7);
}

.sv-action--ghost {
  background: #FFFFFF;
  color: var(--sv-ink);
  border: 1px solid #D5DFEE;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.12);
}

.sv-action--ghost:hover {
  border-color: #9DB7E8;
  transform: translateY(-1px);
}

.sv-action--ghost img {
  width: 22px;
  height: 22px;
}

.sv-action--sm {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
}

.sv-i-arrow {
  flex-shrink: 0;
  transition: transform 0.25s var(--sv-ease);
}

.sv-action:hover .sv-i-arrow {
  transform: translateX(3px);
}

.sv-i-arrow--blue {
  color: var(--sv-blue);
}

/* ==========================================================================
   01. INTRO
   ========================================================================== */
.sv-intro {
  position: relative;
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px);
  background:
    radial-gradient(55% 75% at 76% 42%, #DBE7FF 0%, rgba(219, 231, 255, 0) 70%),
    linear-gradient(180deg, var(--sv-tint) 0%, #EDF3FF 70%, #F3F7FF 100%);
}

.sv-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.sv-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 9999px;
  background: #E3ECFF;
  color: var(--sv-blue-deep);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.sv-intro-title {
  font-family: var(--sv-display);
  font-size: clamp(38px, 4.3vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sv-ink);
  margin-bottom: 22px;
}

.sv-intro-accent {
  color: var(--sv-blue);
}

.sv-intro-lede {
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: var(--sv-ink-2);
  max-width: 34em;
  margin-bottom: 34px;
}

.sv-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sv-intro-art {
  display: flex;
  justify-content: center;
}

/* Capped at the artwork's native width (558px) so it renders 1:1 and stays sharp.
   Raise this only when a higher-resolution source replaces the file. */
.sv-intro-art img {
  width: 100%;
  max-width: 558px;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .sv-intro-art img {
    animation: svArtIn 0.9s var(--sv-ease) both;
  }

  @keyframes svArtIn {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.985);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: none;
      filter: none;
    }
  }
}

/* ==========================================================================
   02. EXPERTISE RIBBON
   ========================================================================== */
.sv-ribbon {
  background: #FFFFFF;
  border-bottom: 1px solid var(--sv-line);
}

.sv-ribbon-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: 84px;
}

.sv-ribbon-label {
  font-family: var(--sv-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--sv-ink);
  white-space: nowrap;
  padding-right: clamp(20px, 3vw, 40px);
  border-right: 1px solid #D5DFEE;
  line-height: 2.2;
}

.sv-ribbon-list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.sv-ribbon-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-ink-2);
  white-space: nowrap;
}

.sv-ribbon-list img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* ==========================================================================
   03. WHAT WE BUILD
   ========================================================================== */
.sv-build {
  padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
  background:
    radial-gradient(40% 50% at 8% 30%, #F0F5FF 0%, rgba(240, 245, 255, 0) 70%),
    #FFFFFF;
}

.sv-build-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 3.5vw, 56px);
  align-items: start;
}

.sv-build-aside {
  position: sticky;
  top: 112px;
  padding-top: 28px;
}

.sv-build-title {
  font-family: var(--sv-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--sv-ink);
  margin-bottom: 18px;
}

.sv-build-lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--sv-ink-2);
}

.sv-build-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-row {
  display: grid;
  grid-template-columns: 44px 132px minmax(0, 1fr) 112px 148px 42px;
  grid-template-areas: "num thumb text tech1 tech2 go";
  align-items: center;
  column-gap: 20px;
  min-height: 84px;
  padding: 6px 20px 6px 26px;
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  background: #FFFFFF;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--sv-ease);
}

.sv-build-list li:nth-child(even) .sv-row {
  background: var(--sv-blue-soft);
  border-color: var(--sv-line-blue);
}

.sv-row:hover {
  border-color: #A9C2F2;
  background: #F7FAFF;
  transform: translateX(4px);
}

.sv-build-list li:nth-child(even) .sv-row:hover {
  background: #E6EEFF;
}

.sv-row-num {
  grid-area: num;
  font-family: var(--sv-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--sv-ink);
  font-variant-numeric: tabular-nums;
}

.sv-row-thumb {
  grid-area: thumb;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-row-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s var(--sv-ease);
}

.sv-row:hover .sv-row-thumb img {
  transform: scale(1.05);
}

.sv-row-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sv-row-title {
  font-family: var(--sv-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--sv-ink);
}

.sv-row-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sv-ink-3);
  max-width: 46ch;
}

/* The two tech labels become their own grid columns so they line up row to row */
.sv-row-stack {
  display: contents;
}

.sv-tech {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sv-ink);
  white-space: nowrap;
}

.sv-tech:first-child {
  grid-area: tech1;
}

.sv-tech:last-child {
  grid-area: tech2;
}

.sv-tech img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.sv-row-go {
  grid-area: go;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sv-blue);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.22);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--sv-ease);
}

.sv-row:hover .sv-row-go {
  background: var(--sv-blue);
  color: #FFFFFF;
  transform: translateX(2px);
}

/* ==========================================================================
   04. PROCESS
   ========================================================================== */
.sv-process {
  background: linear-gradient(100deg, var(--sv-navy-1) 0%, #0D2549 55%, var(--sv-navy-2) 100%);
  color: #FFFFFF;
  scroll-margin-top: 96px;
}

.sv-process-inner {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 4vw, 56px);
}

.sv-process-title {
  font-family: var(--sv-display);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.sv-swoosh-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.sv-swoosh {
  position: absolute;
  left: -2%;
  bottom: -0.38em;
  width: 160%;
  height: 0.42em;
  overflow: visible;
}

.sv-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.sv-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 4px;
}

.sv-step-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, #3B82F6 0%, #2563EB 55%, #1D4ED8 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
}

.sv-step-icon img {
  width: 26px;
  height: 26px;
}

.sv-step-title {
  font-family: var(--sv-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.sv-step-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #C9D6EA;
  max-width: 24ch;
}

.sv-step-sep {
  color: #60A5FA;
  padding-top: 32px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   05. FEATURED CASE STUDY
   ========================================================================== */
.sv-study {
  background: linear-gradient(180deg, #F7F9FE 0%, #F7F9FE 100%);
  padding-block: clamp(48px, 5vw, 72px);
}

.sv-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(28px, 3.5vw, 56px);
}

.sv-study-title {
  font-family: var(--sv-display);
  font-size: clamp(26px, 2.2vw, 33px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--sv-ink);
  margin-bottom: 16px;
  text-wrap: balance;
}

.sv-study-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--sv-ink-2);
  margin-bottom: 26px;
  max-width: 40ch;
}

.sv-study-art {
  display: flex;
  justify-content: center;
}

.sv-study-art img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

.sv-study-points-title {
  font-family: var(--sv-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--sv-ink);
  margin-bottom: 18px;
}

.sv-study-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--sv-ink-2);
}

.sv-study-points li + li {
  margin-top: 14px;
}

.sv-study-points svg {
  flex-shrink: 0;
  color: var(--sv-blue);
  margin-top: 1px;
}

/* ==========================================================================
   06. TRUSTED BY
   ========================================================================== */
.sv-trust {
  background: #FFFFFF;
  border-top: 1px solid var(--sv-line);
}

.sv-trust-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 56px);
  padding-block: 30px;
}

.sv-trust-label {
  font-family: var(--sv-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sv-ink);
  padding-right: clamp(24px, 3.5vw, 56px);
  border-right: 1px solid #D5DFEE;
  white-space: nowrap;
}

.sv-trust-list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.sv-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sv-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4B5870;
  white-space: nowrap;
}

.sv-trust-list svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ==========================================================================
   07. CTA BANNER
   ========================================================================== */
.sv-cta-shell {
  padding-block: 8px clamp(56px, 6vw, 88px);
  background: #FFFFFF;
}

.sv-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 3.2vw, 44px) clamp(28px, 5vw, 80px);
  border-radius: 24px;
  background: linear-gradient(100deg, #1E4FD6 0%, #2563EB 48%, #1D6CF2 100%);
  box-shadow: 0 22px 44px -22px rgba(29, 78, 216, 0.65);
}

.sv-cta-waves {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.sv-cta-title {
  font-family: var(--sv-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.sv-cta-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: #EEF4FF;
  max-width: 38ch;
}

.sv-cta-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: var(--sv-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 20px -12px rgba(7, 24, 39, 0.5);
  transition: transform 0.25s var(--sv-ease), box-shadow 0.25s ease;
}

.sv-cta-action svg {
  color: var(--sv-blue);
  transition: transform 0.25s var(--sv-ease);
}

.sv-cta-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(7, 24, 39, 0.55);
}

.sv-cta-action:hover svg {
  transform: translateX(3px);
}

.sv-cta-action:active {
  transform: scale(0.98);
}

.sv-page .sv-cta-action:focus-visible,
.sv-page .sv-process a:focus-visible {
  outline-color: #FFFFFF;
}

/* ==========================================================================
   08. RESPONSIVE
   ========================================================================== */
@media (max-width: 1320px) {
  .sv-row {
    grid-template-columns: 36px 112px minmax(0, 1fr) 104px 136px 40px;
    column-gap: 16px;
    padding-left: 20px;
  }

  .sv-ribbon-list li {
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  .sv-build-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sv-build-aside {
    position: static;
    padding-top: 0;
    max-width: 640px;
  }

  .sv-process-inner {
    grid-template-columns: 1fr;
  }

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

  .sv-study-points {
    grid-column: 1 / -1;
  }

  .sv-study-points ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
  }

  .sv-study-points li + li {
    margin-top: 0;
  }

  .sv-ribbon-inner,
  .sv-trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-block: 24px;
  }

  .sv-ribbon-label,
  .sv-trust-label {
    border-right: 0;
    padding-right: 0;
    line-height: 1.4;
  }

  .sv-ribbon-list,
  .sv-trust-list {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sv-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 14px;
  }

  .sv-cta-text {
    grid-column: 1;
    grid-row: 2;
  }

  .sv-cta-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .sv-intro-grid {
    grid-template-columns: 1fr;
  }

  .sv-intro-art {
    order: -1;
  }

  .sv-intro-art img {
    max-width: 520px;
  }

  .sv-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }

  .sv-step-sep {
    display: none;
  }

  .sv-study-grid {
    grid-template-columns: 1fr;
  }

  .sv-study-art {
    order: -1;
  }
}

@media (max-width: 760px) {
  .sv-row {
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    grid-template-areas:
      "thumb text go"
      "thumb stack go";
    column-gap: 14px;
    row-gap: 10px;
    padding: 14px 14px 14px 12px;
  }

  .sv-row:hover {
    transform: none;
  }

  .sv-row-num {
    display: none;
  }

  .sv-row-thumb {
    height: 56px;
  }

  .sv-row-stack {
    grid-area: stack;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .sv-tech {
    font-size: 13.5px;
  }

  .sv-tech img {
    width: 18px;
    height: 18px;
  }

  .sv-row-title {
    font-size: 16.5px;
  }

  .sv-row-desc {
    font-size: 14px;
  }

  .sv-row-go {
    width: 36px;
    height: 36px;
  }

  .sv-cta {
    grid-template-columns: 1fr;
    row-gap: 20px;
    text-align: left;
  }

  .sv-cta-text,
  .sv-cta-action {
    grid-column: 1;
    grid-row: auto;
  }

  .sv-cta-action {
    justify-self: start;
  }

  .sv-study-points ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sv-intro-actions .sv-action {
    width: 100%;
    justify-content: center;
  }

  .sv-ribbon-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }

  .sv-ribbon-list li {
    white-space: normal;
  }

  .sv-trust-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .sv-trust-list li {
    font-size: 17px;
  }

  .sv-trust-label {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-page *,
  .sv-page *::before,
  .sv-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
