/* ==========================================================================
   Nishtech 2026 — ABOUT
   --------------------------------------------------------------------------
   Loads after main-2026.css and landing-2026.css. The hero is the landing
   hero (.lp-hero) verbatim; everything below rebuilds the seven components
   from nishtech.com/About against the 2026 styleguide.

   Measurements taken from the live page at a 2159px section width, expressed
   as ratios so they hold at any container size:

     collage row      content 1444 wide, cells 445 tall, 20px gaps
     collage row 1    two cells of 711        (1444/445 = 3.245 aspect)
     collage row 2    three cells of 468
     founder          square photo ~40%, gradient panel ~60%
     leadership card  421 wide
     values           image left, accordion right, heading left-aligned

   What deliberately differs from the live site: type, colour and spacing come
   from the 2026 tokens rather than the old stylesheet, which is the point of
   the exercise. Structure, proportion and content follow the original.
   ========================================================================== */

/* ---------------------------------------------------------------- shared */
.ab-h2{
  font-family:var(--font-display);font-size:var(--lp-fs-display);
  line-height:1.15;font-weight:400;color:var(--indigo);
  text-align:center;letter-spacing:-.01em;margin:0;
}
.ab-h2--left{text-align:left}
.ab-sub{
  font-size:var(--fs-body);line-height:var(--lh-body);color:var(--muted);
  text-align:center;max-width:62ch;margin:clamp(.75rem,1.09vw,1.75rem) auto 0;
}
.ab-sub--left{text-align:left;margin-inline:0}

