/* Services-only styles moved unchanged from pineverse.css. */
/* ══════════════════════════════════════════════════════
   OUR SERVICES   —   Figma frame 243:266 (1440 × 5345)

   Built 1:1 from the Figma frame:
     hero      262:927   1440 × 810
     slides    272:1233  four × (1440 × 960)
     footer    243:269

   Every gutter uses the canvas lock
     max(<figmaPx>, calc(50% - (720px - <figmaPx>)))
   so it is the exact Figma pixel below 1440 and stays
   pinned to a centred 1440 canvas above it.

   The four slides are lightshiprv.com-style stacking
   cards: plain `position: sticky` siblings, with JS only
   writing a 0→1 --sticky-progress per card. All the
   motion is in CSS, so the stack still reads correctly
   if the script never runs.
══════════════════════════════════════════════════════ */

.services-page {
  /* ── Figma gutters ─────────────────────────────── */
  --sv-hero-l:  var(--pv-gutter);
  --sv-hero-r:  var(--pv-gutter);
  --sv-slide-l: var(--pv-gutter);
  --sv-slide-r: var(--pv-gutter);

  /* ── One type scale for the whole page ─────────── */
  --sv-fs-hero:  clamp(26px, 3.334vw, 48px);    /* 48 / 1440 */
  --sv-fs-head:  clamp(32px, 3.889vw, 56px);    /* 56 / 1440 */
  --sv-fs-copy:  clamp(14px, 1.042vw, 15px);    /* 15 / 1440 */
  --sv-fs-cta:   clamp(16px, 1.321vw, 19.02px); /* 19.016 / 1440 */

  --sv-lime: #B7F66E;
  --sv-ink:  #021717;

  /* ── Sections that are NOT in the Figma frame (intro / pillars / CTA) ──
     They borrow the About page's rhythm and type scale verbatim, so a
     section break reads identically across About, Job and Services. */
  --sv-sec-g:   var(--pv-gutter);

  --sv-section: clamp(72px, 8.34vw, 120px);    /* = --ab-section  */
  --sv-gap-lg:  clamp(36px, 4.17vw, 60px);     /* = --ab-gap-lg   */
  --sv-gap-md:  clamp(20px, 2.22vw, 32px);     /* = --ab-gap-md   */
  --sv-gap-sm:  clamp(12px, 1.39vw, 20px);     /* = --ab-gap-sm   */

  --sv-fs-h2:   clamp(28px, 3.34vw, 48px);     /* = .ab-careers-heading */
  --sv-fs-h3:   24px;                          /* = .ab-value-title     */
  --sv-fs-body: 16px;                          /* = .ab-value-copy      */
  --sv-lh-body: 1.45;

  background: #050b0b;
  color: #ffffff;
  overflow-x: clip;
}

.services-page em {
  font-family: 'Behind The Nineties', 'Host Grotesk', serif;
  font-style: italic;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  color: var(--sv-lime);
}

/* ══════════════════════════════════════════════════════
   HERO — 262:927
══════════════════════════════════════════════════════ */
.sv-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  isolation: isolate;
}

.sv-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* the Figma still is already dark — this only guarantees
   the headline keeps contrast on every frame of the clip */
.sv-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2,23,23,0.55) 0%, rgba(2,23,23,0.10) 34%, rgba(2,23,23,0.62) 100%);
}

.sv-hero-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: var(--sv-hero-l);
  padding-right: var(--sv-hero-r);
}

/* 272:928 + 272:929 sit on one row: y = 404, x = 76 and x = 796 (right aligned) */
.sv-hero-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-hero);
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.04em;     /* -1.92px @ 48px */
  text-transform: capitalize;
  color: #ffffff;
}

.sv-hero-line { display: block; }
.sv-hero-line--start { text-align: left; }
.sv-hero-line--end   { text-align: right; }

/* ══════════════════════════════════════════════════════
   STACKING SLIDES — 272:1233 "Frame 263"
══════════════════════════════════════════════════════ */
.sv-stack {
  position: relative;
  width: 100%;
  background: #050b0b;
}

.sv-card {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center top;
  will-change: transform;
  backface-visibility: hidden;

  /* lightship: the covered card scales back + lifts slightly */
  border-radius: calc(var(--sticky-progress, 0) * 26px);
  transform:
    scale(calc(1 - var(--sticky-progress, 0) * 0.12))
    translate3d(0, calc(var(--sticky-progress, 0) * -3%), 0);
}

