/* ==========================================================================
   Template: About — Figma "About" 50:143
   All sizes: calc(N * var(--k)), N = Figma px at 1440 wide.
   ========================================================================== */

.ab { position: relative; overflow: clip; }   /* clip, not hidden: keeps the label sticky */

.ab__glow-top {
  position: absolute; left: 0; right: 0; top: 0; height: calc(233 * var(--k));
  background: url("../img/expertise/glow-top.jpg") center top / 100% 100% no-repeat;
  pointer-events: none;
}

/* ── Hero — Playfair 90 + Apercu 24, 27 apart, at 240 / 146 ── */
.ab-hero {
  position: relative;
  width: calc(1148 * var(--k)); max-width: calc(100% - 32px);
  margin: 0 auto; padding-top: calc(240 * var(--k));
  display: flex; flex-direction: column; gap: calc(27 * var(--k));
}
.ab-hero h1 { font-family: var(--serif); font-size: calc(90 * var(--k)); line-height: 1.1; }
.ab-hero p  { font-size: calc(24 * var(--k)); line-height: 1.1; }

/* ── "Why we're fast": label left (sticky, 210 below the top — same as the
      case pages), text column at 495, 450 wide ── */
.ab-why {
  position: relative;
  display: grid; grid-template-columns: calc(349 * var(--k)) calc(450 * var(--k));
  margin: calc(210 * var(--k)) 0 0 calc(146 * var(--k));      /* text at 602 */
}
.ab-why__label-track { align-self: stretch; }
.ab-why__label {
  position: sticky; top: calc(210 * var(--k));
  display: grid;   /* the two titles share one spot and cross-fade (about.js) */
  font-size: calc(24 * var(--k)); line-height: 1.1; font-weight: 400;
  text-transform: uppercase; color: var(--muted);
}
.ab-why__label span { grid-area: 1 / 1; opacity: 0; transition: opacity .4s ease; }
.ab-why__label span.is-on { opacity: 1; }
.ab-why__col { display: flex; flex-direction: column; gap: calc(90 * var(--k)); }
.ab-block { display: flex; flex-direction: column; gap: calc(30 * var(--k)); }
.ab-text p { font-size: calc(15 * var(--k)); line-height: 1.4; }
.ab-text p + p { margin-top: calc(21 * var(--k)); }


/* Guarantees — icon over a two-line label, 30 apart, 1px dividers 60 high */
.ab-promises { display: flex; align-items: stretch; gap: calc(40 * var(--k)); list-style: none; }   /* dividers run icon top → text bottom */
.ab-promises li { display: flex; flex-direction: column; gap: calc(5 * var(--k)); }
.ab-promises .fa { font-size: calc(15 * var(--k)); line-height: 1.4; }   /* FA Pro Regular 15 */
.ab-promises span { font-size: calc(18 * var(--k)); line-height: 1.1; }
.ab-promises .divider { flex: none; width: 1px; align-self: stretch; background: rgba(255,255,255,.2); }

/* Steps — #262626 cards, 450 wide, radius 15; badge top-right; ▼ between */
.ab-steps { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--k)); list-style: none; }
.ab-step {
  position: relative; width: 100%;
  background: #262626; border-radius: calc(15 * var(--k)); padding: calc(20 * var(--k));
  display: flex; flex-direction: column; gap: calc(6 * var(--k));
}
.ab-step h3 { font-size: calc(18 * var(--k)); line-height: 1.4; font-weight: 700; display: flex; align-items: center; gap: .35em; }
.ab-step h3 .fa { font-size: calc(16 * var(--k)); }   /* FA Pro Light 16 */
.ab-step p { font-size: calc(15 * var(--k)); line-height: 1.4; }
.ab-step .badge {
  position: absolute; top: 0; right: 0; width: calc(144 * var(--k));
  padding: calc(9 * var(--k)) calc(15 * var(--k));
  background: #404040; border-radius: 0 calc(15 * var(--k)) 0 calc(15 * var(--k));
  font-size: calc(12 * var(--k)); font-weight: 700; color: #fff; text-align: center; white-space: nowrap;
}
.ab-steps .arrow { font-size: calc(12 * var(--k)); line-height: 1; color: var(--fg); }   /* FA Pro arrow-down */

