/* ===========================================================================
   HOME — section 04, the closer: FOLLOW US.

   ── where this design comes from ──
   more-nutrition.webflow.io, its closing testimonial band. Read off the
   live stylesheet in the browser rather than from memory, so the numbers
   below are the reference's own:

     section            height 78.1875em, position relative
     backdrop           absolute inset, object-fit cover, scale 1.05,
                        transform-origin 50% 100%
     big headline       11.25em / 70% / -.03em, centred, white
     stack              flex column, justify-content flex-end, full height
     small headline     3em / 70% / 600, uppercase, centred, white
     card row           items 32vw wide, gap 1.25em
     card               1px white border, radius .375em, padding 2.5em,
                        flex column, space-between
     card, active       solid white background
     card heading       2.5em / 92% / 500
     card body          1.875em / 92% / -.03em
     card name          1.625em / 92% / 500

   ── what is NOT taken from it ──
   The left/right arrows. The operator asked for the band without them, and
   with three cards and no fourth there is nothing to page to. The row is a
   grid rather than a scroller as a result, so the three cards share the
   measure instead of each taking 32vw.

   The reference also marks ONE card active, solid white among outlined
   ones. Picking a favourite platform is not this section's job, so that
   solid state became the HOVER state instead — the same look, earned by
   pointing at it.

   ── the scaling system ──
   Same as the collage above it: font-size = clamp(992px, 100vw, 2560px)/90,
   which is 16px at 1440. Every em below is therefore the reference's own
   number at its own base, and the band holds its shape on a 2560 monitor
   instead of stranding three small cards in the middle of it.

   THE TWO HEADLINES ARE AN EXCEPTION and are stated in px, for the same
   reason the collage's is: a headline that has to agree with the sections
   above it belongs on their ruler. categories-flow is
   clamp(30px,4.4vw,60px) and the collage now matches it. This band closes
   the page, so its headline is allowed to be the biggest one on it after
   the hero — clamp(40px,7.4vw,112px) — but it is still the page's scale,
   not the reference's 180px.

   ── colours ──
   --mag resolves from the theme preset first. The live theme ships accent-1
   as #ec1e79; the hex is only the fallback for the standalone preview.
   =========================================================================== */

#sffw{
  --mag: var(--wp--preset--color--accent-1, #ec1e79);
  --page:#171717;
  --ink:#fff;
  --ink2:rgba(255,255,255,.74);
  --ink3:rgba(255,255,255,.45);
  --line:rgba(255,255,255,.26);

  --black:'Archivo Black','Arial Black',sans-serif;
  --tech:'Chakra Petch','Archivo',system-ui,sans-serif;
  --body:'Archivo',system-ui,sans-serif;

  font-size: calc( clamp(992px, 100vw, 2560px) / 90 );
}

#sffw,
#sffw *{ box-sizing:border-box; }

.sffw{
  position:relative;
  /* z-index 2 is REQUIRED, not decoration — the same reason the collage and
     home-sequence carry it. A sticky container earlier in this Elementor
     page keeps its sticky containing block for the rest of the document and
     paints over everything after it. */
  z-index:2;
  background:var(--page);
  color:var(--ink);
  overflow:hidden;
  font-family:var(--body);
  min-height:52em;
  padding-block:6em 5em;
}

/* ───────────────────────────  the backdrop  ─────────────────────────── */

.sffw__bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.sffw__bg-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  /* the reference overscans its backdrop by 5% from the bottom edge, which
     is what stops a seam showing while the section moves under it */
  transform-origin:50% 100%;
  scale:1.05;
  /* NO EXPOSURE CORRECTION. This is a real photograph, lit and exposed
     already — the macro of a gold sport rim with RIDE RACE RESEARCH cast
     into the spoke.

     The backdrop before it was the live store's section texture, which is
     near-black because it is designed to sit UNDER light product shots.
     As a full-bleed backdrop it read as nothing and needed
     brightness(1.95) to show at all. A photograph that needs two stops of
     lift to be visible is the wrong photograph; the fix was the image,
     not the filter. Only a touch of contrast here, to hold the gold
     against the black once the scrim is over it. */
  filter: contrast(1.06) saturate(1.04);
}
/* The gold is bright and the headline is white, so unlike the texture this
   image genuinely needs a scrim — the same thing the reference does to its
   photograph. Strong enough that white type clears it, light enough that
   the knurling and the cast lettering still read. */
.sffw__scrim{
  position:absolute;
  inset:0;
  background:
    /* 1. the pool behind the headline, where the rim is brightest */
    radial-gradient(92% 66% at 50% 38%, rgba(10,10,10,.70) 0%, rgba(10,10,10,.46) 58%, rgba(10,10,10,.26) 100%),
    /* 2. the top and bottom fade, so the band joins the black sections
          above and below it instead of starting on a hard edge */
    linear-gradient(180deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.14) 20%, rgba(10,10,10,.30) 74%, rgba(10,10,10,.96) 100%);
}

/* ───────────────────────────  the stack  ─────────────────────────── */

.sffw__inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-flow:column;
  /* the reference pins its stack to the bottom of a fixed-height section.
     This one is content-height with the two blocks pushed apart, which
     survives a long handle wrapping on a phone. */
  justify-content:space-between;
  gap:5em;
  min-height:40em;
  padding-inline:2.5em;
}

.sffw__top{
  display:flex;
  flex-flow:column;
  align-items:center;
  gap:1.75em;
}

