/* ==========================================================================
   Singularity Hypertech — APPROACH PAGE sections
   Figma: Approach Page (1414:4184) — 1440x10624.
   Most of this page is assembled from sections that already exist:
     .brands / .cta / .orb*      -> css/shared.css
     .choose*                    -> css/home/home.css  (the four phases)
     .process / .timeline / .tl* -> css/home/home.css  (engagement models)
     .why-head / .dim2           -> css/home/home.css  (proven-results heading)
     .insights / .insight-*      -> css/shared.css     (latest insights)
     .ah-* hero orbit            -> css/hero-orbit.css
   js/main.js drives the choose scroll-spy, the timeline glow and the marquee.
   Only what follows is genuinely new to this page.
   Page-specific images live in /images under approach-*.
   ========================================================================== */

/* ==========================================================================
   HERO — Frame 2147227694, 1440x601, bg #010214
   ========================================================================== */
.apr-hero {
  position: relative;
  background: #010214;
  color: #8d90a5;
  overflow: hidden;
  /* Figma "Our Approach" hero: 1440x601, copy block vertically centred */
  min-height: 601px;
  display: flex;
  align-items: center;
  padding: 0;
}
.apr-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 40px;
  align-items: center;
}
.apr-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px; /* Figma */
}
.apr-hero-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px; /* Figma */
}
/* the shared breadcrumb is centred for the generic page hero; here it sits
   flush left above the title */
