/* ==========================================================================
   ABONEX Solutions — Sections
   01 Hero · 02 About (+ Why ABONEX) · 03 Services · 04 Work · 05 CTA
   06 Process · 07 FAQ · 08 Contact · Footer
   ========================================================================== */

/* ============================================================== 01 · HERO */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(var(--space-8), 7vh, var(--space-20)));
  padding-bottom: clamp(var(--space-12), 8vh, var(--space-24));
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
}

.hero .hero__title { color: var(--on-ink); }
.hero .lead        { color: var(--on-ink-muted); }
.hero .meta        { color: var(--on-ink-muted); }
.hero__strip       { border-top-color: var(--hairline-ink); }

/* Cyan primary on navy; ghost inherits the shared on-ink treatment below. */
.hero .btn--primary {
  --btn-bg: var(--accent-hi);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent-hi);
  --btn-fill: var(--on-ink);
  --btn-fill-fg: var(--ink);
}

/* Soft cyan halo behind the composition. Low alpha and a wide falloff, so it
   reads as depth rather than as a gradient. */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: -8%;
  top: 46%;
  width: min(980px, 68vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(31, 180, 204, .22) 0%,
    rgba(31, 180, 204, .08) 42%,
    rgba(31, 180, 204, 0) 70%);
}

/* No fade: a dark section should meet the light body on a crisp edge. */

/* Content clears both pseudo-elements */
.hero > .container { position: relative; z-index: 1; }

@media (max-width: 1023px) {
  .hero::before { right: -30%; top: 62%; width: min(760px, 120vw); }
}

.hero__inner { display: grid; gap: var(--space-12); align-items: center; }

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-8);
  }
  /* Equal halves: 6 columns each. */
  .hero__content     { grid-column: 1 / 7; }
  .hero__composition { grid-column: 7 / 13; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.hero__eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--accent-hi);
  flex: none;
}

.hero__title {
  font-size: var(--fs-display-xl);
  /* Deliberately looser than --lh-tight (.92). Four stacked display lines at
     that leading read as a solid block; this lets each line breathe without
     losing the tight, set-as-one-piece feel. The masks grow with it, so
     descenders gain clearance too. */
  line-height: 1.06;
  letter-spacing: var(--ls-tightest);
  font-weight: 500;
  margin-bottom: var(--space-8);
}

/* The serif italic carries one word only. That restraint is the point. */
.hero__title .serif { font-size: 1.04em; }

/* Steps down from the shared .lead. Next to an 80px headline the full lead
   size competes with it; the section intros elsewhere keep the larger size
   because they sit under much smaller headings. */
.hero__lead {
  margin-bottom: var(--space-10);
  max-width: 46ch;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
}

.hero__actions { margin-bottom: clamp(var(--space-10), 5vh, var(--space-16)); }


/* Credibility strip: four commitments on a hairline, not a logo wall */
.hero__strip {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) clamp(var(--space-4), 1.8vw, var(--space-6));
}

.hero__strip li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__strip li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-hi);
  flex: none;
}

/* One owner per transform. `.reveal` animates .hero__composition on load, so
   the scroll parallax and the idle float each get their own element - two
   rules fighting over `transform` is what silently killed the parallax. */
.hero__composition { position: relative; }

.hero__parallax { position: relative; transform: translateY(var(--py, 0px)); will-change: transform; }
/* Kept as a wrapper for the artwork, but nothing animates it any more -
   the devices are static by design, so no will-change here. */
.hero__float { display: block; }

/* While GSAP drives the headline per character, the CSS line reveal stands
   down rather than animating the same spans underneath it. */
.hero__title--split .line-mask > span { transform: none; transition: none; }

.hero__composition img {
  width: 100%;
  height: auto;
  /* Genuinely transparent artwork, so no frame or shadow: the devices sit
     directly on the navy. It is ~1.56:1 against a ~0.95:1 slot, so a modest
     overscale stops it reading short next to the text column - its own
     transparent margins absorb the growth.

     The old artwork was pushed to 1.14 for that reason. This one goes the
     other way, to 0.92: the devices here run to 4-95% of the file with only
     a sliver of margin, and the floating tiles need that ring back. Measured
     against the artwork's alpha, 0.92 leaves the devices at 22-91% across
     and 10-89% down, which is the empty band the tiles are placed in. Change
     this and the --x/--y in the markup have to move with it. */
  transform: scale(0.92);
  transform-origin: center;
}

/* ---------------------------------------------- hero floating icon tiles

   A layer of decorative glyphs orbiting the artwork. It sits beside
   .hero__float inside .hero__parallax, so it inherits the scroll parallax
   but NOT the image's idle float and pointer tilt - each tile drifts on its
   own clock, which is what makes the group read as depth rather than as one
   pane sliding about.

   Transform ownership carries on here, two elements deep:
     .hero__icon       static centring + GSAP x/y  (pointer drift)
     .hero__icon-tile  GSAP opacity/scale (entrance), yPercent/rotation (idle)
   The entrance and the idle loop share an element but never a property. */

.hero__icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  /* GSAP writes x/y on this element, and it composes onto the translate
     below rather than replacing it - so the centring survives the drift. */
  translate: -50% -50%;
}

/* Where each tile sits, as the centre point in percentages of the
   composition box, plus how far it travels under the cursor. Kept here
   rather than inline on the elements so the media queries below can move a
   tile between breakpoints - which is the whole reason security reads on
   the left at desktop and on the laptop's corner on a phone.

   Two a side at desktop: ecommerce and security down the left, chart and
   the component mark down the right. */
.hero__icon--commerce { --x: 9%;  --y: 26%; --depth: 1; }
.hero__icon--chart    { --x: 86%; --y: 3%;  --depth: .7; }
.hero__icon--stack    { --x: 96%; --y: 30%; --depth: 1.1; }
.hero__icon--shield   { --x: 8%;  --y: 63%; --depth: .8; }

.hero__icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tile, 60px);
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  /* The brand's two colours in one run: cyan on the lit corner, falling
     through teal into navy where the form turns away. Three stops rather
     than two - the mid teal is what stops it banding into a flat diagonal
     and is what makes it read as a solid object catching light.

     Both ends are brand tokens, --accent-hi and --ink, so the tiles belong
     to the same palette as everything else on the page. No black anywhere
     in the stack, shadows included.

     The stops are front-loaded on purpose. Spread evenly, the navy gets
     squeezed into the last corner of a 68px box and the tile just reads as
     a cyan chip; pulling the midpoints back to 34/68% gives the navy
     roughly the lower half, so both brand colours are actually legible. */
  background: linear-gradient(145deg,
    #4ad6ee 0%,
    #1b8ba6 34%,
    #15415c 68%,
    var(--ink) 100%);
  border: 1px solid rgba(163, 234, 248, .4);
  /* Cast in teal, not black, so the tiles glow against the navy instead of
     smudging it. The inner pair do the modelling: a lit top edge and a
     turned-away bottom. */
  box-shadow:
    0 16px 34px -12px rgba(11, 115, 137, .7),
    0 4px 14px -4px rgba(39, 188, 214, .38),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -9px 18px -10px rgba(8, 24, 38, .6);
  /* Keeps the specular sweep inside the corner radius. */
  overflow: hidden;
  will-change: transform;
}