/* the covered card also dims, so the stack reads as depth */
.sv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #03100e;
  opacity: calc(var(--sticky-progress, 0) * 0.55);
}

.sv-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Figma: Rectangle 81 — rgba(2,23,23,0.59) */
.sv-card-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(2, 23, 23, 0.59);
}

.sv-card-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* heading — x = 70, vertically centred (y 415 → 549 of 960) */
.sv-card-heading {
  position: absolute;
  left: var(--sv-slide-l);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: min(var(--sv-head-w, 545px), calc(100% - var(--sv-slide-l) - var(--sv-slide-r)));
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-head);
  font-weight: 400;
  line-height: 1.156;
  letter-spacing: 0;
  text-transform: capitalize;
  color: #ffffff;
}

/* copy + CTA share one row: copy at x = 70, CTA right edge 1384,
   both bottom-aligned at y ≈ 796 of 960  →  164px from the bottom */
.sv-card-bottom {
  position: absolute;
  left: var(--sv-slide-l);
  right: var(--sv-slide-r);
  bottom: clamp(52px, 17.08vh, 164px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.sv-card-copy {
  margin: 0;
  width: var(--sv-copy-w, 533px);
  max-width: 100%;
  flex: 0 1 auto;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-copy);
  font-weight: 400;
  line-height: 1.59;
  color: #ffffff;
}

/* CTA — 272:968 / 937 / 947 / 957 : 381 × 62, r 72.629 */
.sv-card-cta {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 381px;
  max-width: 100%;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39.19px 0 36.41px;   /* arrow box starts at 325.61 */
  border-radius: 72.629px;
  border: 0.59px solid var(--sv-lime);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.22s ease;
}

.sv-card-cta-text {
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-cta);
  font-weight: 400;
  line-height: 1.16;
  /* Figma: linear-gradient(96.69deg, #FFFFFF 53.6%, #B7F66E 95.5%) */
  background: linear-gradient(96.69deg, #FFFFFF 53.62%, #B7F66E 95.53%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sv-card-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16.204px;
  height: 16.204px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.sv-card-cta-arrow svg { width: 100%; height: 100%; display: block; }

.sv-card-cta:hover {
  background: rgba(183, 246, 110, 0.14);
  transform: translateY(-1px);
}

.sv-card-cta:hover .sv-card-cta-arrow { transform: translate(2px, -2px); }

.sv-card-cta:focus-visible {
  outline: 2px solid var(--sv-lime);
  outline-offset: 3px;
}

/* footer clears the sticky stack. No background override any more — the
   `.pv-footer` CTA band is cream by design and must stay cream here too. */
.services-page > .pv-footer { position: relative; z-index: 6; }

/* ══════════════════════════════════════════════════════
   INTRO · PILLARS · CTA
   Not part of Figma 243:266 — kept from the earlier
   build. Every vertical gap here is one of the four
   rhythm steps above, which are byte-identical to the
   About page's, so the section breaks match across the
   whole site.
══════════════════════════════════════════════════════ */
.sv-section {
  position: relative;
  z-index: 3;
  background: #050b0b;
  padding: var(--sv-section) var(--sv-sec-g);
}

/* the intro sits directly under the hero and hands off to the
   sticky stack, so it only owns its own top/bottom rhythm */
.sv-intro { padding-bottom: var(--sv-section); }

/* ── Tag pill — same component as .ab-tag ── */
.sv-tag {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  height: 51px;
  padding: 0 18px;
  border-radius: 7px;
  background: #e5ffe5;
}

.sv-tag-dot {
  width: 15px;
  height: 13px;
  border-radius: 3px;
  background: var(--sv-lime);
  flex-shrink: 0;
}

.sv-tag-label {
  font-family: 'Host Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 116%;
  color: var(--sv-ink);
  white-space: nowrap;
}

/* ── Shared section heading / copy ── */
.sv-section-heading {
  margin: var(--sv-gap-md) 0 0;
  max-width: 900px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-h2);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: #ffffff;
}

.sv-section-copy {
  margin: var(--sv-gap-sm) 0 0;
  max-width: 741px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-body);
  font-weight: 400;
  line-height: var(--sv-lh-body);
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sv-accent { color: #18c03d; font-weight: 600; }

/* ── Pillars ── */
.sv-pillars-grid {
  margin-top: var(--sv-gap-lg);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.sv-pillar {
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-pillar:hover {
  border-color: rgba(183, 246, 110, 0.35);
  transform: translateY(-4px);
}

.sv-pillar-num {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 116%;
  letter-spacing: 0.1em;
  color: var(--sv-lime);
}

.sv-pillar-title {
  margin: var(--sv-gap-md) 0 0;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-h3);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: #ffffff;
}

.sv-pillar-copy {
  margin: var(--sv-gap-sm) 0 0;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-body);
  font-weight: 400;
  line-height: var(--sv-lh-body);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Closing CTA panel ── */
.sv-cta {
  position: relative;
  z-index: 3;
  /* .sv-pillars already pays --sv-section on its bottom, so the panel only
     owns the gap down to the footer */
  margin: 0 var(--sv-sec-g) var(--sv-section);
  padding: var(--sv-section) clamp(28px, 4vw, 64px);
  border-radius: 32px;
  background: var(--sv-lime);
  color: var(--sv-ink);
  text-align: center;
}

.sv-cta-heading {
  margin: 0;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-h2);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: var(--sv-ink);
}

.sv-cta-copy {
  margin: var(--sv-gap-sm) auto 0;
  max-width: 620px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-body);
  font-weight: 400;
  line-height: var(--sv-lh-body);
  letter-spacing: -0.01em;
  color: rgba(2, 23, 23, 0.75);
}

.sv-cta-row {
  margin-top: var(--sv-gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}

.sv-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 62px;
  padding: 0 38px;
  border-radius: 63px;
  background: var(--sv-ink);
  color: var(--sv-lime);
  text-decoration: none;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-body);
  font-weight: 500;
  line-height: 116%;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.sv-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(2, 23, 23, 0.28);
}

