/* Page-only styles for home.html — loaded after styles.css, only on this page.
   Values follow the designer's PDF export of "Axiora Vision Group" (1440 frame);
   desktop sizes scale as min(X vw, Y px) with X = Y / 14.4. */

/* ---------- type: the design sets Inter Display with no tracking ---------- */
.display, .statement, .h2, .lead, .h3, .stat dd, .eyebrow,
.hero .display, .selector--animated .selector-intro .h2 { letter-spacing: 0; }

@media (min-width: 768px) {
  /* ---------- hero (frame 1440×1059: text block at 321, button ends at 770) ---------- */
  /* the who-we-are eyebrow sits 332px below the button (design y 1102) */
  .hero--home { padding-bottom: min(16.18vw, 233px); }

  /* ---------- who we are ---------- */
  /* eyebrow 1102 → title 1154 → lead 1261 → stats 1537 → "Our Companies" 1752 → logos 1812;
     the selector section starts at 2310 */
  .who { padding-top: min(6.94vw, 100px); padding-bottom: min(31.6vw, 455px) !important; }
  .who .section-head { gap: min(1.667vw, 24px); margin-bottom: min(3.61vw, 52px); }
  /* blurred lens: dark from just under the hero button, glow centred 200px above the selector */
  .who::before { top: calc(min(18.26vw, 263px) * -1); bottom: calc(min(5.9vw, 85px) * -1); }
  .divisions { gap: min(2.78vw, 40px); }
  .divisions ul { gap: 24px min(12.36vw, 178px); }
}

/* the sky photo runs on under the blur's top edge to the design's 1059 and fades into ink there,
   so the blur never meets a hard edge where the hero ends */
@media (min-width: 768px) {
  .hero--home .hero-media { bottom: calc(min(16.18vw, 233px) * -1); background: var(--ink); }
  .hero--home .hero-media img, .hero--home .hero-media::after { height: calc(100% - min(12.15vw, 175px)); }
  /* long eased fade (like off.site): the sky melts into the ink over the photo's lower ~40%, no visible horizon */
  .hero--home .hero-media img { -webkit-mask-image: linear-gradient(#000 60%, rgba(0,0,0,.94) 66%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.58) 79%, rgba(0,0,0,.34) 86%, rgba(0,0,0,.14) 93%, rgba(0,0,0,.04) 97%, transparent); mask-image: linear-gradient(#000 60%, rgba(0,0,0,.94) 66%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.58) 79%, rgba(0,0,0,.34) 86%, rgba(0,0,0,.14) 93%, rgba(0,0,0,.04) 97%, transparent); }
  .hero--home .hero-media::after { bottom: auto; }
}

/* hero colour as composed in the design (fills of "Hero image", bottom → top): the #fafafa page,
   the photo at 80% opacity, then the sky gradient on top (40% → 60% @38.8% → 60% @63.8% → 0%).
   ::before is the page underlay (beneath the photo), ::after the gradient; both get the photo's
   fade-out mask so the whole stack melts into the ink together. */
.hero--home .hero-media img { opacity: .8; }
.hero--home .hero-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fafafa; }
.hero--home .hero-media::after {
  background: linear-gradient(180deg, rgb(62 124 172 / .4) 0%, rgb(62 124 172 / .6) 38.8%, rgb(62 124 172 / .6) 63.8%, rgb(62 124 172 / 0) 100%);
}
@media (min-width: 768px) {
  .hero--home .hero-media::before { bottom: auto; height: calc(100% - min(12.15vw, 175px)); }
  .hero--home .hero-media::before, .hero--home .hero-media::after { -webkit-mask-image: linear-gradient(#000 60%, rgba(0,0,0,.94) 66%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.58) 79%, rgba(0,0,0,.34) 86%, rgba(0,0,0,.14) 93%, rgba(0,0,0,.04) 97%, transparent); mask-image: linear-gradient(#000 60%, rgba(0,0,0,.94) 66%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.58) 79%, rgba(0,0,0,.34) 86%, rgba(0,0,0,.14) 93%, rgba(0,0,0,.04) 97%, transparent); }
}


/* the design wraps these lines greedily (no balancing) */
.selector-intro .h2, .statement { text-wrap: wrap; }

@media (min-width: 768px) {
  /* ---------- why partner: four 318px cards, 30px apart, hairline dividers centred in the gaps;
     top/bottom rules span each card only ---------- */
  .benefits { column-gap: min(2.083vw, 30px); }
  .benefit + .benefit { border-left: 0; }
  .benefit + .benefit::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(min(1.11vw, 16px) * -1);
    width: 1px; background: var(--line);
  }
  .benefit > div { max-width: 286px; }

  /* ---------- products: description 644 wide, tabs 32 below it, frame 64 below the tabs ---------- */
  #products .section-head { margin-bottom: min(2.22vw, 32px); }
  #products .section-head .body { max-width: min(44.72vw, 644px); }
  #products .tabs { margin-bottom: min(4.44vw, 64px); }
  /* B3 Holding triptych crops as placed in the design (panel 2: 674×1012 image at -132,-209) */
  /* panel 1: 1142×762 image at -308,-14 → cover (height 720) scaled ×1.0583 about (50%, 33.35%),
     clipped back to the panel */
  #products .triptych img:nth-child(1) {
    object-position: 44.49% 50% !important;
    transform: scale(1.0583); transform-origin: 50% 33.35%;
    clip-path: inset(1.837% 2.755% 3.67% 2.755%);
  }
  #products .triptych img:nth-child(2) {
    transform: scale(1.4056); transform-origin: 61.7% 71.6%;
    clip-path: inset(20.65% 11.06% 8.2% 17.8%);
  }

  /* ---------- trusted by: logos at their design sizes across a 1373px row ---------- */
  .logos ul { margin-top: min(4.51vw, 65px); margin-inline: calc(min(.42vw, 6px) * -1); min-height: min(3.19vw, 46px); }
  .logos li:nth-child(1) svg { height: min(2.31vw, 33.2px); }
  .logos li:nth-child(2) svg { height: min(1.39vw, 20px); }
  .logos li:nth-child(3) svg { height: min(1.81vw, 26px); }
  .logos li:nth-child(4) svg { height: min(1.74vw, 25px); }
  .logos li:nth-child(5) svg { height: min(2.71vw, 39px); }
  .logos .impex { height: min(3.19vw, 46px); max-height: none; width: auto; }

  /* ---------- statement band: 80px text in a 1300px box ---------- */
  .statement-band .statement { max-width: min(90.28vw, 1300px); }
}

/* business selector card (design frame "IT Services" 720×720: copy 497 wide at 60,69; no tracking) */
.biz-desc { letter-spacing: 0; width: 69.03cqw; top: 9.58cqw; }
.biz-title { letter-spacing: 0; }

/* ---------- scroll-filled words: unlit tones sampled from the PDF ---------- */
.js .selector-intro .scrub[data-lit="dark"] .w { color: #7e7f7f; }
.js .selector-intro .scrub[data-lit="dark"] .w.on { color: var(--ink); }
.statement-band .scrub[data-lit="light"] .w { color: rgba(255,255,255,.85); }

@media (min-width: 768px) {
  /* statement band: the PDF renders the 80px lines at weight 600 (line 2 spans 1280px) */
  .statement-band .statement { font-weight: 600; }

  /* contact form geometry now lives in styles.css (shared by every page) */
}

/* why-partner icons: hairline strokes (~1.7px at the 54px design size) */
.benefit .icon svg { stroke-width: .9; }
@media (max-width: 767px) { .benefit .icon svg { stroke-width: 1.1; } }