/* The specular sweep: a soft highlight off the top-left, which is the single
   cheapest thing that turns a coloured square into a lit surface. */
.hero__icon-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 22% 8%,
    rgba(255, 255, 255, .5) 0%,
    rgba(255, 255, 255, .14) 36%,
    rgba(255, 255, 255, 0) 64%);
}


.hero__icon-tile svg {
  /* Above the specular layer - both are in the tile's stacking context, so
     position alone settles the order. */
  position: relative;
  width: 55%;
  height: 55%;
  /* Same contract as the service glyphs: the symbol stays colour-agnostic
     and the two tones are set out here. On cyan the old navy/cyan pair has
     nowhere to go, so the two tones become white and off-white - the accent
     still leads, just by brightness rather than by hue. */
  color: rgba(255, 255, 255, .9);
  --glyph-accent: #ffffff;
  stroke-width: 2.2;
  /* The strokes cross the light end of the gradient, where plain white
     starts to disappear. A teal-tinted edge holds them. */
  filter: drop-shadow(0 1px 1.5px rgba(6, 50, 66, .55));
}

@media (min-width: 1280px) { .hero__icon { --tile: 68px; } }

/* Below the two-column break the composition is centred and narrower, so the
   tiles shrink. Only the chart drops now: it sits highest, at --y:3%, which
   is where the stacked layout brings the copy down to meet it. Back when
   there were five tiles this hid two of them; dropping half of four would
   leave the composition looking under-dressed rather than tidy. */
@media (max-width: 1023px) {
  .hero__icon { --tile: 46px; }
  .hero__icon--chart { display: none; }
}

/* On a phone the composition is only ~350px wide and the devices fill most
   of it, so four tiles is a crowd. Two is a frame: ecommerce on the left and
   security on the right, set on a diagonal, with the chart and the atom
   standing down. nth-child(2) is already hidden by the rule above, so this
   only has to drop the atom.

   The devices themselves still do not move at any width - the tiles coming
   back is what gives the mobile hero its life, not the artwork. */
@media (max-width: 479px) {
  .hero__icon { --tile: 40px; }
  .hero__icon--stack { display: none; }

  /* Security moves onto the laptop's top-left corner. The artwork is
     transform:none at this width, so the devices fill the box and there is
     no clear right-hand margin left to sit in - landing it on the corner is
     deliberate overlap rather than a near miss, and it reads as the tile
     resting in front of the lid. */
  .hero__icon--shield { --x: 28%; --y: 8%; }
}

@media (max-width: 1023px) {
  .hero__composition { max-width: 560px; margin-inline: auto; }
  .hero__composition img { transform: none; }
}

/* ============================================================= 02 · ABOUT
   Headline across the top, then artwork left and the five Why ABONEX reasons
   right, with the commitments closing underneath — one section, one argument.
   The three Discover/Design/Build steps that used to sit here went with the
   merge: section 06 Process already tells that story in full, and the reasons
   say something the page was not saying twice. On mobile it stacks in DOM
   order: headline → artwork → reasons → commitments. */

.about { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); }

@media (min-width: 1024px) {
  .about {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--space-8);
    row-gap: clamp(var(--space-8), 4vw, var(--space-12));
    align-items: start;
  }
  /* The headline runs the full width above everything, then artwork and the
     five reasons share the row beneath it.

     The reasons column is far taller than the artwork — five entries against
     one near-square image — so the figure centres against it rather than
     stranding its whitespace at the bottom. Placed explicitly rather than
     reordered in the DOM, so mobile still stacks headline → artwork →
     reasons on its own. */
  /* Artwork and copy side by side on one row. This was three blocks over two
     rows while the five reasons lived here; with those gone, the old
     arrangement left the whole right half of the second row empty under the
     text. Image left, words right is the plainer shape and has no hole in it.

     The copy is a straight stack again rather than its own nested split - in
     a six-column cell, dividing it further would give two columns too narrow
     to read. */
  .about__copy   { grid-column: 7 / 13; grid-row: 1; }
  .about__visual { grid-column: 1 / 6;  grid-row: 1; align-self: center; }
}

.about__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.about__eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--accent-hi);
  flex: none;
}

.about__title {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: var(--ls-tighter);
  font-weight: 500;
  color: var(--type);
  text-wrap: balance;
}

/* Below the two-column break the body stacks under the headline, where the
   42ch measure still applies; above it the column is already narrow enough
   that capping the measure again would only make it thinner. */
.about__body { margin-top: var(--space-5); max-width: 46ch; display: grid; gap: var(--space-4); }
.about__lead { margin-top: 0; max-width: none; }

@media (min-width: 1024px) {
  .about__body { margin-top: var(--space-5); }
}

/* The closing line is the one sentence in the section that is an assertion
   rather than an explanation, so it is set apart: heavier, in full ink
   against the muted paragraphs above, with a rule to stop it reading as just
   another paragraph that happens to be bold. */
.about__closing {
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  color: var(--type);
  font-weight: 500;
}

.about__visual img {
  width: 100%;
  height: auto;
  /* Transparent artwork, so no frame: the panels sit directly on the paper. */
  display: block;
}

/* ========================================================== 03 · SERVICES
   A bento grid: deliberately uneven tiles, not a repeating card rack. The
   featured service takes a 2x2 block with artwork; the rest are compact.
   Cards are navy on the paper ground, so the page keeps its tonal arc
   (navy hero -> light body -> cyan CTA -> navy footer) rather than gaining
   a third full dark section. */

.bento {
  display: grid;
  gap: clamp(var(--space-3), 1vw, var(--space-4));
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
  }
  .bento__card--feature { grid-column: span 2; grid-row: span 2; }
  .bento__card--wide    { grid-column: span 2; }

  /* Six cards do not tile a four-column grid the way eight did. The feature
     takes four cells and the wide two, which leaves the last row holding two
     single cards in its left half and a hole in its right. The two closing
     cards widen to take that row instead.

     Scoped to the last two children rather than named classes, so the rule
     follows the grid if a card is ever added or removed. Only above the
     four-column break: at two columns six cards already tile exactly. */
  .bento__card:nth-last-child(-n+2) { grid-column: span 2; }
}