.sv-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Host Grotesk', sans-serif;
  font-size: var(--sv-fs-body);
  font-weight: 400;
  line-height: 116%;
  letter-spacing: -0.01em;
  color: var(--sv-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: gap 0.25s ease;
}

.sv-cta-link svg { width: 20px; height: 20px; }
.sv-cta-link:hover { gap: 15px; }

/* ══════════════════════════════════════════════════════
   SERVICES — RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .sv-card-cta { width: 330px; padding: 0 30px 0 30px; }
  .sv-card-bottom { gap: 28px; }
  .sv-pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .services-page {
    --sv-hero-l: var(--pv-gutter);
    --sv-hero-r: var(--pv-gutter);
    --sv-slide-l: var(--pv-gutter);
    --sv-slide-r: var(--pv-gutter);
  }
  .sv-card-cta { width: 300px; height: 58px; }
  .sv-card-copy { width: auto; max-width: 52%; }
  .services-page { --sv-sec-g: var(--pv-gutter); }
}

@media (max-width: 860px) {
  .sv-hero-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sv-hero-line--end { text-align: left; }

  .sv-card-heading {
    top: 40%;
    width: calc(100% - var(--sv-slide-l) - var(--sv-slide-r));
  }

  .sv-card-bottom {
    bottom: clamp(40px, 9vh, 88px);
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .sv-card-copy { width: 100%; max-width: 100%; }

  .sv-card-cta {
    width: 100%;
    max-width: 381px;
    height: 56px;
    padding: 0 26px;
  }

  .sv-pillars-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-cta { border-radius: 24px; }
  .sv-cta-btn { height: 56px; padding: 0 30px; }
}

@media (max-width: 560px) {
  .services-page {
    --sv-hero-l: var(--pv-gutter);
    --sv-hero-r: var(--pv-gutter);
    --sv-slide-l: var(--pv-gutter);
    --sv-slide-r: var(--pv-gutter);
  }
  .sv-hero, .sv-card { min-height: 560px; }
  .sv-card-heading { top: 38%; }
  .services-page { --sv-sec-g: var(--pv-gutter); }
  .sv-cta-row { flex-direction: column; align-items: stretch; }
  .sv-cta-btn { justify-content: center; }
  .sv-cta-link { justify-content: center; }
}

/* Stacking depends on transform + sticky; with reduced motion keep the
   sticky stack but drop the scale/translate so nothing moves under you. */
@media (prefers-reduced-motion: reduce) {
  .sv-card {
    transform: none;
    border-radius: 0;
  }
  .sv-card::after { opacity: 0; }
  .sv-card-cta,
  .sv-card-cta-arrow,
  .sv-pillar,
  .sv-cta-btn,
  .sv-cta-link { transition-duration: 0.01ms !important; }
}