.sffw__eyebrow{
  margin:0;
  display:flex;
  align-items:center;
  gap:.625em;
  font:700 12px/1 var(--tech);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink3);
}
.sffw__eyebrow i{
  width:6px; height:6px; border-radius:50%;
  background:var(--mag);
}

.sffw__big{
  margin:0;
  text-align:center;
  text-transform:uppercase;
  font-family:var(--black);
  font-weight:400;
  /* the page's scale, not the reference's 11.25em — see the note at the
     head of this file. The longest line here is "Ride it." which Archivo
     Black sets at about 5.1x the font-size, so 112px needs 571px of the
     1360 available at 1440: it is the SHORT lines that let this one be
     bigger than the collage's, not a different rule. */
  font-size:clamp(40px,7.4vw,112px);
  line-height:.92;
  letter-spacing:-.035em;
  color:var(--ink);
}
.sffw__big span{ display:block; }
.sffw__big-accent{ color:var(--mag); }

/* ───────────────────────────  the foot  ─────────────────────────── */

.sffw__foot{
  display:flex;
  flex-flow:column;
  align-items:center;
  gap:2.5em;
}

.sffw__sub{
  margin:0;
  text-align:center;
  text-transform:uppercase;
  font-family:var(--black);
  font-weight:400;
  font-size:clamp(22px,2.6vw,38px);
  line-height:1;
  letter-spacing:-.02em;
  color:var(--ink);
}

.sffw__cards{
  width:100%;
  max-width:84em;
  margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25em;
}

/* ───────────────────────────  a card  ─────────────────────────── */

.sffw-card{
  display:flex;
  flex-flow:column;
  align-items:flex-start;
  gap:.75em;
  padding:2.5em;
  border:max(.0625em,1px) solid var(--line);
  border-radius:.375em;
  text-decoration:none;
  color:var(--ink);
  background:rgba(10,10,10,.34);
  -webkit-backdrop-filter:blur(.5em);
  backdrop-filter:blur(.5em);
  transition:background .3s ease, border-color .3s ease, color .3s ease,
             translate .3s cubic-bezier(.22,1,.36,1);
}

/* the reference's `.active` card, as a hover state */
.sffw-card:hover,
.sffw-card:focus-visible{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--page);
  translate:0 -4px;
}

.sffw-card__mark{
  width:2.75em; height:2.75em;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--mag);
  color:#fff;
  margin-bottom:.5em;
}
.sffw-card__mark svg{
  width:1.4em; height:1.4em;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sffw-card__mark .dot{ fill:currentColor; stroke:none; }

.sffw-card__name{
  font-family:var(--black);
  font-weight:400;
  font-size:clamp(20px,1.9vw,28px);
  line-height:1;
  letter-spacing:-.02em;
  text-transform:uppercase;
}

.sffw-card__at{
  font-size:clamp(13px,1.05vw,16px);
  line-height:1.4;
  color:var(--ink2);
  /* a handle is one token and must never be hyphenated or broken mid-word;
     @superflymotosofficial is 23 characters and will try */
  overflow-wrap:anywhere;
}
.sffw-card:hover .sffw-card__at,
.sffw-card:focus-visible .sffw-card__at{ color:rgba(10,10,10,.68); }

.sffw-card__line{
  width:100%;
  height:max(.0625em,1px);
  margin-top:auto;
  background:currentColor;
  opacity:.18;
}

.sffw-card__go{
  display:flex;
  align-items:center;
  gap:.625em;
  padding-top:.25em;
  font:700 12px/1 var(--tech);
  letter-spacing:.18em;
  text-transform:uppercase;
}
.sffw-card__go svg{
  width:.75em; height:.75em;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:translate .3s cubic-bezier(.22,1,.36,1);
}
.sffw-card:hover .sffw-card__go svg,
.sffw-card:focus-visible .sffw-card__go svg{ translate:3px -3px; }

/* ═══════════════════  below the reference's own breakpoint  ═══════════════════ */

@media (max-width:991px){
  #sffw{ font-size: calc( clamp(360px, 100vw, 991px) / 42 ); }

  .sffw{ min-height:0; padding-block:4em 4em; }
  .sffw__inner{ min-height:0; gap:3.5em; padding-inline:1.25em; }
  .sffw__top{ gap:1.25em; }
  .sffw__foot{ gap:1.75em; }

  /* three bordered cards side by side stop being readable long before the
     type does: at 768 each one is 236px wide and @superflymotosofficial
     alone is most of that. One column, and the row becomes a list. */
  .sffw__cards{ grid-template-columns:1fr; max-width:34em; gap:.75em; }

  .sffw-card{
    flex-flow:row;
    align-items:center;
    gap:1em;
    padding:1.25em 1.5em;
  }
  .sffw-card__mark{ margin-bottom:0; flex:none; }
  .sffw-card__name{ flex:none; }
  .sffw-card__at{ flex:1 1 auto; }
  /* the rule is a column device; in a row it would cut the card in half */
  .sffw-card__line{ display:none; }
  .sffw-card__go span{ display:none; }   /* the arrow alone carries it */
  .sffw-card__go{ margin-left:auto; padding-top:0; }
  .sffw-card__go svg{ width:14px; height:14px; }
}

@media (max-width:560px){
  .sffw-card{ flex-flow:row wrap; }
  .sffw-card__name{ font-size:18px; }
  .sffw-card__at{ flex:1 0 100%; order:3; }
}

/* ───────────────────────────  reduced motion  ─────────────────────────── */

@media (prefers-reduced-motion:reduce){
  .sffw-card,
  .sffw-card__go svg{ transition:none; }
  .sffw-card:hover,
  .sffw-card:focus-visible{ translate:none; }
}