.bento__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 190px;
  padding: clamp(var(--space-5), 2vw, var(--space-7));
  border-radius: var(--r-xl);
  /* No light surface separates from the warm paper ground on its own (every
     candidate measured 1.02-1.17:1), so the border and shadow are what make
     these read as cards. */
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  color: var(--type);
  transition: transform var(--dur-reveal) var(--ease-out-expo),
              border-color var(--dur-micro) var(--ease-out-quart),
              box-shadow var(--dur-reveal) var(--ease-out-expo);
}

/* Cyan wash, kept on a pseudo-element so hover can fade it up without
   repainting the card's own background.

   The origin is a pair of custom properties so the wash can follow the cursor
   (gsap-services.js). The fallbacks are the corner it used to be pinned to,
   so touch devices and a blocked CDN get exactly the original card. */
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at var(--mx, 100%) var(--my, 0%),
    rgba(31, 180, 204, .13) 0%,
    rgba(31, 180, 204, .04) 40%,
    rgba(31, 180, 204, 0) 72%);
  opacity: .8;
  transition: opacity var(--dur-reveal) var(--ease-out-expo);
}

.bento__card:hover,
.bento__card:focus-visible,
.bento__card.is-active {
  transform: translateY(-6px);
  border-color: rgba(31, 180, 204, .5);
  box-shadow: var(--shadow-2);
}
.bento__card:hover::before,
.bento__card:focus-visible::before,
.bento__card.is-active::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bento__card:hover,
  .bento__card:focus-visible,
  .bento__card.is-active { transform: none; }

  .bento__card:hover .bento__media,
  .bento__card:hover .bento__art,
  .bento__card.is-active .bento__media,
  .bento__card.is-active .bento__art { transform: none; }
}

/* Pale-cyan surface, assigned per card rather than by nth-child: the bento
   tiles are different sizes, so a positional rule reads as random.
   Currently unapplied — every small tile is white by request. Kept so the
   alternation can be put back by adding the class, not rewriting the rule. */
.bento__card--tint { background: var(--card-alt); }

.bento__index { color: var(--accent); }

/* Drawn at illustration scale rather than as a boxed icon. The chip was
   removed: the mark carries itself, and the box was competing with the card's
   own border.

   Two-tone, which is what separates an illustration from an icon here: navy
   draws the structure, cyan picks out the one element that identifies the
   service. Both are set as custom properties because they have to reach
   inside the shadow tree <use> builds — `color` and inherited SVG properties
   cross that boundary, a descendant selector never would. Keeping the colours
   and the stroke width out here also leaves the sprite reusable anywhere. */
.bento__glyph {
  display: block;
  --glyph-accent: var(--accent-hi);
  color: var(--type);
  margin-top: var(--space-1);
}
.bento__glyph svg {
  width: 48px; height: 48px;
  stroke-width: 1.8;
}

.bento__title {
  margin-top: auto;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  color: var(--type);
  text-wrap: balance;
  transition: color var(--dur-micro) var(--ease-out-quart);
}

/* The service name takes the accent on hover, alongside the arrow.
   --accent, not --accent-hi: the bright cyan is 2.2:1 on paper and fails as
   text. --accent is the one that carries accent TEXT at 5.6:1. */
.bento__card:hover .bento__title,
.bento__card:focus-visible .bento__title,
.bento__card.is-active .bento__title { color: var(--accent); }