/* ── "A website for everyone" — coloured glow above, three packages ── */
.ab-plans { position: relative; margin-top: calc(285 * var(--k)); }   /* heading at 1796 */
/* Figma: the Experience image flipped and blurred (200 ≈ CSS 100px), covered
   by a dark block that ends 120 above the heading — so the glow starts
   with a clean top edge and fades out downwards */
.ab-plans__glow {
  position: absolute; left: 0; right: 0; top: calc(-120 * var(--k)); height: calc(900 * var(--k));
  overflow: hidden; pointer-events: none;
}
.ab-plans__glow::before {
  content: ""; position: absolute; left: calc(-59 * var(--k)); right: calc(-59 * var(--k));
  top: calc(-700 * var(--k)); height: calc(760 * var(--k));
  background: url("../img/expertise/glow-fill-b.jpg") center / cover no-repeat;
  transform: scaleY(-1); filter: blur(100px);
}
.ab-plans h2 {
  position: relative; text-align: center;
  font-family: var(--serif); font-size: calc(42 * var(--k)); line-height: 1.1;
}
.ab-packages {
  position: relative;
  width: calc(1148 * var(--k)); max-width: calc(100% - 32px); margin: calc(60 * var(--k)) auto 0;
  display: grid; grid-template-columns: 1fr calc(372 * var(--k)) 1fr; gap: calc(20 * var(--k));
  align-items: stretch;   /* all packages as tall as the tallest */
}
.pkg {
  position: relative; background: #1e1e1e; border-radius: calc(15 * var(--k)); padding: calc(28 * var(--k));
  display: flex; flex-direction: column; gap: calc(20 * var(--k));
}
.pkg--featured { border: 2px solid #8a38f5; padding: calc(28 * var(--k) - 2px); }
.pkg__badge {
  position: absolute; top: 0; right: calc(20 * var(--k));
  padding: calc(9 * var(--k)) calc(15 * var(--k));
  background: #8a38f5; border-radius: 0 0 calc(15 * var(--k)) calc(15 * var(--k));
  font-size: calc(12 * var(--k)); font-weight: 700; color: #fff;
}
.pkg h3 { font-size: calc(24 * var(--k)); font-weight: 700; line-height: 1.2; }
.pkg__intro { font-size: calc(15 * var(--k)); line-height: calc(22 * var(--k)); margin-top: calc(-15 * var(--k)); min-height: calc(44 * var(--k)); }
.pkg__price { display: flex; align-items: center; gap: calc(6 * var(--k)); }   /* "1 year minimum" / "and up" on the vertical middle */
.pkg__price strong { font-size: calc(42 * var(--k)); font-weight: 700; line-height: 1.2; }
.pkg__price span, .pkg__terms { font-size: calc(15 * var(--k)); color: var(--muted); }
.pkg__terms { margin-top: calc(-20 * var(--k)); }
.pkg ul { list-style: none; display: flex; flex-direction: column; gap: calc(10 * var(--k)); }
.pkg li { display: flex; align-items: center; gap: calc(10 * var(--k)); font-size: calc(15 * var(--k)); line-height: calc(19 * var(--k)); }
.pkg li::before { content: ""; flex: none; width: calc(5 * var(--k)); height: calc(5 * var(--k)); border-radius: 50%; background: var(--fg); }
.pkg .btn-lg {
  margin-top: auto;   /* content top-aligned, button always at the bottom */
  display: flex; align-items: center; justify-content: center; height: calc(54 * var(--k));
  border-radius: calc(10 * var(--k)); background: rgba(255,255,255,.12); color: #fff;
  font-size: calc(15 * var(--k)); text-decoration: none; transition: background .3s, filter .3s;
}
.pkg .btn-lg:hover { background: rgba(255,255,255,.2); }
.pkg--featured .btn-lg { background: #8a38f5; color: var(--fg); font-weight: 700; }
.pkg--featured .btn-lg:hover { background: #8a38f5; filter: brightness(1.12); }

/* ── Closer: client logos, page ends 60 below the rule ── */
.ab-end { position: relative; margin-top: calc(121 * var(--k)); padding-bottom: calc(60 * var(--k)); }   /* logos at 2561 */

/* ── Company details + legal links below the footer: 3 centred columns
      on desktop, stacked and left-aligned on phones and tablets ── */
.ab-legal {
  position: relative; padding: 0 calc(146 * var(--k)) calc(60 * var(--k));
  display: grid; grid-template-columns: 1fr calc(372 * var(--k)) 1fr; gap: calc(20 * var(--k));
  font-size: calc(15 * var(--k)); line-height: 1.5; color: var(--muted); text-align: center;
}
.ab-legal a { color: inherit; text-decoration: none; transition: color .3s; }
.ab-legal a:hover { color: var(--hover); }
.ab-legal__links { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 900px) {
  .ab-legal { grid-template-columns: 1fr; gap: 16px; padding: 0 16px 40px; font-size: 14px; text-align: left; }
  .ab-legal__links { align-items: flex-start; }
  .ab-legal__links a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* Figma's fixed line breaks; let text flow freely on phones */
.ab br.lb { display: inline; }

@media (max-width: 900px) {
  .ab br.lb { display: none; }
  .ab-hero { padding-top: 140px; gap: 14px; }
  .ab-hero h1 { font-size: 44px; }
  .ab-hero p { font-size: 17px; }
  .ab-why { display: block; margin: 64px 16px 0; }
  .ab-why__label { position: static; font-size: 16px; margin-bottom: 20px; }
  .ab-text p, .ab-step p, .pkg li, .pkg__intro, .pkg__price span, .pkg__terms { font-size: 15px; }
  .ab-promises { gap: 24px; }
  .ab-promises span { font-size: 15px; }
  .ab-step h3 { font-size: 17px; }
  .ab-step .badge { font-size: 11px; width: auto; }
  .ab-plans { margin-top: 168px; }   /* 72px clear between Development and the purple glow */
  .ab-plans h2 { font-size: 28px; }
  .ab-packages { grid-template-columns: 1fr; margin-top: 32px; }
  .pkg { padding: 22px; gap: 18px; }
  .pkg--featured { padding: 20px; }
  .pkg__intro { line-height: 1.4; min-height: 0; margin-top: -10px; }
  .pkg__terms { margin-top: -16px; }
  .pkg ul { gap: 8px; }
  .pkg li { line-height: 1.35; gap: 10px; }
  .pkg li::before { width: 5px; height: 5px; }
  .pkg__badge { font-size: 11px; padding: 6px 12px; border-radius: 0 0 12px 12px; right: 16px; }
  .ab-block { gap: 32px; }
  .ab-why__col { gap: 72px; }
  .ab-promises li { gap: 6px; }
  .ab-promises .fa, .ab-steps .arrow { font-size: 14px; }
  .ab-steps { gap: 6px; }
  .ab-step { padding: 16px; border-radius: 12px; gap: 6px; }
  .ab-step h3 .fa { font-size: 16px; }
  .ab-step .badge { padding: 6px 10px; border-radius: 0 12px 0 12px; }
  .ab-text p + p { margin-top: 20px; }
  .pkg h3 { font-size: 20px; }
  .pkg__price strong { font-size: 34px; }
  .pkg .btn-lg { height: 48px; font-size: 15px; }
  .ab-end { margin-top: 80px; }
}