.apr-hero .crumbs {
  justify-content: flex-start;
  margin-bottom: 0;
}
.apr-hero h1 {
  margin: 0;
  font-family: var(--font-tight);
  font-size: 65px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.058em;
  background: linear-gradient(
    167.27deg,
    #f0e4ff 2.68%,
    #f9f4ff 30.5%,
    rgba(255, 255, 255, 0.4)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.apr-hero-lede {
  max-width: 525px;
  margin: 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: #b9bbc6; /* Figma */
}
.apr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================================================
   OUR PROJECT PHILOSOPHY — Section (1414:4678), 1440x1412, bg #f2f2f2
   Four white tiles walking down the right half in a staircase.
   ========================================================================== */
.apr-philosophy {
  background: #f2f2f2;
  padding: 100px 0 120px;
}
.apr-phil-grid {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 60px;
  align-items: start;
}
.apr-phil-copy h2 {
  margin: 0;
  font-family: var(--font-tight);
  font-size: 65px; /* site-wide section heading size (desktop); Figma 80px */
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--title-dark);
}
.apr-phil-copy p {
  margin: 28px 0 0;
  /* Figma is 18px; at the site's 16px this measure gives its breaks
     ("...built, not a / report to be delivered... built on / values of...") */
  max-width: 472px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  color: var(--para-dark);
}
.apr-phil-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
/* the staircase: one card per row, alternating column */
.apr-phil-card {
  background: #fff;
  padding: 26px 26px 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.apr-phil-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.apr-phil-card:nth-child(2) { grid-column: 2; grid-row: 2; }
.apr-phil-card:nth-child(3) { grid-column: 1; grid-row: 3; }
.apr-phil-card:nth-child(4) { grid-column: 2; grid-row: 4; }
.apr-phil-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.apr-phil-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.apr-phil-card h3 {
  margin: auto 0 0;
  padding-top: 40px;
  font-family: var(--font-tight);
  font-size: 24px; /* Figma card titles ~25px */
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--title-dark);
}
.apr-phil-card p {
  margin: 12px 0 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.55;
  color: var(--para-dark);
}

/* ==========================================================================
   PROVEN RESULTS — Section (1414:4991), 1440x870, white
   ========================================================================== */
.apr-proven {
  background: #fff;
  padding: 110px 0 120px;
}
/* heading, .dim2 tail and lede all come from .why-head in css/home/home.css.
   Figma: 80px headline in three lines ("Our Approach with / Proven Results.
   Built for / production from day one."); at the site's 65px that break needs a
   ~690px measure. The lede is 18px in Figma; kept at 16px with a ~610px
   measure so it breaks after "pilots to", "systems - with" and "built". */
.apr-proven-head {
  max-width: 692px;
}
.apr-proven-head h2 {
  font-size: 65px;
  font-weight: 500;
  line-height: 1.1;
}
.apr-proven-head p {
  max-width: 610px;
}
.apr-proven-cards {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.apr-proven-card {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 26px 26px 30px;
}
.apr-proven-glyph {
  display: block;
  width: 28px;
  height: 28px;
}
.apr-proven-card h3 {
  margin: 26px 0 0;
  font-family: var(--font-tight);
  font-size: 22px; /* Figma card titles ~23px, regular weight */
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--title-dark);
}
.apr-proven-card p {
  margin: 14px 0 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.65;
  color: var(--para-dark);
}

/* Figma buttons: 220x60 / 225x60 */
.apr-hero-actions .btn {
  min-height: 60px;
  padding: 0 18px;
  justify-content: center;
}
.apr-hero-actions .btn-primary { min-width: 220px; }
.apr-hero-actions .btn-glass { min-width: 225px; }

/* ---- Hero art: Figma export, 763x599, logo at (402, 356) in the art ---- */
.apr-hero-stage {
  position: relative;
  width: 100%;
  max-width: 763px;
  aspect-ratio: 763 / 599;
  margin: 0 auto;
}
.apr-hero-frame {
  position: absolute;
  inset: 0;
}
/* stacked art layers, all in the 763x599 frame box */
.apr-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.apr-hero-figma { z-index: 1; }
/* radar wedges turn around their vertex (art 398, 356), clockwise */
.apr-sweep {
  z-index: 2;
  transform-origin: 52.16% 59.43%;
  animation: aprSweep 16s linear infinite;
  will-change: transform;
}
@keyframes aprSweep {
  to { transform: rotate(360deg); }
}
.apr-core { z-index: 3; }
/* Figma shelf under the orb (not in the art export): horizon at art y 483,
   notch below the logo; the 2400-wide plate runs off both sides */
.apr-shelf {
  position: absolute;
  top: 0;
  left: -91.74%;    /* -700 / 763 */
  width: 314.55%;   /* 2400 / 763 */
  height: 100%;
  max-width: none;
  z-index: 4;
  pointer-events: none;
}
/* pulse ripples behind the art, same toned-down loop as the About hero */
.apr-ripple {
  position: absolute;
  left: 52.69%;
  top: 59.43%;
  width: 20.6%;   /* 157px at 763 wide */
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #6645eb 0%, #010214 100%);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 78%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 78%, transparent 100%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.apr-ripple-1 { animation: aprRipple1 4s linear infinite; }
.apr-ripple-2 { animation: aprRipple2 4s linear infinite; }
@keyframes aprRipple1 {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.22; }
  to   { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@keyframes aprRipple2 {
  from { transform: translate(-50%, -50%) scale(1);   opacity: 0.14; }
  to   { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .apr-sweep, .apr-ripple { animation: none; }
}
/* Figma "Ellipse Blur 2": #bb0fff, 193px, blur 64, 60% — centred on the logo.
   Painted as a radial gradient (a CSS blur of that radius washes out). */
.apr-hero-glow {
  position: absolute;
  left: 52.69%;   /* 402 / 763 */
  top: 59.43%;    /* 356 / 599 */
  width: 52%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(187, 15, 255, 0.34), rgba(187, 15, 255, 0.12) 50%, rgba(187, 15, 255, 0) 100%);
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 1081px) {
  .apr-hero-inner { position: static; }
  .apr-hero-copy { position: relative; z-index: 2; }
  .apr-hero .apr-hero-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  /* right-aligned in the 1440 frame: x = 1440 - 763 = 677 = 50% - 43px */
  .apr-hero .apr-hero-stage {
    position: absolute;
    left: calc(50% - 43px);
    top: 0;
    width: 763px;
    max-width: none;
    height: 599px;
    margin: 0;
  }
}
@media (min-width: 1081px) and (max-width: 1339px) {
  .apr-hero .apr-hero-stage {
    left: auto;
    right: -60px;
    transform: scale(0.85);
    transform-origin: 100% 100%;
    top: auto;
    bottom: 0;
  }
}
/* Tablets/phones: crop around the logo, its chips and the shelf notch
   (art x 152-652, y 110-580), full bleed, feathered so the art box never shows */
@media (max-width: 1080px) {
  .apr-hero-stage {
    width: calc(100% + 40px);
    max-width: 620px;
    left: -20px;
    aspect-ratio: 500 / 470;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 62%, transparent 100%);
  }
  .apr-hero-frame {
    inset: auto;
    left: -30.4%;    /* 152 / 500 */
    top: -23.4%;     /* 110 / 470 */
    width: 152.6%;   /* 763 / 500 */
    height: 127.45%; /* 599 / 470 */
  }
}
@media (min-width: 661px) and (max-width: 1080px) {
  .apr-hero-stage { left: 0; width: 100%; }
}