.bento__desc {
  color: var(--type-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  max-width: 44ch;
}

/* The keyword line under each description. Separators are drawn by CSS
   rather than typed into the markup, so a screen reader reads three phrases
   instead of "Business websites middle dot Responsive design".

   Faint and small: this is a scanning aid under the sentence that already
   says it properly, and it should never compete with the title. */
.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin-top: var(--space-3);
  color: var(--type-faint);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* The separator trails the word it follows rather than leading the next
   one. As a ::before it belonged to the following span and wrapped with
   it, so a three-keyword line breaking in two started the second line
   with a dot. */
.bento__tags span:not(:last-child)::after {
  content: "·";
  margin-left: var(--space-3);
}

.bento__card--feature .bento__tags { color: #9FB2C7; }

.bento__arrow {
  position: absolute;
  top: clamp(var(--space-5), 2vw, var(--space-7));
  right: clamp(var(--space-5), 2vw, var(--space-7));
  width: 18px; height: 18px;
  color: var(--type-faint);
  transition: transform var(--dur-reveal) var(--ease-out-expo),
              color var(--dur-micro) var(--ease-out-quart);
}
.bento__card:hover .bento__arrow,
.bento__card:focus-visible .bento__arrow,
.bento__card.is-active .bento__arrow {
  transform: translate(5px, -5px);
  color: var(--accent);
}

/* Artwork pushes in slightly under the pointer. The transition lives on the
   element rather than the hover rule so it eases back out on leave too, and
   `transform` is free to own it: the entrance tween clears its own scale off
   on completion. The wide tile's art and the feature tile's photo are the
   only two images in the grid, and both want the same move. */
.bento__media,
.bento__art {
  transition: transform var(--dur-reveal) var(--ease-out-expo);
}

.bento__card:hover .bento__media,
.bento__card:focus-visible .bento__media,
.bento__card.is-active .bento__media { transform: scale(1.06); }

.bento__card:hover .bento__art,
.bento__card:focus-visible .bento__art,
.bento__card.is-active .bento__art { transform: scale(1.05); }

/* The phone-only blur grows the media box past the card's rounded clip, so
   the zoom has to compose with that rather than replace it. */
@media (max-width: 767px) {
  .bento__card.is-active .bento__media { transform: scale(1.04); }
}

/* ---- the wide tile: copy left, artwork filling the right ---- */

/* The copy is wrapped so it behaves as one block. Without that, each line is
   its own flex item and `margin-top:auto` on the title drops the text to the
   bottom while the art floats at the top. */
.bento__card--wide .bento__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.bento__card--wide .bento__title { margin-top: 0; }

.bento__card--wide .bento__art {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .bento__card--wide {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }
  .bento__card--wide .bento__body { flex: 1 1 48%; }
  /* Bleeds to the tile's right edge so the artwork reads as part of the card
     rather than a picture placed inside it.

     min-width:0 stays whatever art is used here: flex items default to
     min-width:auto, which resolves to the image's intrinsic width, so any
     artwork wider than its basis silently crushes the copy column. */
  .bento__card--wide .bento__art {
    flex: 0 1 52%;
    min-width: 0;
    margin-right: calc(clamp(var(--space-5), 2vw, var(--space-7)) * -1);
  }
}

@media (max-width: 1023px) {
  .bento__card--wide .bento__art { max-width: 320px; margin-top: var(--space-4); }
}

/* ---- the featured tile: sharp photo, copy on frosted glass ---- */

/* The note that closes the services grid. Not a bento tile on purpose: a
   seventh card in that grid would read as a seventh service, and this is the
   opposite of a service - it is for the reader who could not pick one.

   Row on wide screens, stack on narrow, and the text takes a measure rather
   than running the full width of a four-column grid. */
.services__aside {
  margin-top: clamp(var(--space-8), 3vw, var(--space-12));
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.services__aside-text {
  max-width: 54ch;
  color: var(--type-muted);
}

@media (min-width: 768px) {
  .services__aside {
    grid-template-columns: 1fr auto;
    gap: var(--space-10);
  }
}

.bento__card--feature {
  /* Lifted off the artwork's own near-black (its empty areas sample at
     #010b22, darker than this ever was) so the uncovered part of the tile
     reads as navy BLUE rather than as a black hole next to the lit mockups.
     Not --ink: this tile carries no brand navy at all by request. The photo
     itself lives on .bento__media. */
  background-color: #132d52;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
  color: var(--on-ink);
  justify-content: flex-start;
}

/* The photo on its own layer, so the entrance can scale it while the card
   itself is busy being a stagger target — two animators on one transform is
   the bug this codebase keeps re-learning. -2 puts it under the ::before
   vignette, and the card's own `isolation: isolate` plus `overflow: hidden`
   keep both inside the rounded clip. */
.bento__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("../img/websitepic.jpg");
  background-repeat: no-repeat;
  /* Anchored bottom-right and deliberately under `cover`, so the mockups sit
     in the lower-right corner and the upper-left stays open for the copy.
     `cover` would fill the box and put devices straight behind the headline -
     which is the whole thing this layout is arranged to avoid. The percentage
     is of the CARD, not the image, so it tracks the tile at every breakpoint
     instead of needing a value per width. */
  background-size: 158% auto;
  background-position: right bottom;
}

/* The phone-only whole-image blur that used to live here is gone: .bento__plate
   now carries a backdrop blur at every width, so the copy is protected on a
   desktop and a handset by the same rule, and the artwork stays sharp on both.
   Blurring the entire media layer to rescue one paragraph was always the
   heavier instrument. */

/* The navy wash that carries the copy, now that the glass plate is gone.
   It runs on the diagonal - near-solid at the top-left where the headline and
   body sit, clear by the lower-right where the mockups are - so the text has
   a flat, predictable ground and the artwork is never veiled.

   Diagonal rather than top-down: the copy is a corner block, not a band, and
   a 180deg ramp would have to darken the full width of the card to cover it,
   dimming the devices for nothing.

   These stops are measured, not picked. Re-measure if the photograph changes:
   the gradient is the ONLY thing standing between the body copy and the image
   now, where before there was a blurred plate as well. */
.bento__card--feature::before {
  background: linear-gradient(
    138deg,
    rgba(19, 45, 82, .94) 0%,
    rgba(19, 45, 82, .91) 34%,
    rgba(19, 45, 82, .74) 56%,
    rgba(19, 45, 82, .30) 74%,
    rgba(19, 45, 82, 0) 90%
  );
  opacity: 1;
}

/* Narrow tiles were the hard case. At 335x256 the copy filled the whole card,
   so the wash and the artwork were fighting over the same pixels: strong
   enough to carry the text at 4.5:1 meant strong enough to erase the mockups,
   and anything weaker measured 3.4:1 against a lit laptop screen.

   Neither wins that argument, so the tile stops having it. A taller minimum
   gives the artwork a band of its own below the copy, and the wash becomes a
   near-vertical ramp: solid where the words are, clear where the devices are.
   The diagonal belongs to the wide tile, where the copy really is a corner
   block; here it is a full-width stack and a diagonal just dims one side of
   the photograph for nothing. */
@media (max-width: 1023px) {
  .bento__card--feature { min-height: 430px; }

  .bento__card--feature::before {
    background: linear-gradient(
      177deg,
      rgba(19, 45, 82, .94) 0%,
      rgba(19, 45, 82, .92) 50%,
      rgba(19, 45, 82, .72) 64%,
      rgba(19, 45, 82, .26) 80%,
      rgba(19, 45, 82, 0) 93%
    );
  }

  /* Framed on the devices rather than the whole composition: the source has a
     wide empty left third that would otherwise eat the band. */
  .bento__media { background-size: 152% auto; }
}

/* No panel: no background, no border, no backdrop blur. The copy sits
   straight on the card in its top-left corner and the ::before wash above is
   what makes it readable. Carrying no padding of its own matters - the card
   already pads itself, and a second inset would push the text off the optical
   margin every other tile in the grid lines up to. */
.bento__plate {
  position: relative;
  align-self: flex-start;
  max-width: 42ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bento__card--feature:hover,
.bento__card--feature:focus-visible,
.bento__card--feature.is-active {
  border-color: rgba(31, 180, 204, .55);
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, .75);
}

.bento__card--feature .bento__index { color: var(--accent-on-ink); }
.bento__card--feature .bento__title { color: #fff; margin-top: 0; }
.bento__card--feature .bento__desc  { color: #DCE3EA; }

/* The arrow sits on the bare photo, so it gets its own small chip. */
.bento__card--feature .bento__arrow {
  color: var(--on-ink);
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(6, 12, 24, .5);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.bento__card--feature:hover .bento__arrow,
.bento__card--feature:focus-visible .bento__arrow,
.bento__card--feature.is-active .bento__arrow { color: var(--accent-on-ink); }

/* On the dark tile the paper-safe --accent goes muddy, so the name takes the
   on-ink cyan instead (8.6:1 on the plate). */
.bento__card--feature:hover .bento__title,
.bento__card--feature:focus-visible .bento__title { color: var(--accent-on-ink); }

/* On touch the name stays white the whole way past. `.is-active` only ever
   exists on a touch device, so this is the mobile rule - but it has to be
   written out rather than just dropped from the list above: without it the
   generic `.bento__card.is-active .bento__title` outranks the feature tile's
   own colour on specificity and paints the paper-safe --accent (#0c6e80)
   onto the photograph, which is darker than the cyan it replaced. */
.bento__card--feature.is-active .bento__title { color: var(--on-ink); }

.bento__card--feature .bento__title {
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-weight: 500;
}
.bento__card--feature .bento__desc { font-size: var(--fs-body); max-width: none; }

/* ---- the "Enquire" label that tracks the cursor across the grid ---- */

/* Every card is an <a> to #contact, but on a grid of eight that reads as eight
   separate guesses about what a click does. One label answers it once, and it
   answers where the person is already looking.

   JS owns `transform` and nothing else; CSS owns opacity. Created only on fine
   pointers and never under reduced motion, so there is no state here for a
   touch device to get stuck in. */
.services__cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-menu);
  pointer-events: none;
  padding: .5rem .75rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--accent-on-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-out-quart);
}
.services__cursor.is-active { opacity: 1; }


/* ========================================================== 04 · FEATURES
   A deck of six cards that stack as the section is scrolled.

   The layout is deliberately boring without JavaScript: a sticky column of
   copy beside an ordinary list of cards. gsap-features.js takes the list,
   lays the cards on top of each other and drives them from scroll. If it
   never runs — no GSAP, reduced motion, an old browser — what is left is
   six readable cards in document order, which is why none of them is hidden
   here. */

.features__layout { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-12)); }