/* Round icon button — the live site uses this for every carousel control. */
.ab-arrow{
  display:grid;place-items:center;width:2.75rem;height:2.75rem;flex:none;
  border:1px solid var(--active-orange);border-radius:50%;
  background:transparent;color:var(--active-orange);cursor:pointer;
  transition:background .25s var(--ease),color .25s var(--ease),opacity .25s;
}
.ab-arrow svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:1.75}
.ab-arrow:hover:not(:disabled){background:var(--active-orange);color:#fff}
.ab-arrow:disabled{opacity:.3;cursor:default}
.ab-carousel__nav{display:flex;gap:.75rem}


/* ==========================================================================
   1. WHY CHOOSE NISHTECH
   Six cards, three in view. Scroll-snap does the work so it still swipes on
   touch with JS off; the arrows just nudge scrollLeft.
   ========================================================================== */
.ab-why{background:var(--surface);padding-block:clamp(3rem,5.5vw,8.75rem)}
.ab-carousel{position:relative;margin-top:clamp(2rem,3.1vw,5rem)}
.ab-carousel__track{
  display:flex;gap:clamp(1rem,1.4vw,1.4375rem);   /* 23 measured */
  list-style:none;margin:0;padding:0 0 .5rem;
  overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none;
}
.ab-carousel__track::-webkit-scrollbar{display:none}
.ab-carousel__track>*{scroll-snap-align:start;flex:0 0 auto}

.ab-card{
  width:calc((100% - 2 * clamp(1rem,1.4vw,1.4375rem)) / 3);
  background:var(--surface);border:1px solid var(--border);
  box-shadow:0 2px 14px rgba(13,11,46,.06);
  display:flex;flex-direction:column;
}
.ab-card__media{aspect-ratio:265/236;overflow:hidden}   /* measured */
.ab-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.ab-card__body{padding:clamp(1rem,1.25vw,2rem)}
.ab-card__n{
  font-size:var(--fs-kicker);font-weight:700;letter-spacing:.04em;
  color:var(--active-orange);margin:0 0 .35em;
}
.ab-card__title{
  font-size:var(--fs-card-title);line-height:1.2;font-weight:700;
  color:var(--active-orange);margin:0;
}
.ab-card__copy{
  font-size:var(--fs-small);line-height:var(--lh-body);color:var(--muted);
  margin:.75em 0 0;
}
/* Default: controls sit under the track, centred. The live site floats them
   outside the container instead — see §8, where that only happens once the
   viewport is wide enough to have room. Floating them by default pushes a
   44px button past the container edge and produces horizontal scroll in the
   1200-1600 band, which is worse than the placement difference. */
.ab-carousel__nav{justify-content:center;margin-top:clamp(1.25rem,1.75vw,2.75rem)}


/* ==========================================================================
   2. TIMELINE
   Kept as the live site's flat PNGs — one per milestone, with a separate
   mobile crop swapped by <picture>. Chosen deliberately over rebuilding the
   milestones as markup; the trade-off is that the type inside cannot follow
   the styleguide and is invisible to search and screen readers, which is why
   each slide carries descriptive alt text.
   ========================================================================== */
.ab-timeline{background:#F5F5F7;padding-block:clamp(3rem,5.5vw,8.75rem)}
.ab-tl{margin-top:clamp(2rem,3.1vw,5rem)}
.ab-tl__viewport{position:relative}
.ab-tl__slide{margin:0;display:none}
.ab-tl__slide[data-active]{display:block}
.ab-tl__slide img{width:100%;height:auto;display:block}

.ab-tl__controls{
  display:flex;align-items:center;justify-content:center;
  gap:clamp(1rem,1.75vw,2.75rem);margin-top:clamp(1.5rem,2.3vw,3.75rem);
  flex-wrap:wrap;
}
.ab-tl__index{
  display:grid;place-items:center;width:2rem;height:2rem;flex:none;
  border:1px solid var(--active-orange);border-radius:50%;
  font-size:var(--fs-kicker);font-weight:700;color:var(--active-orange);
}
.ab-tl__dots{display:flex;align-items:center;gap:clamp(.5rem,.66vw,1.0625rem)}
.ab-tl__dot{
  width:clamp(1rem,1.4vw,2.125rem);height:2px;padding:0;border:0;
  background:var(--border);cursor:pointer;
  transition:background .3s var(--ease);
}
.ab-tl__dot[aria-selected="true"]{background:var(--active-orange)}


/* ==========================================================================
   3. COLLABORATIVE APPROACH
   Two rows sharing one content width: 2-up then 3-up. Each row keeps the
   measured 1444:445 aspect, so the cells scale together and the composition
   holds without per-breakpoint heights.
   ========================================================================== */
.ab-collab{background:var(--surface);padding-block:clamp(3rem,5.5vw,8.75rem)}
.ab-collage{margin-top:clamp(2rem,3.1vw,5rem);display:grid;gap:clamp(.75rem,1.07vw,1.4375rem)}
.ab-collage__row{display:grid;gap:clamp(.75rem,.93vw,1.25rem);aspect-ratio:1444/445}
.ab-collage__row--2{grid-template-columns:1fr 1fr}
.ab-collage__row--3{grid-template-columns:repeat(3,1fr)}
.ab-collage__cell{overflow:hidden;background:var(--border)}
.ab-collage__cell>*{width:100%;height:100%;object-fit:cover;display:block}


/* ==========================================================================
   4. FOUNDER'S VISION
   Full-bleed. Square photo left, brand-gradient panel right carrying white
   text. The live gradient runs deep-orange to orange, left to right.
   ========================================================================== */
.ab-founder{display:grid;grid-template-columns:40% 60%;align-items:stretch}
.ab-founder__media{overflow:hidden}
.ab-founder__media img{width:100%;height:100%;object-fit:cover;display:block}
.ab-founder__panel{
  background:linear-gradient(90deg,#E23C17 0%,#EF6A1B 55%,#F58220 100%);
  display:flex;align-items:center;
  padding:clamp(2rem,3.9vw,6.25rem) clamp(1.5rem,4.7vw,7.5rem);
}
.ab-founder__inner{max-width:56ch}
.ab-founder__title{
  font-family:var(--font-display);font-size:var(--lp-fs-display);
  line-height:1.15;font-weight:400;color:#fff;margin:0;
}
.ab-founder__sub{
  font-size:var(--fs-h6);font-weight:800;color:#fff;
  margin:clamp(.5rem,.78vw,1.25rem) 0 0;
}
.ab-founder__body{
  font-size:var(--fs-body);line-height:var(--lh-body);color:rgba(255,255,255,.95);
  margin:clamp(.75rem,1.09vw,1.75rem) 0 0;
}


/* ==========================================================================
   5. LEADERSHIP
   ========================================================================== */
.ab-team{background:var(--surface);padding-block:clamp(3rem,5.5vw,8.75rem)}
.ab-person{
  width:calc((100% - 3 * clamp(1rem,1.4vw,1.4375rem)) / 4);
  background:var(--surface);border:1px solid var(--border);
  box-shadow:0 2px 14px rgba(13,11,46,.06);
  padding:clamp(1.25rem,1.72vw,2.75rem);
}
/* Circular portrait inside a brand-gradient ring — the ring is the padding
   of a gradient-filled box, with the image masked to a circle on top. */
.ab-person__photo{
  width:min(100%,15.5rem);aspect-ratio:1;margin:0 auto;
  border-radius:50%;padding:2px;
  background:linear-gradient(150deg,var(--indigo) 0%,var(--hot) 55%,var(--orange) 100%);
}
.ab-person__photo img{
  width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;
  background:var(--surface);
}
.ab-person__role{
  font-size:var(--fs-kicker);font-weight:700;color:var(--active-orange);
  margin:clamp(1rem,1.4vw,2.25rem) 0 0;
}
.ab-person__name{
  font-size:var(--fs-card-title);font-weight:700;color:var(--active-orange);
  line-height:1.2;margin:.3em 0 0;
}
.ab-person__bio{
  font-size:var(--fs-small);line-height:var(--lh-body);color:var(--muted);
  margin:.75em 0 0;
}
.ab-person__links{display:flex;gap:.5rem;margin:clamp(.75rem,1.09vw,1.75rem) 0 0}
.ab-person__links a{
  display:grid;place-items:center;width:1.5rem;height:1.5rem;
  color:var(--active-orange);
}
.ab-person__links svg{width:100%;height:100%;fill:currentColor}
.ab-team__cta{
  display:flex;flex-direction:column;align-items:center;gap:clamp(1rem,1.4vw,2.25rem);
  margin-top:clamp(2.5rem,4.3vw,6.875rem);text-align:center;
}
.ab-team__ctaTitle{
  font-family:var(--font-display);font-size:var(--fs-h3);
  font-weight:400;color:var(--indigo);margin:0;
}


/* ==========================================================================
   6. WHAT DRIVES US
   Image left, accordion right. Heading is left-aligned here, unlike every
   other section on the page — that is how the live page draws it.
   ========================================================================== */
.ab-values{background:#F5F5F7;padding-block:clamp(3rem,5.5vw,8.75rem)}
.ab-values__grid{
  display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);
  gap:clamp(2rem,4.7vw,7.5rem);align-items:center;
}
.ab-values__media img{width:100%;height:auto;display:block}

.ab-acc{margin-top:clamp(1.5rem,2.3vw,3.75rem);border-top:1px solid var(--border)}
.ab-acc__item{border-bottom:1px solid var(--border)}
.ab-acc__item h3{margin:0;font:inherit}
.ab-acc__trigger{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:clamp(.875rem,1.09vw,1.75rem) 0;
  background:none;border:0;cursor:pointer;text-align:left;
  font-family:var(--font-body);font-size:var(--fs-h6);font-weight:500;
  color:var(--indigo);
}
.ab-acc__trigger:hover{color:var(--active-orange)}
/* +/− drawn in CSS so it animates and needs no icon font */
.ab-acc__icon{
  position:relative;width:1.375rem;height:1.375rem;flex:none;
  border:1px solid var(--active-orange);border-radius:50%;
}
.ab-acc__icon::before,.ab-acc__icon::after{
  content:'';position:absolute;inset:50% 25%;
  border-top:1px solid var(--active-orange);
  transition:transform .3s var(--ease),opacity .3s var(--ease);
}
.ab-acc__icon::after{transform:rotate(90deg)}
.ab-acc__trigger[aria-expanded="true"] .ab-acc__icon::after{transform:rotate(0);opacity:0}
.ab-acc__panel{padding:0 0 clamp(.875rem,1.09vw,1.75rem)}
.ab-acc__panel p{
  font-size:var(--fs-small);line-height:var(--lh-body);color:var(--muted);margin:0;
}
.ab-acc__panel em{font-style:italic}


/* ==========================================================================
   7. CLOSING BANNER
   ========================================================================== */
.ab-banner{position:relative;overflow:hidden;isolation:isolate}
.ab-banner__video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;
}
.ab-banner__veil{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(30,27,86,.55),rgba(30,27,86,.62));
}
.ab-banner__inner{
  display:flex;flex-direction:column;align-items:center;gap:clamp(1.5rem,2.3vw,3.75rem);
  padding-block:clamp(4rem,7vw,11.25rem);text-align:center;
}
.ab-banner__title{
  font-family:var(--font-display);font-size:var(--lp-fs-display);
  line-height:1.15;font-weight:400;color:#fff;margin:0;max-width:22ch;
}
.ab-banner__cta{color:#fff;border-color:rgba(255,255,255,.7)}
.ab-banner__cta:hover{border-color:#fff}


/* ==========================================================================
   8. BREAKPOINTS
   ========================================================================== */
/* The container tops out at 1920. Past ~1600 there is genuine slack either
   side, so the controls can float outside the track the way the live site
   draws them without risking overflow. */
@media (min-width:1600px){
  .ab-why .ab-carousel,
  .ab-team .ab-carousel{position:relative}
  .ab-why .ab-carousel__nav,
  .ab-team .ab-carousel__nav{
    position:absolute;top:38%;right:-4.25rem;
    transform:translateY(-50%);margin-top:0;
  }
  .ab-why .ab-carousel__nav [data-prev],
  .ab-team .ab-carousel__nav [data-prev]{display:none}
}

@media (max-width:1199.98px){
  .ab-card  {width:calc((100% - clamp(1rem,1.4vw,1.4375rem)) / 2)}
  .ab-person{width:calc((100% - clamp(1rem,1.4vw,1.4375rem)) / 2)}
  .ab-founder{grid-template-columns:1fr 1fr}
}

@media (max-width:1023.98px){
  .ab-founder{grid-template-columns:1fr}
  .ab-founder__media{aspect-ratio:4/3}
  .ab-values__grid{grid-template-columns:1fr;gap:2.5rem}
  .ab-values__media{max-width:32rem}
  .ab-h2--left,.ab-sub--left{text-align:center;margin-inline:auto}
  .ab-values__copy{width:100%}
}

@media (max-width:767.98px){
  .ab-card  {width:min(84%,22rem)}
  .ab-person{width:min(84%,22rem)}
  /* Three-across collage cells become unreadable below this width, so both
     rows fall to two columns and the aspect relaxes. */
  .ab-collage__row{aspect-ratio:auto}
  .ab-collage__row--2,
  .ab-collage__row--3{grid-template-columns:1fr 1fr}
  .ab-collage__cell{aspect-ratio:1}
  .ab-collage__row--3>:last-child{grid-column:span 2;aspect-ratio:16/9}
  .ab-tl__controls{gap:.75rem}
  .ab-tl__dot{width:.75rem}
  .ab-h2--left,.ab-sub--left{text-align:left;margin-inline:0}
  .ab-sub{text-align:left;margin-inline:0}
  .ab-h2{text-align:left}
}

@media (max-width:400px){
  .ab-card,.ab-person{width:92%}
  .ab-tl__index{display:none}
}

@media (prefers-reduced-motion:reduce){
  .ab-carousel__track{scroll-behavior:auto}
  .ab-banner__video{display:none}
  .ab-collage__cell video{display:none}
}