@media (min-width: 1024px) {
  .features__layout {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--space-8);
    align-items: start;
  }
  .features__intro { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + var(--space-10)); }
  .features__deck  { grid-column: 7 / 13; }
}

/* ----------------------------------------------------------- progress */

.features__progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
  color: var(--type-faint);
}

.features__progress-now { color: var(--accent); font-variant-numeric: tabular-nums; }
.features__progress-all { font-variant-numeric: tabular-nums; }

.features__progress-rule {
  width: 56px;
  height: 1px;
  background: var(--hairline-strong);
  position: relative;
  overflow: hidden;
}

/* Scaled from 0 to 1 by the deck, so the rule fills as the pile grows. */
.features__progress-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* --------------------------------------------------------------- deck */

.features__deck {
  list-style: none;
  display: grid;
  gap: var(--space-5);
}

/* The deck's palette is specified per card rather than added to tokens.css.
   These four are near-duplicates of brand tokens - #0B192C beside --ink
   #101d2b, #19ABC3 beside --accent-hi #1fb4cc - and promoting them to global
   tokens would leave the site with two almost-navies and two almost-cyans.
   Scoped here they dress one component without splitting the palette.

   Measured against both ends of the gradient: white 17.7:1 / 11.6:1, the body
   grey 11.5:1 / 7.6:1, cyan 6.4:1 / 4.2:1. The gradient runs navy at the top
   so the cyan index sits on the 6.4:1 end rather than the 4.2:1 one. */
.feature-card {
  --fc-navy: #0B192C;
  --fc-teal: #153D50;
  --fc-cyan: #19ABC3;
  --fc-body: #C4D3DF;

  position: relative;
  /* Keeps the corner glow inside the radius, and keeps its negative z-index
     inside this card rather than falling behind the section. */
  overflow: hidden;
  isolation: isolate;

  padding: clamp(var(--space-6), 2.4vw, var(--space-8));
  border-radius: 24px;
  background: linear-gradient(160deg, var(--fc-navy) 0%, var(--fc-teal) 100%);
  border: 1px solid rgba(25, 171, 195, .18);
  /* Cast dark rather than coloured. A cyan drop shadow on six stacked cards
     is where this tips into neon. */
  box-shadow: 0 18px 40px -22px rgba(4, 12, 22, .75);
}

/* The corner glow. Wide and weak on purpose - at a tighter radius or a higher
   alpha it stops reading as depth and starts reading as a light source. */
.feature-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -26%;
  width: 68%;
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(25, 171, 195, .20) 0%,
    rgba(25, 171, 195, .07) 45%,
    rgba(25, 171, 195, 0) 72%);
}

.feature-card__glyph {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--fc-cyan);
  /* Both tones cyan: the two-tone split that works on paper turns the accent
     stroke invisible against this ground. */
  --glyph-accent: #7FD4E4;
}

.feature-card__glyph svg { width: 100%; height: 100%; stroke-width: 2.1; }

.feature-card__index {
  display: block;
  margin-top: var(--space-5);
  color: var(--fc-cyan);
}

.feature-card__title {
  margin-top: var(--space-2);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: #fff;
}

.feature-card__text {
  margin-top: var(--space-3);
  color: var(--fc-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 46ch;
}

/* ------------------------------------------------- stacked (JS running)

   Added by gsap-features.js only when it is actually going to drive the
   deck. Everything that collapses the list into a pile lives behind this
   class, so the fallback above is never touched by it. */

.features__deck--stacked {
  display: block;
  position: relative;
  /* Holds the pile open: the list is one card tall once they overlap, and
     without a floor the section would collapse around it. */
  min-height: var(--deck-h, 320px);
  /* Cards waiting their turn sit below the deck. Without clipping they are
     simply visible down there, and because each waiting card outranks the
     one currently landing, they paint across its lower half. */
  overflow: hidden;
}

.features__deck--stacked .feature-card {
  position: absolute;
  left: 0;
  right: 0;
  /* Room above the resting card for the pile to lift into. Absolute children
     resolve against the padding box, so this cannot be padding on the deck. */
  top: var(--lift-room, 70px);
  /* Every card takes the tallest card's height, measured in JS. A card that
     does not cover the one beneath it is not a stack. */
  min-height: var(--card-h, auto);
  /* GPU-friendly: the deck only ever writes transform and opacity. */
  will-change: transform;
}

/* While pinned, centre the viewport on the deck rather than leaving the
   content at the top of a full-height pin with a screen of space below it. */
@media (min-width: 1024px) {
  .features--stacked > .container {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
  }
  .features--stacked .features__layout { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  /* The deck never starts under reduced motion, but if the class were ever
     applied the list must still read. */
  .features__deck--stacked { display: grid; min-height: 0; }
  .features__deck--stacked .feature-card { position: relative; inset: auto; transform: none !important; }
}

/* ============================================================== 04 · WORK */

.work__grid { display: grid; gap: clamp(var(--space-10), 5vw, var(--space-20)); }

@media (min-width: 768px) {
  .work__grid { grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 4vw, var(--space-16)); }
  /* Deliberate vertical offset: a staggered spread, not an even grid */
  .work__item:nth-child(even) { margin-top: clamp(var(--space-10), 7vw, var(--space-32)); }
}

.work__item { display: block; }

/* No card: the artwork is a cut-out with its own shadow, so it sits straight
   on the paper. The same call the hero and About artwork already make - a
   border drawn around a floating object frames the empty space beside it
   rather than the work.

   `overflow` goes with it. It existed to crop the hover zoom inside the card
   edge, which is right for an edge-to-edge screenshot; on a cut-out that
   reaches 93-100% of its own canvas it would clip the laptop's corners the
   moment it scaled. The element stays positioned for the corner rules. */
.work__frame {
  position: relative;
  margin-bottom: var(--space-6);
}

/* The hover lives on the image and the entrance lives on .work__item, which
   is what lets the two coexist: separate elements, so neither has to hand a
   transform to the other mid-flight.

   drop-shadow, not box-shadow. These are cut-outs — box-shadow would trace
   the transparent bounding box and hang a rectangle in mid-air behind a
   floating laptop. drop-shadow follows the alpha silhouette. It is the one
   place on the page a non-transform property animates, and it earns it:
   paint-only, and only ever on the single card under the pointer. */
.work__frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(16, 29, 43, .10));
  transition: transform var(--dur-hero) var(--ease-out-expo),
              filter var(--dur-hero) var(--ease-out-expo);
}

.work__item:hover .work__frame img,
.work__item:focus-visible .work__frame img {
  transform: translateY(-6px) scale(1.025);
  filter: drop-shadow(0 26px 40px rgba(16, 29, 43, .22));
}

/* Matches the bento cards: the lift goes, the state change stays. */
@media (prefers-reduced-motion: reduce) {
  .work__item:hover .work__frame img,
  .work__item:focus-visible .work__frame img { transform: none; }
}

/* Cyan corner rules that draw in on hover */
.work__frame::before,
.work__frame::after {
  content: "";
  position: absolute;
  background: var(--accent-hi);
  transition: transform var(--dur-reveal) var(--ease-out-expo);
}
.work__frame::before {
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
.work__frame::after {
  left: 0; bottom: 0;
  width: 2px; height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
}
.work__item:hover .work__frame::before,
.work__item:focus-visible .work__frame::before { transform: scaleX(1); }
.work__item:hover .work__frame::after,
.work__item:focus-visible .work__frame::after { transform: scaleY(1); }

.work__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-4);
}

.work__name {
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  transition: color var(--dur-micro) var(--ease-out-quart);
}
.work__item:hover .work__name { color: var(--accent); }

.work__desc { color: var(--type-muted); font-size: var(--fs-sm); max-width: 44ch; margin-bottom: var(--space-5); }

/* ============================ 02b · WHY ABONEX (inside About) */

/* Sits in the right half of the About grid, beside the artwork. Below 1024px
   it drops under the image at full width, where .about's own row-gap spaces
   it. `.reason__text` caps at 48ch either way, so the measure never stretches
   with the column. */
.why__reasons { border-top: 1px solid var(--hairline-strong); }

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: clamp(var(--space-6), 3vw, var(--space-10));
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 640px) { .reason { grid-template-columns: 5rem 1fr; gap: var(--space-8); } }

.reason__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: .8;
  color: var(--accent);
  opacity: .62;
}

.reason__title {
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-3);
}

.reason__text { color: var(--type-muted); max-width: 48ch; }

/* Stat row: separated by vertical hairlines, never boxed */
.stats {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline-strong);
}

@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: clamp(var(--space-6), 3vw, var(--space-10)) var(--space-5);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:first-child { padding-left: 0; }

@media (min-width: 900px) {
  .stat:nth-child(2n) { border-right: 1px solid var(--hairline); }
  .stat:last-child { border-right: 0; }
}

.stat__value {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-tighter);
  color: var(--type);
  margin-bottom: var(--space-3);
}
.stat__value .serif { color: var(--accent); }
.stat__label { color: var(--type-muted); font-size: var(--fs-sm); line-height: 1.4; }

/* =============================================================== 05 · CTA
   The visual peak. Six light sections precede it; that scarcity is what
   makes the dark land, and it lands exactly where conversion happens. */

/* Navy ground carrying a lit cyan wave field. This used to be a --band cyan
   slab with navy type; the waves are what replaced it, and they need a dark
   ground to read as light. Everything the band treatment reversed is simply
   deleted here, so .section--ink's own navy/on-ink rules apply untouched.

   The cost is recorded honestly: the page now has navy hero, navy CTA and
   navy footer. The waves are what has to carry the peak instead of the
   ground colour. See DESIGN.md §1. */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Cyan fill on navy, exactly as the hero's primary. */
.cta .btn--accent {
  --btn-bg: var(--accent-hi);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent-hi);
  --btn-fill: var(--on-ink);
  --btn-fill-fg: var(--ink);
}

/* .btn--ghost needs no override now - the shared on-ink treatment is right. */

/* ---- the wave field ---- */

/* Inverted from the reference art: that is dark ribbons on white, this is dark
   ribbons on the brand cyan, because .cta keeps --band. Going navy here would
   have handed the page three dark zones and no bright peak - the exact problem
   DESIGN.md records the cyan band as solving. */
.cta__waves {
  position: absolute;
  /* Exactly the section. The slack a drifting layer needs already lives in the
     path geometry - each curve is drawn from -1700 to 3400 against a 1600-wide
     viewBox, so a full-wavelength shift never pulls an end into view. Keeping
     the element itself at the section's size is what lets the mask below be
     expressed in the section's own percentages; oversizing it pushed the
     mask's opaque ring clean outside the visible area and all but erased the
     waves. */
  inset: 0;
  /* Explicit, because an <svg> is a replaced element: with height:auto it
     keeps the viewBox's own 2:1 ratio and ends up taller than the section
     (720px against 696px here), which `overflow: hidden` then silently crops.
     preserveAspectRatio="slice" is what should be doing the cropping. */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;

  /* What makes "bold" survivable. Full strength at the edges, clear through
     the middle, so the copy always sits on near-unmixed cyan. It is also what
     the reference does - the mesh is dense at the sides and open where the
     words are.

     These four numbers are measured, not chosen. The first attempt
     (unmasked) put the lead on a 1.70:1 ground against a 4.5:1 floor; this
     one measures 5.00:1 at its worst. The centre is held at .30 rather than
     fully clear, so the ribbons still cross behind the copy as they do in the
     reference - just not at strength. Re-measure if you touch them: widening
     the copy or lifting a layer's opacity both eat the margin.
     Both properties, because Safari still wants the prefix. */
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 50%,
    rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .22) 44%, #000 94%);
          mask-image: radial-gradient(ellipse 72% 66% at 50% 50%,
    rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .22) 44%, #000 94%);
}

/* A portrait section needs a different clearance than a landscape one. Below
   1024px the CTA is taller than it is wide and the copy fills nearly all of
   it, so the desktop ellipse no longer covers the text - 390px measured
   3.59:1 against the 4.5 floor. A rounder, larger ellipse restores it to
   5.65:1 without dimming a single layer. */
@media (max-width: 1023px) {
  .cta__waves {
    -webkit-mask-image: radial-gradient(ellipse 86% 86% at 50% 50%,
      rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .14) 52%, #000 98%);
            mask-image: radial-gradient(ellipse 86% 86% at 50% 50%,
      rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .14) 52%, #000 98%);
  }
}

/* Each layer is a positioned div wrapping its own <svg>, not a <g> inside one
   shared <svg>. That distinction is the whole performance story: transforms on
   an SVG <g> are not composited - Chrome re-rasterises every stroked path each
   frame, which measured 209ms per frame while scrolling this section. Wrapped
   in a div, the geometry rasterises once and the compositor just moves the
   cached texture. */
.cta__wave {
  position: absolute;
  inset: 0;
  /* Promotes the layer, which is what makes the cached-texture path possible.
     On the old <g> markup this same property made things *worse* (209ms ->
     126ms when removed): it was promoting five layers that still had to be
     re-rasterised anyway. */
  will-change: transform;
}

.cta__wave svg {
  width: 100%;
  height: 100%;
  display: block;
  /* The layer div is what GSAP translates, and an <svg> clips to its own
     viewport - so the clip travelled with it and sheared the ribbon off at
     exactly the drift distance. Letting content spill means the section's own
     `overflow: hidden` does the clipping instead, from a box that never moves.
     The path is drawn far past the viewBox precisely so it has something to
     spill. */
  overflow: visible;
}

/* The <defs> carrier holds no visible geometry. */
.cta__waves-defs { position: absolute; width: 0; height: 0; }

.cta__waves use {
  fill: none;
  stroke: url(#cta-wave-grad);
}

@media (prefers-reduced-motion: reduce) {
  .cta__wave { will-change: auto; }
}

.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1200px, 160vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* Cyan bloom rather than white: on navy this reads as the light the waves
     are throwing, and it lifts the centre just enough to seat the copy. */
  background: radial-gradient(circle,
    rgba(31, 180, 204, .20) 0%,
    rgba(31, 180, 204, .07) 38%,
    rgba(31, 180, 204, 0) 66%);
  pointer-events: none;
  z-index: 1;
}

.cta__inner { position: relative; display: grid; justify-items: center; gap: var(--space-8); }

.cta__title {
  font-size: var(--fs-display-l);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-tighter);
  max-width: 22ch;
}

/* Steps down from the shared .lead for the same reason .hero__lead does: both
   sit under a --fs-display-l headline, and at the full lead size the two
   compete. Matched to the hero's values so the page's two dark, centred
   moments are set the same way. */
.cta__lead {
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
}

/* =========================================================== 06 · PROCESS */

.process__rail { position: relative; }

/* Mobile: a vertical rail */
.process__track {
  position: absolute;
  left: 10px; top: 0;
  width: 1px; height: 100%;
  background: var(--hairline-strong);
}
.process__progress {
  position: absolute;
  left: 10px; top: 0;
  width: 1px; height: 100%;
  background: var(--accent-hi);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  transition: transform 120ms linear;
}

.process__steps { display: grid; gap: var(--space-10); }

.step { position: relative; padding-left: calc(var(--space-10) + var(--space-2)); }

.step__dot {
  position: absolute;
  left: 4px; top: 10px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  transition: background var(--dur-reveal) var(--ease-out-expo),
              border-color var(--dur-reveal) var(--ease-out-expo);
}
.step.is-active .step__dot { background: var(--accent-hi); border-color: var(--accent-hi); }

.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline-strong);
  margin-bottom: var(--space-4);
  transition: color var(--dur-hero) var(--ease-out-expo),
              -webkit-text-stroke-color var(--dur-hero) var(--ease-out-expo);
}
.step.is-active .step__num { color: var(--type); -webkit-text-stroke-color: transparent; }

.step__title {
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-3);
}

.step__text { color: var(--type-muted); font-size: var(--fs-sm); max-width: 34ch; }

/* Desktop: the rail turns horizontal */
@media (min-width: 1024px) {
  .process__track,
  .process__progress {
    left: 0; top: 7px;
    width: 100%; height: 1px;
  }
  .process__progress { transform: scaleX(var(--p, 0)); transform-origin: left; }

  .process__steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-6); }

  .step { padding-left: 0; padding-top: var(--space-10); }
  .step__dot { left: 0; top: 1px; }
  .step__text { max-width: 24ch; }
}

/* =============================================================== 07 · FAQ */

.faq__layout { display: grid; gap: var(--space-10); }

@media (min-width: 1024px) {
  .faq__layout { grid-template-columns: repeat(12, 1fr); gap: var(--space-8); }
  .faq__aside { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + var(--space-10)); align-self: start; }
  .faq__list  { grid-column: 6 / 13; }
}

.faq__aside .btn { margin-top: var(--space-8); }

/* The FAQ sits on tint, so give its accordion rows a paper-tint hairline */
.section--tint .accordion__item { border-bottom-color: var(--hairline-strong); }

/* =========================================================== 08 · CONTACT */

.contact__layout { display: grid; gap: clamp(var(--space-12), 6vw, var(--space-20)); }

@media (min-width: 1024px) {
  .contact__layout { grid-template-columns: repeat(12, 1fr); gap: var(--space-16); }
  .contact__aside { grid-column: 1 / 6; }
  .contact__form  { grid-column: 7 / 13; }
}

.channels { border-top: 1px solid var(--hairline-strong); margin-bottom: var(--space-10); }

.channel {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--hairline);
  transition: padding-left var(--dur-micro) var(--ease-out-quart);
}
.channel:hover { padding-left: var(--space-3); }

.channel__value {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  transition: color var(--dur-micro) var(--ease-out-quart);
}
.channel:hover .channel__value { color: var(--accent); }

.next { border-top: 1px solid var(--hairline); }

.next li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--hairline);
}

.next strong { display: block; font-weight: 500; margin-bottom: 2px; }
.next span { color: var(--type-muted); font-size: var(--fs-sm); }

/* ============================================================== FOOTER */

.footer {
  /* Must match `main`'s stacking: the fixed .rules overlay sits at z-index 0
     and would otherwise paint its grid straight over the card. */
  position: relative;
  z-index: var(--z-body);
  /* Paper, not ink. The dark moved to .footer__card, so the footer now shares
     a ground with the contact section above it and the two read as one block
     - which is the whole point of the inset-card treatment. */
  background: var(--paper);
  padding-top: 0;
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

/* The card. Inset on the paper rather than a full-bleed band, so the page
   closes on a contained object instead of running off the bottom edge. */
.footer__card {
  background: var(--ink-deep);
  color: var(--on-ink);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  overflow: hidden;
}

.footer__top { display: grid; gap: var(--space-10); }

@media (min-width: 900px) {
  /* Brand | links. The hairline is a border on the links cell rather than a
     separate element - one fewer div for a 1px rule. A fourth `auto` column
     used to hold the social icons; it went with them. */
  .footer__top {
    /* The link cell carries three lists now rather than two, so it takes a
       larger share than the 1.25fr it had when it held Navigate and Services
       alone. */
    grid-template-columns: 1.05fr auto minmax(0, 1.75fr);
    gap: clamp(var(--space-8), 4vw, var(--space-16));
    align-items: start;
  }
  .footer__links {
    grid-column: 3;
    border-left: 1px solid var(--hairline-ink);
    padding-left: clamp(var(--space-8), 4vw, var(--space-16));
  }
}

/* Two columns at every width, including the narrowest. Stacked, the short
   link lists pushed the copyright most of a screen further down for no gain;
   side by side they read as one block. */
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-5);
}

/* Contact takes the whole row underneath the other two until there is room
   for a third column. An email address and a formatted phone number do not
   survive half of a 320px screen, and wrapping info@abonex.in across two
   lines to save a row is a bad trade. */
.footer__col--contact { grid-column: 1 / -1; }

@media (min-width: 560px) {
  .footer__links { gap: var(--space-8); }
}

@media (min-width: 900px) {
  .footer__links { grid-template-columns: repeat(3, auto); }
  .footer__col--contact { grid-column: auto; }
}

.footer__brand { max-width: 34ch; }
.footer__tagline {
  margin-top: var(--space-6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
  color: var(--on-ink);
}
.footer__tagline-dim { color: var(--on-ink-muted); }

.footer__brand p { margin-top: var(--space-5); color: var(--on-ink-muted); font-size: var(--fs-sm); }

.footer__col h3 { margin-bottom: var(--space-5); color: var(--on-ink-muted); }
.footer__col li + li { margin-top: var(--space-3); }
.footer__col a {
  color: var(--on-ink-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-micro) var(--ease-out-quart);
}
.footer__col a:hover { color: var(--accent-on-ink); }


.footer__bottom {
  margin-top: clamp(var(--space-12), 7vw, var(--space-24));
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline-ink);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p { color: var(--on-ink-muted); font-size: var(--fs-xs); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--on-ink-muted);
  transition: color var(--dur-micro) var(--ease-out-quart);
}
.to-top:hover { color: var(--accent-on-ink); }
.to-top svg { width: 14px; height: 14px; transition: transform var(--dur-micro) var(--ease-out-quart); }
.to-top:hover svg { transform: translateY(-3px); }


/* ===================================================== LEGAL PAGES
   privacy.html and terms.html. Long-form prose rather than sections, so it
   gets a measure cap and its own heading rhythm; everything else (tokens,
   type, nav, footer) is inherited unchanged so the pages cannot drift away
   from the site. */

.legal { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }

.legal__head { margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.legal__title {
  font-size: var(--fs-display-l);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--ls-tighter);
  text-wrap: balance;
}
.legal__updated { margin-top: var(--space-5); color: var(--type-faint); }

/* 68ch, not the 44ch used for card copy: legal text is read in long runs and
   a narrow measure turns it into a ladder. */
.legal__body { max-width: 68ch; }

.legal__body h2 {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  margin-bottom: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}
.legal__body h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--fs-body);
  font-weight: 600;
}
.legal__body p,
.legal__body li { color: var(--type-muted); }
.legal__body p + p { margin-top: var(--space-5); }

/* base.css strips list-style from every ul/ol for the nav and card lists.
   Legal prose is the one place markers genuinely help a reader parse a set of
   obligations, so they are put back here rather than globally. */
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body ul,
.legal__body ol { margin-top: var(--space-5); padding-left: var(--space-7); }
.legal__body li { margin-top: var(--space-3); }
.legal__body li::marker { color: var(--accent); }

.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--accent-deep); }
.legal__body strong { color: var(--type); font-weight: 600; }

/* Pulled-out note for the things a reader should not miss. */
.legal__note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-left: 2px solid var(--accent-hi);
  background: var(--paper-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.legal__note p { color: var(--type); }

/* Trimmed header for pages that are not the single-page app. */
.nav--plain .nav__inner { justify-content: space-between; }

/* ================================================ FLOATING WHATSAPP CHAT
   Sits above the page but below the mobile menu, so an open menu is never
   fighting it. Collapsed to a circle, expanding to show its label on hover
   and on keyboard focus - the label is what makes the target legible to
   someone who does not recognise the glyph. */

.wa-chat {
  position: fixed;
  right: clamp(var(--space-4), 3vw, var(--space-8));
  /* Clears the home indicator on iOS rather than sitting under it. */
  bottom: calc(clamp(var(--space-4), 3vw, var(--space-8)) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-nav);

  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 56px;
  padding-inline: 17px;
  max-width: 56px;

  border-radius: var(--r-pill);
  /* WhatsApp's own brand green with the white mark, because that pairing is
     what people actually scan for in a page corner.

     The ring is not decoration. #25D366 measures 1.88:1 against --paper, so
     on the light two-thirds of the page the button's own edge would be hard
     to make out - under the 3:1 WCAG asks of a control boundary. #128C7E is
     WhatsApp's mid brand green and is the only one of their greens that
     clears 3:1 on BOTH grounds this button floats over: 3.93:1 on --paper and
     4.12:1 on --ink. (Their darkest, #075E54, is 7.28:1 on paper but only
     2.22:1 on navy - it would have failed over the hero and the CTA.)

     The white-on-green glyph itself is 1.98:1. That is WhatsApp's own
     specification and changing it would stop the mark being the mark, so the
     ring carries the contrast instead and the 22px glyph is backed up by an
     aria-label. */
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 0 1.5px #128c7e, var(--shadow-2);
  overflow: hidden;
  white-space: nowrap;

  transition: max-width var(--dur-reveal) var(--ease-out-expo),
              box-shadow var(--dur-reveal) var(--ease-out-expo),
              transform var(--dur-micro) var(--ease-out-quart);
}

/* ~40% of the button, which is where a floating action button's glyph
   normally sits. At 18px the mark read as undersized in a 56px circle. */
.wa-chat__icon { width: 22px; height: 22px; flex: none; }

.wa-chat__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  /* Faded, not just clipped. Collapsed, the label begins at
     17 + 22 + 12 = 51px inside a 56px box, so `overflow: hidden` alone left a
     5px slice of its first letter showing against the circle's edge. Opacity
     makes that impossible regardless of how the arithmetic lands. */
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-out-quart);
}

.wa-chat:hover .wa-chat__label,
.wa-chat:focus-visible .wa-chat__label { opacity: 1; }

.wa-chat:hover,
.wa-chat:focus-visible {
  max-width: 230px;
  box-shadow: 0 0 0 1.5px #128c7e, var(--shadow-3);
  transform: translateY(-2px);
}

/* Touch has no hover to expand with, so the label would never be reachable.
   Below the breakpoint it stays a plain circle and the aria-label carries it. */
@media (max-width: 767px) {
  .wa-chat { height: 52px; padding-inline: 15.5px; max-width: 52px; }
  .wa-chat__icon { width: 21px; height: 21px; }
  .wa-chat:hover, .wa-chat:focus-visible { max-width: 52px; transform: none; }
  .wa-chat__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-chat:hover, .wa-chat:focus-visible { transform: none; }
}
