/* =========================================================================
   Jamaity — effects

   The layer that turns the system into a site: type that arrives line by
   line, surfaces with depth, media that responds, a hero that carries the
   page. Everything here is additive — remove this file and the site is the
   restrained version, intact.

   Still bound by the system's rules: mint is a shape colour and never type,
   no physical directions, chrome on the raw type scale, and every motion
   collapses under prefers-reduced-motion.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Split-text reveal
   ------------------------------------------------------------------------- */

.fx-line { display: block; overflow: hidden; }

.fx-line__in {
  display: block;
  transform: translateY(105%);
  transition:
    transform 900ms cubic-bezier(0.16, 0.84, 0.44, 1)
    calc(var(--line-i, 0) * 90ms + var(--fx-delay, 0ms));
}

.fx-in .fx-line__in,
[data-split].fx-in .fx-line__in { transform: none; }

/* The shards are decoration; the source string is on the parent's aria-label. */
[aria-hidden-shards] .fx-word { display: inline-block; }

/* -------------------------------------------------------------------------
   Generic fx reveal — a softer, later cousin of [data-anim]
   ------------------------------------------------------------------------- */

.js [data-fx]:not(.fx-in) { opacity: 0; }
.js [data-fx="up"]:not(.fx-in)    { transform: translateY(26px); }
.js [data-fx="scale"]:not(.fx-in) { transform: scale(0.965); }
.js [data-fx="blur"]:not(.fx-in)  { filter: blur(10px); opacity: 0; }

[data-fx] {
  transition:
    opacity 760ms var(--ease-entrance) var(--fx-delay, 0ms),
    transform 760ms var(--ease-entrance) var(--fx-delay, 0ms),
    filter 760ms var(--ease-entrance) var(--fx-delay, 0ms);
}
[data-fx].fx-in { opacity: 1; transform: none; filter: none; }

/* Children of a group are revealed by JS, so they need the same transition. */
[data-fx-group] > * {
  transition:
    opacity 700ms var(--ease-entrance) var(--fx-delay, 0ms),
    transform 700ms var(--ease-entrance) var(--fx-delay, 0ms);
}
.js [data-fx-group]:not(.fx-in) > * { opacity: 0; transform: translateY(22px); }
[data-fx-group] > .fx-in { opacity: 1; transform: none; }

/* Revealed because the visitor loaded below them: present, not animating. */
.fx-no-anim .fx-line__in,
.fx-no-anim { transition: none !important; }

/* -------------------------------------------------------------------------
   Parallax — driven by --py from one rAF loop in fx.js
   ------------------------------------------------------------------------- */

[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* -------------------------------------------------------------------------
   Surfaces

   A mesh of two soft brand lights over the deep blue, plus a fine grain so
   the gradient never bands. The grain is an inline SVG turbulence — no
   asset, no request, and it tiles forever.
   ------------------------------------------------------------------------- */

.c-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.c-mesh::before,
.c-mesh::after {
  content: "";
  position: absolute;
  inline-size: 60vmax;
  block-size: 60vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--mesh-opacity, 0.5);
}

.c-mesh::before {
  background: radial-gradient(circle, var(--mesh-a, hsl(225 100% 55%)) 0%, transparent 65%);
  inset-block-start: -22%;
  inset-inline-end: -14%;
  animation: fx-drift-a 26s ease-in-out infinite alternate;
}

.c-mesh::after {
  background: radial-gradient(circle, var(--mesh-b, hsl(141 60% 60%)) 0%, transparent 65%);
  inset-block-end: -30%;
  inset-inline-start: -16%;
  animation: fx-drift-b 32s ease-in-out infinite alternate;
}

@keyframes fx-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-8%, 10%, 0) scale(1.18); }
}
@keyframes fx-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(10%, -8%, 0) scale(0.92); }
}

.c-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.32);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Frosted panel, for controls sitting on the mesh. */
.c-glass {
  background: hsl(0 0% 100% / 0.1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.22);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */



/* Scroll cue — the dot motif, falling. */
.c-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-2xs-raw);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.55);
}
[lang="ar"] .c-cue, [dir="rtl"] .c-cue { text-transform: none; letter-spacing: 0; }
.c-cue__rail {
  position: relative;
  inline-size: var(--stroke);
  block-size: 42px;
  background: hsl(0 0% 100% / 0.22);
  overflow: hidden;
}
.c-cue__rail::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 14px;
  background: var(--mint-200);
  animation: fx-cue 2.1s var(--ease-in-out) infinite;
}
@keyframes fx-cue {
  0%   { transform: translateY(-16px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}

/* -------------------------------------------------------------------------
   Marquee
   ------------------------------------------------------------------------- */

/* Forced LTR. The loop depends on the two identical tracks being laid out in
   a known order: translating one track by -100% has to land the second one
   exactly where the first was. Under RTL the flex row reverses, so the second
   copy sits to the LEFT and the same translate walks both of them off-screen —
   measured at -1470..-326 against a strip at 44..842, i.e. nothing visible at
   all. The strip is a row of logos with no reading order, so pinning it to
   LTR costs nothing; the travel direction and the fade are mirrored below. */
.c-marquee {
  display: flex;
  direction: ltr;
  gap: var(--marquee-gap, var(--sp-10));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.c-marquee__track {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap, var(--sp-10));
  flex: none;
  animation: fx-marquee var(--marquee-dur, 46s) linear infinite;
}
.c-marquee:hover .c-marquee__track { animation-play-state: paused; }
@keyframes fx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--marquee-gap, 40px))); }
}
[dir="rtl"] .c-marquee__track { animation-direction: reverse; }

/* A logo has no intrinsic display width, so without a cap each item sized
   itself to the source file — 14 logos made a 9 658px track. */
.c-marquee {
  --chip-h: 46px;
  --logo-h: 30px;
}

.c-marquee__item {
  display: grid;
  place-items: center;
  block-size: var(--chip-h);
  inline-size: clamp(84px, 13vw, 136px);
  flex: none;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.c-marquee__item:hover { opacity: 1; filter: none; }

/* The logo is capped in PIXELS, not percentages.
   A percentage height on a grid item inside an auto-sized row is a cyclic
   dependency — the row sizes to the item, the item sizes to the row — so the
   browser resolves it to `auto`. `block-size: 100%` therefore did nothing and
   each 800x800 logo rendered at its 106px column width inside a 24px slot,
   overflowing the chip. */
.c-marquee__item img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: var(--logo-h);
  object-fit: contain;
}

/* On the brand panel the marks sit directly on the blue — no chip. That is
   only possible because these are inline, single-colour SVGs: the harvested
   partner logos cannot go here, since forty-one of them have a white
   background baked into the file, and tinting one to a silhouette paints a
   white rectangle instead of a mark. Swapping real logos back in means
   bringing the chip back with them. */
.c-marquee--on-brand .c-marquee__item {
  background: none;
  padding: 0;
  inline-size: auto;
  opacity: 0.72;
  filter: none;
  color: #fff;
}
.c-marquee--on-brand .c-marquee__item:hover { opacity: 1; }

.c-marquee__logo {
  inline-size: auto;
  block-size: var(--logo-h);
  max-inline-size: none;
}

/* -------------------------------------------------------------------------
   Card and media response

   Cards still do not launch off the page — the restraint decision stands.
   What is added is depth and a media zoom, which reads as craft rather than
   as a stock hover-lift.
   ------------------------------------------------------------------------- */

.c-card,
.c-iconcard,
.c-bento__item {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    border-color var(--dur-base) var(--ease-out),
    background   var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    transform    var(--dur-base) var(--ease-out);
}

/* --shadow-hover, not --lg or --md. In dark contexts --shadow-lg is 24px of
   near-black at 60%, which on the revealed ground reads as a dark halo around
   the card rather than as lift; --md was still heavier than a hover wants. */
.c-card:hover,
.c-iconcard:hover { box-shadow: var(--shadow-hover); }

.c-card--thumb .c-card__media,
.c-bento__item--media { overflow: hidden; }

.c-card--thumb .c-card__media img,
.c-bento__item--media img {
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}
.c-card--thumb:hover .c-card__media img,
a.c-bento__item--media:hover img { transform: scale(1.06); }

/* A hairline of brand light tracks the cursor across the top edge.

   The pseudo covers the WHOLE card and paints the hairline as a background
   strip, rather than being a 2px-tall box of its own. A box that short cannot
   carry the card's 32px corner radii — the browser scales every radius down
   to half the box height, so `inherit` gave it ~1px corners and the glow ran
   straight past the card's curve into the gap outside it. At full size the
   inherited radii are the real ones, and the background is clipped to them. */
.c-card::after,
.c-bento__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60px circle at var(--mx, 50%) 0,
              var(--shape-accent), transparent 70%) top / 100% var(--stroke-bold) no-repeat;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.c-card:hover::after,
.c-bento__item:hover::after { opacity: 0.9; }

/* The whole-card link overlay must stay above that hairline. */
.c-card__link::after { z-index: 1; }

/* -------------------------------------------------------------------------
   Bento — the feature tile gets a moving gradient edge
   ------------------------------------------------------------------------- */

.c-bento__item--glow {
  position: relative;
  background:
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    conic-gradient(from var(--angle, 0deg),
      var(--surface-brand), var(--shape-accent), var(--surface-brand)) border-box;
  border: var(--stroke-bold) solid transparent;
  animation: fx-angle 9s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes fx-angle { to { --angle: 360deg; } }

/* -------------------------------------------------------------------------
   Section chrome
   ------------------------------------------------------------------------- */

/* Scroll progress rail, pinned under the header. */
.c-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
}
.c-progress::after {
  content: "";
  display: block;
  block-size: 100%;
  inline-size: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--surface-brand), var(--shape-accent));
}
[dir="rtl"] .c-progress::after { transform-origin: right center; }

/* An eyebrow with a drawn rule beside it. */
.u-eyebrow--rule::after {
  content: "";
  inline-size: clamp(28px, 6vw, 70px);
  block-size: var(--stroke);
  background: currentColor;
  opacity: 0.4;
  margin-inline-start: var(--sp-2);
}

/* Large section number, set as a watermark behind the heading. */
.c-sectionhead--numbered { position: relative; }
.c-sectionhead__num {
  position: absolute;
  inset-block-start: -0.55em;
  inset-inline-start: -0.12em;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  font-variant-numeric: lining-nums;
}

/* -------------------------------------------------------------------------
   Reduced motion — everything above collapses to a static, complete page.
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .fx-line { overflow: visible; }
  .fx-line__in,
  [data-fx],
  [data-fx-group] > * { transform: none !important; filter: none !important; opacity: 1 !important; transition: none !important; }
  .c-mesh::before, .c-mesh::after,
  .c-marquee__track,
  .c-cue__rail::after,
  .c-bento__item--glow { animation: none !important; }
  [data-parallax] { transform: none !important; }
  .c-card, .c-iconcard, .c-bento__item { transform: none !important; }
  .c-card--thumb:hover .c-card__media img,
  a.c-bento__item--media:hover img { transform: none; }
}

/* =========================================================================
   Hero — angled panel

   An inset rounded panel with a diagonal bottom edge, the header sitting
   inside it, type on one side and a media figure carrying floating data
   pills on the other.

   The diagonal and the rounded corners are on two different elements
   because clip-path and border-radius cannot coexist: the panel rounds and
   clips, an absolutely positioned background layer inside it carries the
   polygon. Content is padded clear of the cut so nothing lands in the wedge.
   ========================================================================= */

.c-hero--angled {
  --cut: clamp(1.75rem, 4.5vw, 4.5rem);
  --pad: var(--sp-3);
  --overhang: clamp(1.25rem, 3.5vw, 3.5rem);
  /* Shared by the text column and the figure so the two start on the same
     line — the photo's top edge reads as deliberate, not arbitrary. */
  --hero-top: clamp(0rem, 0.75vh, 0.625rem);
  /* How far the cutout's head clears the top of its plate. */
  --head-out: clamp(1.5rem, 5vh, 4.5rem);
  /* Width of the cutout's plate. It is capped well below the column width,
     so the box reads as an object placed in the panel rather than as the
     column itself. */
  --plate-w: clamp(280px, 29vw, 440px);
  /* The whole hero — outer padding, panel and the photo's overhang — fits the
     viewport. svh, not vh, so mobile browser chrome does not push it under. */
  /* Not a full viewport. At 100svh the panel was ~240px taller than its own
     content needed, and since the figure is pinned to the bottom edge all of
     that slack opened up as empty blue between the header and her head.
     80svh closes it to ~60-90px. This is a floor, not a cap: the panel uses
     it as min-block-size, so taller content — Arabic's larger type scale, a
     longer heading — grows the hero rather than being clipped. */
  --hero-h: min(80svh, 780px);
  padding: var(--pad) var(--pad) var(--overhang);
  background: var(--surface);
}
@media (min-width: 900px) { .c-hero--angled { --pad: var(--sp-4); } }

/* The panel no longer clips: the photograph has to break out of its bottom
   edge. So the rounding and the wedge move onto the background layer, and the
   panel is just a positioning context. */
.c-hero__panel {
  position: relative;
  isolation: isolate;
  color: var(--text-on-brand);
  min-block-size: calc(var(--hero-h) - var(--pad) - var(--overhang));
  display: grid;
  grid-template-rows: auto 1fr;
}

.c-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 90% at 80% 0%, hsl(225 90% 34%) 0%, transparent 60%),
    linear-gradient(160deg, hsl(225 85% 17%) 0%, hsl(225 90% 12%) 100%);

  /* The diagonal is CUT OUT of the panel, not painted over it.
     It used to be a page-coloured wedge laid on top, which left a visible
     hairline along the whole bottom edge: the blue box and the white wedge
     were each antialiased against the same rounded clip, so every boundary
     pixel came out as `a*white over a*blue over white` and kept a few percent
     of blue. Compositing hints fixed the seam but broke the mesh's blending,
     and rounding the panel to whole pixels did not fix it at all, because the
     corners are curves and no integer height makes a curve land on a pixel.
     One clip instead of two layers removes the cause: there is nothing
     underneath left to bleed through.
     (clip-path and border-radius DO coexist — both clips simply apply.) */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut)));
}

[dir="rtl"] .c-hero__bg {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.c-hero__panel > *:not(.c-hero__bg) { position: relative; z-index: 2; }

/* Headings default to --text, which is near-black in the light theme — on a
   deep blue panel that is black-on-blue and unreadable. The panel sets the
   colour; everything inside inherits it. Scoping this to a single hero
   variant is what let it slip the first time — keep it on the panel. */
.c-hero__panel { color: var(--text-on-brand); }
.c-hero__panel :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

.c-hero__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  /* Halved. The bar and the eyebrow sat 92px apart, which read as a gap rather
     than as a header sitting on its own panel, and every pixel spent here is a
     pixel the logo strip does not get at the other end. */
  padding-block: clamp(0.75rem, 0.5rem + 1.5vw, 1.5rem) 0;
  min-block-size: 0;
}

/* Grid items default to min-width:auto, so they refuse to shrink below their
   content's min-content width. The marquee track is ~1 500px wide, which blew
   the whole column out of the panel until this was set. */
.c-hero__grid > * { min-inline-size: 0; }

/* The column is full-viewport tall, so centring the text left ~250px of empty
   blue above the eyebrow. The text sits near the top instead and the
   photograph stretches to fill the panel, which is what closes the gap —
   shortening the photo would not, since the row height comes from the panel. */
@media (min-width: 1000px) {
  .c-hero__grid { align-items: stretch; }
  .c-hero__grid > *:first-child {
    align-self: start;
    padding-block-start: var(--hero-top);
    /* The wedge is a triangle that is tallest on the inline-start side —
       precisely where this column ends — so the column has to clear --cut or
       the logo strip is sliced by the diagonal. --cut alone is only the point
       of contact, which reads as cramped, so a full step is added on top as
       breathing room. It is padding rather than a larger --hero-h because the
       panel takes its height from content: this reserves the space at every
       viewport instead of at the ones I measured. */
    padding-block-end: calc(var(--cut) + var(--sp-12));
  }

  /* The figure has to STRETCH the grid row, not sit at its end. `align-self:
     end` here was the whole problem: it beat the container's `stretch`, which
     left the row height auto, which made the photo's `block-size: 100%`
     resolve against nothing and fall back to auto. The photo then sized itself
     from its aspect ratio (372px), hugged the bottom, and left ~390px of empty
     blue in the top half of the column. Stretching the figure gives the photo
     a definite height to fill, via `align-self` rather than a percentage, so
     there is no cyclic dependency left to fail. */
  /* Sized rather than stretched. The right edge stays pinned to the column
     (justify-self) and the bottom stays on the wedge (align-self + the
     negative margin below), so the box shrinks upward and inward from the
     corner it already occupied.

     The FIGURE carries the size, not the plate, because both floating pills
     are absolutely positioned against the figure — shrinking only the plate
     would leave them hanging out over empty blue. The cutout's own ratio is
     on the figure too, so plate, image and pills all scale as one. */
  .c-hero__figure {
    display: flex;
    justify-self: end;
    align-self: end;
    inline-size: min(100%, var(--plate-w));
    aspect-ratio: 354 / 465;
    max-block-size: 100%;
  }
  .c-hero__figure .c-hero__photo {
    align-self: stretch;
    aspect-ratio: auto;
    block-size: auto;
    max-block-size: none;
    inline-size: 100%;
  }
}
@media (min-width: 1000px) {
  .c-hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--sp-16); }
}

/* =========================================================================
   Circle wipe, and the ground it reveals

   A circle grows from nothing to fill the screen while you scroll, and what
   it uncovers becomes the page's surface from there to the footer.

   The whole thing turns on ONE detail: the disc and the zone below it must
   paint an identical picture, or the join shows as a step the instant the
   sticky stage lets go. They share .u-ground-paint, and every layer in it is
   `background-attachment: fixed` — so the gradient is sized and positioned
   against the VIEWPORT, not against each element. Two boxes of different
   heights at different scroll offsets then resolve to exactly the same
   pixels, which is what makes the handover invisible. Sizing the gradient to
   each element instead cannot work: the disc is 100vh and the zone is several
   thousand pixels, so their gradients would run at different rates.
   ========================================================================= */

.u-ground-paint {
  background-color: var(--ground-2);
  background-image:
    /* grain — baked-in opacity, because a background layer cannot carry its own */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--ground-dot) 1px, transparent 1.6px),
    radial-gradient(120% 90% at 80% 0%, var(--ground-glow) 0%, transparent 60%),
    linear-gradient(160deg, var(--ground-1) 0%, var(--ground-2) 100%);
  background-size: 160px 160px, 26px 26px, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
}

/* The zone: everything from the wipe to the footer. It re-points the semantic
   tokens rather than restyling components, so cards, rules, tags and links
   inside adapt on their own — the same contract that lets dark mode work
   without a single component branching on theme. */
.u-ground {
  position: relative;
  color: var(--ground-text);

  --surface:        var(--ground-surface);
  --surface-sunken: var(--ground-surface-sunken);
  --surface-raised: var(--ground-raised);
  --surface-brand-soft:  var(--ground-brand-soft);
  --surface-accent-soft: var(--ground-accent-soft);
  --text:           var(--ground-text);
  --text-muted:     var(--ground-text-muted);
  --text-subtle:    var(--ground-text-subtle);
  --text-link:      var(--ground-link);
  --border:         var(--ground-border);
  --border-strong:  var(--ground-border-strong);
  --shape-accent:   var(--ground-shape);
}

.u-ground :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* The CTA panel would otherwise be the same blue as the ground it sits on and
   disappear. On this ground it becomes a raised sheet instead of a filled
   block — still a distinct object, without inventing a third colour. */
/* The panel's own colours assume it is a deep blue block on a light page.
   Inside the ground that assumption is wrong in both themes: it is a faint
   sheet, and in dark mode the ground under it is near-white — so white text
   on it was unreadable. Everything here re-reads the ZONE's tokens, which
   already carry the right polarity. */
.u-ground .c-brandpanel {
  border: var(--stroke) solid var(--border-strong);
  color: var(--text);
}

.u-ground .c-brandpanel :is(h1, h2, h3, h4) { color: inherit; }
.u-ground .c-brandpanel .u-eyebrow { color: var(--text-muted); }
.u-ground .c-brandpanel .u-muted   { color: var(--text-muted); }
.u-ground .c-brandpanel .fx-accent { color: var(--text-link); }

/* --on-brand pins this link to white for the deep blue panel. In the ground
   that is white on near-white in dark mode, so it goes back to the zone's
   link colour. */
.u-ground .c-brandpanel .c-sectionhead__link--on-brand { color: var(--text-link); }
.u-ground .c-brandpanel .c-sectionhead__link--on-brand:hover { color: var(--text); }

/* The ground is already four layers deep. A second mesh seen through a 6%
   sheet does not add depth, it just puts green and lilac blooms under the
   copy — which is what made this panel look washed out. Here the panel is a
   tint and a rule, nothing more. */
.u-ground .c-brandpanel .c-mesh,
.u-ground .c-brandpanel .c-grain,
.u-ground .c-brandpanel .c-pattern { display: none; }

.u-ground .c-brandpanel__bg { background: hsl(0 0% 100% / 0.06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .u-ground .c-brandpanel__bg { background: hsl(225 40% 12% / 0.06); }
}
:root[data-theme="dark"] .u-ground .c-brandpanel__bg { background: hsl(225 40% 12% / 0.06); }

/* Logo swap, inverted.
   The ground is the opposite polarity to the page, so the file the theme
   picked is the wrong one here: in the light theme the ground is deep blue
   and needs the light-on-dark artwork, and in the dark theme the ground is
   near-white and needs the dark-on-light one. Without this the footer mark
   was pale grey on near-white — effectively invisible. */
.u-ground .c-logo--light { display: none; }
.u-ground .c-logo--dark  { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .u-ground .c-logo--light { display: block; }
  :root:not([data-theme="light"]) .u-ground .c-logo--dark  { display: none; }
}
:root[data-theme="dark"] .u-ground .c-logo--light { display: block; }
:root[data-theme="dark"] .u-ground .c-logo--dark  { display: none; }

/* --- The wipe ------------------------------------------------------------
   A tall track holding a sticky, one-screen stage. The track's extra height
   is the scrub distance; the stage is what you actually watch. */

.c-reveal {
  position: relative;
  /* 100svh of stage + 100svh of scrub. */
  block-size: 200svh;
}

.c-reveal__stage {
  position: sticky;
  inset-block-start: 0;
  block-size: 100svh;
  overflow: clip;
  /* Opaque page ground: during the wipe this is all that is on screen, so the
     disc has something to grow against. */
  background: var(--surface);
}

.c-reveal__disc {
  position: absolute;
  inset: 0;

  /* Two phases, because the disc is clipped by the stage box and the stage is
     only worth 100svh.

     While the stage is still scrolling into view it is only PARTLY on screen,
     so anything wider than half its height gets sliced off flat against its
     top and bottom edges — a circle with two straight sides. The first phase
     therefore stops at exactly 50svh, which is tangent to the stage box: the
     largest circle that still reads as a circle.

     Once the stage is pinned it fills the viewport, so the stage edge and the
     viewport edge are the same line and the clip stops being visible. Only
     then does the radius run out to --r-max and cover the corners.

     The halfway point of the scrub is exactly when the stage pins, because
     the track is 200svh and the scrub starts one viewport before its top. */
  --r-mid: 50svh;
  --r-max: 78vmax;
  clip-path: circle(
    calc(
      clamp(0, calc(var(--reveal-t, 0) * 2), 1) * var(--r-mid) +
      clamp(0, calc(var(--reveal-t, 0) * 2 - 1), 1) * (var(--r-max) - var(--r-mid))
    ) at 50% 50%
  );
  will-change: clip-path;
}

/* A line that rides the wipe: invisible until the circle is wide enough to
   hold it, then fully legible. */
.c-reveal__label {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  translate: 0 -50%;
  text-align: center;
  padding-inline: var(--sp-6);
  color: var(--ground-text);
  opacity: clamp(0, calc((var(--reveal-t, 0) - 0.45) * 4), 1);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  /* No scrub: the ground is simply already there. */
  .c-reveal { block-size: auto; }
  .c-reveal__stage { position: static; block-size: auto; padding-block: var(--section-y); }
  .c-reveal__disc { clip-path: none; }
  .c-reveal__label { position: static; translate: none; opacity: 1; }
}

/* --- Header, sitting inside the panel ---------------------------------- */

.c-header--over {
  position: relative;
  z-index: 3;
  background: transparent;
  border-block-end: 0;
}
.c-header--over .c-header__inner { padding-block: var(--sp-5); }
/* The white treatment is for the nav INLINE IN THE BAR, floating on the dark
   hero. Below the collapse point the same links live in the off-canvas drawer,
   which has its own opaque surface and no hero behind it — left unscoped,
   these painted white text on a white panel in the light theme. */
@media (min-width: 1080px) {
  .c-header--over .c-nav__link { color: hsl(0 0% 100% / 0.72); }
  .c-header--over .c-nav__link:hover,
  .c-header--over .c-nav__link[aria-current="page"] { color: #fff; }
  .c-header--over .c-nav__link[aria-current="page"]::after { background: var(--shape-accent); }
}
.c-header--over .c-btn--outline { border-color: hsl(0 0% 100% / 0.38); color: #fff; }
.c-header--over .c-btn--outline:hover { background: hsl(0 0% 100% / 0.12); border-color: #fff; color: #fff; }
.c-header--over .c-btn--ghost { color: hsl(0 0% 100% / 0.8); }
.c-header--over .c-btn--ghost:hover { background: hsl(0 0% 100% / 0.1); color: #fff; }
/* The primary action inverts to the accent, as in a dark header. */
.c-header--over .c-btn--primary { background: var(--surface-accent); color: var(--text-on-accent); box-shadow: none; }
.c-header--over .c-btn--primary:hover { background: var(--mint-300); color: var(--blue-900); }
/* The nav used to be a translucent slab dropped under the bar here, tinted so
   the hero read through it. As an off-canvas panel it carries its own opaque
   surface, and this rule — still at the old 899px breakpoint — was overriding
   that background at 0.6 alpha: the drawer showed the page through itself and
   the links sat on top of the hero copy. Removed rather than retuned; there is
   nothing left for it to tint. */

/* The panel is inset, so this header has ~24px less room than the normal one
   and its action row stops fitting first. Let the actions wrap, and drop the
   two that are duplicated elsewhere (language lives in the footer, search has
   its own nav entry). */
@media (max-width: 620px) {
  /* One row, always: wrapping this doubled the header to 126px and ate a
     sixth of the fold. Language and sign-up moved into the off-canvas nav,
     search has its own nav entry, and the theme toggle is a preference, not
     a task.

     Selected by CLASS, not by aria-label. These were [aria-label="Langue"]
     and [aria-label="Rechercher"] — French strings, so the moment the
     interface could be Arabic or English the rules stopped matching and the
     header overflowed in two languages out of three. An accessible name is
     content; it is not a hook. */
  .c-header__actions { flex-wrap: nowrap; gap: var(--sp-2); }
  /* Search stays. It was dropped here when it led a five-control row and the
     login button was a full-width pill; now the login is a 40px circle and
     search sits beside the burger, so the phone row is three circles and has
     the room. Language and theme still live in the drawer and the footer. */
  .c-header__actions > .c-langs,
  .c-header__actions > #themeToggle { display: none; }
  .c-header--over .c-btn--primary { padding-inline: var(--sp-4); }
}

/* --- Figure ------------------------------------------------------------- */

.c-hero__figure {
  position: relative;
  /* Breaks out of the panel's bottom edge and over the wedge. Deliberately
     less than the full --overhang, so the photo's rounded bottom clears the
     fold instead of being sliced off by it: it crosses onto the white, and
     you can still see that it ends. */
  margin-block-end: calc(var(--overhang) * -0.75);
}
/* Below the two-column breakpoint the figure goes entirely — cutout, plate and
   both floating pills with it.
   Stacked, it was a decorative portrait sitting between the search bar and the
   first real content, pushing the catalogue off a phone's fold to say nothing
   the headline had not already said. The pills go with it rather than being
   re-homed: they are anchored to the figure's edges, and loose on a narrow
   column they read as two stray chips. The panel keeps its height from the
   text alone, which is what the single-column layout was always sized for. */
/* Tablet: the panel stops reserving a fold's worth of height.
   --hero-h exists to close the gap the PHOTO would otherwise leave — she is
   pinned to the bottom edge, so without a floor the panel collapsed to the
   text and left her stranded. With the figure hidden here there is nothing to
   fill that height with: measured at 768x1024 the panel held 741px of min
   height around 363px of content, and `align-items: center` split the 300px of
   slack into 150px above the eyebrow and 148px below the logo strip. Letting
   the content size the panel is the same decision that removed the figure. */
@media (min-width: 520px) and (max-width: 999px) {
  .c-hero__panel { min-block-size: 0; }
}

@media (max-width: 999px) {
  .c-hero__figure { display: none; }

  /* The wedge is tallest on the inline-start side — exactly where the logo
     strip ends. Above 1000px the text column reserves that space itself; in
     the stacked layout the figure used to hold the bottom of the panel open,
     and with it gone nothing did: measured at 390, the marquee ended 7px above
     the panel's edge in French and 7px BELOW it in Arabic, i.e. sliced by the
     diagonal. Same construction as the two-column rule, one step of breathing
     room on top of the cut. */
  .c-hero__grid { padding-block-end: calc(var(--cut) + var(--sp-10)); }
}

.c-hero__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  max-block-size: calc(var(--hero-h) - 11rem);
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border-end-start-radius: var(--radius-md);
  border: var(--stroke) solid hsl(0 0% 100% / 0.18);
  background: hsl(0 0% 100% / 0.06);
  /* No shadow. The card crosses from the deep blue onto the white page,
     and any drop shadow that reads as depth on the blue reads as dirt on
     the white. The border carries the edge instead. */
  box-shadow: none;
}
@media (min-width: 1000px) { .c-hero__photo { aspect-ratio: 3.4 / 4; } }

.c-hero__photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Sunk slightly into the brand so the photo reads as part of the panel
   rather than pasted onto it. */
.c-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(225 85% 10% / 0.55), transparent 55%);
  pointer-events: none;
}

/* --- Cutout variant: a person on a plate, head over the top edge ---------
   The plate stops being a frame around a photograph and becomes a backdrop
   behind a transparent PNG, so three things that are right for a photo are
   wrong here: the clip, the darkening gradient, and the fixed 3.4/4 ratio.

   The plate keeps whatever geometry the variant above gives it; only the
   IMAGE carries the cutout's proportions. That is the important part: the
   overflow is the one quantity stated outright — she is sized by HEIGHT to
   exactly the plate plus --head-out and anchored to the plate's bottom edge,
   so precisely --head-out of her clears the top, and her width simply
   follows. Proportioning the PLATE to her instead made it overshoot the fold
   and, below 1000px, collapse to nothing: with the image taken out of flow
   the plate has no content, so `inline-size: 100%` inside a shrink-to-fit
   figure is circular.

   Sizing her by width would not work either: `object-fit: contain` in a box
   taller than her aspect ratio just adds empty space above her head, and the
   head never reaches the edge at all. */
.c-hero__photo--cutout {
  overflow: visible;
  /* Forced LTR. The plate holds one image and no text, and the cutout inside
     is centred with a physical `translate` that never mirrors. Pinning the
     figure to LTR keeps the offset and the translate resolving against the
     same edge in both page directions. */
  direction: ltr;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.11), hsl(0 0% 100% / 0.03));
}

/* No scrim: it existed to sink a photograph into the panel, and over a cutout
   it would simply grey out her face and shirt. */
.c-hero__photo--cutout::after { content: none; }

/* Stacked, the plate has to take HER proportions rather than the 5/4 of a
   photograph, or she ends up a small figure adrift in a wide landscape box.
   Height is the given dimension and width follows, so the plate is bounded by
   the fold budget rather than by the column. Specificity is raised one class
   deliberately: the short-viewport rules further down the file also set
   block-size on .c-hero__photo, and those exist to shrink a photo — an
   svh-based height is already self-limiting, so they must not apply here. */
@media (max-width: 999px) {
  .c-hero__figure .c-hero__photo--cutout {
    aspect-ratio: 354 / 465;
    /* Solved against the fold, not chosen: a portrait plate is taller than
       the 5/4 photo it replaces, and anything above ~25svh pushed the stacked
       hero past 100svh at 390x844 and 360x640. */
    block-size: min(25svh, 260px);
    inline-size: auto;
    max-block-size: none;
    margin-inline: auto;
  }
}

/* The 50% offset and the -50% translate only cancel while both resolve
   against the same edge; `translate` is physical and never mirrors, so under
   RTL the cutout was drawn ~470px clear of its plate. The parent is pinned to
   `direction: ltr` above, which is what keeps this honest in Arabic.
   (Auto margins are not an alternative here: the cutout is WIDER than its
   plate, and with negative free space the auto-margin rule clamps one side by
   direction, which put her 16px off centre in RTL.) */
.c-hero__photo--cutout > img {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  translate: -50% 0;
  block-size: calc(100% + var(--head-out));
  inline-size: auto;
  max-inline-size: none;
  object-fit: contain;
  object-position: bottom center;
}

/* --- Floating data pills ------------------------------------------------ */

.c-hero__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3);
  border-radius: var(--radius-pill);
  box-shadow: none;

  /* The pills are anchored by one edge with a negative inset, so a pill wider
     than the figure pushes its OTHER edge out of the panel — which is what
     happened between 1000 and 1100px, where the column is narrow but the
     viewport is wide enough for two columns. The cap is the figure plus one
     gutter, the room that actually exists, and the text wraps instead of
     running past it. */
  max-inline-size: calc(100% + var(--gutter));
  white-space: normal;
}

.c-hero__pill > * { min-inline-size: 0; }

.c-hero__pill--proof {
  /* Clears the face. With the cutout anchored to the plate's bottom edge her
     eyes and mouth fall between roughly 14% and 37% of the plate height, and
     the old 12% put this pill straight across them. Retune this if the image
     is swapped for one framed differently. */
  inset-block-start: 44%;
  /* The overhang is bounded by the gutter, because that is literally all the
     room there is: the figure sits at the container's edge and the container
     is inset from the panel by --gutter. A flat -3vw ignored that and pushed
     the pill 7px outside the panel at ~1024px, where the viewport is wide
     enough for two columns but the gutter is still small.
     max() of two negatives takes the SMALLER overhang, so the gutter wins
     when it is tight and the 2.5rem cap wins when it is generous. */
  inset-inline-end: max(calc(var(--gutter) * -0.8), -2.5rem);
  background: var(--surface-accent);
  color: var(--text-on-accent);
}
.c-hero__pill--count {
  inset-block-end: 9%;
  inset-inline-start: max(calc(var(--gutter) * -0.8), -3rem);
  background: hsl(225 85% 11% / 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.16);
  color: #fff;
}

.c-hero__pill-icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--blue-700);
  color: var(--mint-200);
}
.c-hero__pill--count .c-hero__pill-icon { background: transparent; }

.c-hero__pill-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.2; }
.c-hero__pill-sub   { font-size: var(--fs-2xs-raw); opacity: 0.75; }

@media (max-width: 620px) {
  .c-hero__pill { padding-inline-end: var(--sp-4); }
  .c-hero__pill--proof { inset-inline-end: 0; }
  .c-hero__pill--count { inset-inline-start: 0; }
  .c-hero__pill-sub { display: none; }
}

/* -------------------------------------------------------------------------
   Keeping the hero on the fold

   The panel's min-height follows the viewport, but the CONTENT is what
   actually decides the height — so on a short or narrow viewport the type
   and the photograph have to give way, not the layout.
   ------------------------------------------------------------------------- */

/* Short laptops. */
@media (min-width: 1000px) and (max-height: 800px) {
  .c-hero__display   { font-size: clamp(1.7rem, 0.9rem + 2.2vw, 2.7rem); }
  .c-hero__display {
  /* Sized so the longer clause holds one line in the text column — the
     heading is two lines by construction, not by luck. */
  font-size: clamp(1.55rem, 0.9rem + 2.05vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  max-inline-size: 30ch;
}

/* Each clause is its own line. */
.c-hero__display > span[data-split] { display: block; }

/* The one place the accent touches type: on the deep blue it measures
   11.9:1, well past AA. */
.c-hero__display .fx-accent { color: var(--mint-200); }

/* Search, frosted, sitting on the panel. */
.c-hero--angled .c-searchbar {
  background: hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.26);
  box-shadow: none;
}
.c-hero--angled .c-searchbar input { color: #fff; }
.c-hero--angled .c-searchbar input::placeholder { color: hsl(0 0% 100% / 0.62); }
.c-hero--angled .c-searchbar__field > .icon { color: var(--mint-200); }
.c-hero--angled .c-searchbar__field + .c-searchbar__field::before { background: hsl(0 0% 100% / 0.26); }
.c-hero--angled .c-tag { border-color: hsl(0 0% 100% / 0.28); color: hsl(0 0% 100% / 0.78); }
.c-hero--angled a.c-tag:hover { border-color: #fff; color: #fff; }

.c-hero__lead--big { font-size: 0.95rem; }
  .c-hero__grid      { gap: var(--sp-6); padding-block-start: var(--sp-5); }
  .c-hero__display   { margin-block: var(--sp-4) var(--sp-4) !important; }
  .c-hero__display {
  /* Sized so the longer clause holds one line in the text column — the
     heading is two lines by construction, not by luck. */
  font-size: clamp(1.55rem, 0.9rem + 2.05vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  max-inline-size: 30ch;
}

/* Each clause is its own line. */
.c-hero__display > span[data-split] { display: block; }

/* The one place the accent touches type: on the deep blue it measures
   11.9:1, well past AA. */
.c-hero__display .fx-accent { color: var(--mint-200); }

/* Search, frosted, sitting on the panel. */
.c-hero--angled .c-searchbar {
  background: hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.26);
  box-shadow: none;
}
.c-hero--angled .c-searchbar input { color: #fff; }
.c-hero--angled .c-searchbar input::placeholder { color: hsl(0 0% 100% / 0.62); }
.c-hero--angled .c-searchbar__field > .icon { color: var(--mint-200); }
.c-hero--angled .c-searchbar__field + .c-searchbar__field::before { background: hsl(0 0% 100% / 0.26); }
.c-hero--angled .c-tag { border-color: hsl(0 0% 100% / 0.28); color: hsl(0 0% 100% / 0.78); }
.c-hero--angled a.c-tag:hover { border-color: #fff; color: #fff; }

.c-hero__lead--big { margin-block-end: var(--sp-5) !important; }
}

/* Stacked: the photograph is sized against the viewport rather than by ratio,
   because a 5:4 box in a full-width column is taller than a phone. */
@media (max-width: 999px) {
  .c-hero__photo {
    aspect-ratio: auto;
    block-size: clamp(160px, 26svh, 300px);
    max-block-size: none;
  }
  .c-hero__grid { gap: var(--sp-5); }
  .c-hero__display   { margin-block: var(--sp-4) var(--sp-4) !important; }
  .c-hero__display {
  /* Sized so the longer clause holds one line in the text column — the
     heading is two lines by construction, not by luck. */
  font-size: clamp(1.55rem, 0.9rem + 2.05vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  max-inline-size: 30ch;
}

/* Each clause is its own line. */
.c-hero__display > span[data-split] { display: block; }

/* The one place the accent touches type: on the deep blue it measures
   11.9:1, well past AA. */
.c-hero__display .fx-accent { color: var(--mint-200); }

/* Search, frosted, sitting on the panel. */
.c-hero--angled .c-searchbar {
  background: hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.26);
  box-shadow: none;
}
.c-hero--angled .c-searchbar input { color: #fff; }
.c-hero--angled .c-searchbar input::placeholder { color: hsl(0 0% 100% / 0.62); }
.c-hero--angled .c-searchbar__field > .icon { color: var(--mint-200); }
.c-hero--angled .c-searchbar__field + .c-searchbar__field::before { background: hsl(0 0% 100% / 0.26); }
.c-hero--angled .c-tag { border-color: hsl(0 0% 100% / 0.28); color: hsl(0 0% 100% / 0.78); }
.c-hero--angled a.c-tag:hover { border-color: #fff; color: #fff; }

.c-hero__lead--big { margin-block-end: var(--sp-5) !important; }
  /* --lg wraps to two full-width rows at 375px (119px); regular keeps one. */
  .c-hero__grid .c-btn--lg {
    padding-block: var(--sp-3);
    padding-inline: var(--sp-5);
    font-size: var(--fs-sm);
  }
}

/* The scroll cue is the first thing to go — it is a hint, and on a short
   screen the hint costs more than it gives. */
/* Small phone with browser chrome (iPhone SE sits near 375x553 in Safari).
   The photograph gives up the most, since it is the element whose size is
   purely compositional. */
@media (max-width: 999px) and (max-height: 700px) {
  .c-hero__photo     { block-size: clamp(110px, 19svh, 180px); }
  .c-hero__grid      { gap: var(--sp-3); }
  .c-hero__display   { margin-block: var(--sp-2) var(--sp-3) !important; }
  .c-hero__display {
  /* Sized so the longer clause holds one line in the text column — the
     heading is two lines by construction, not by luck. */
  font-size: clamp(1.55rem, 0.9rem + 2.05vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  max-inline-size: 30ch;
}

/* Each clause is its own line. */
.c-hero__display > span[data-split] { display: block; }

/* The one place the accent touches type: on the deep blue it measures
   11.9:1, well past AA. */
.c-hero__display .fx-accent { color: var(--mint-200); }

/* Search, frosted, sitting on the panel. */
.c-hero--angled .c-searchbar {
  background: hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.26);
  box-shadow: none;
}
.c-hero--angled .c-searchbar input { color: #fff; }
.c-hero--angled .c-searchbar input::placeholder { color: hsl(0 0% 100% / 0.62); }
.c-hero--angled .c-searchbar__field > .icon { color: var(--mint-200); }
.c-hero--angled .c-searchbar__field + .c-searchbar__field::before { background: hsl(0 0% 100% / 0.26); }
.c-hero--angled .c-tag { border-color: hsl(0 0% 100% / 0.28); color: hsl(0 0% 100% / 0.78); }
.c-hero--angled a.c-tag:hover { border-color: #fff; color: #fff; }

.c-hero__lead--big { margin-block-end: var(--sp-4) !important; }
}

/* The floor: iPhone SE with full Safari chrome (~375x553). */
@media (max-width: 999px) and (max-height: 590px) {
  .c-hero__photo     { block-size: clamp(88px, 15svh, 140px); }
  .c-hero__display {
  /* Sized so the longer clause holds one line in the text column — the
     heading is two lines by construction, not by luck. */
  font-size: clamp(1.55rem, 0.9rem + 2.05vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  max-inline-size: 30ch;
}

/* Each clause is its own line. */
.c-hero__display > span[data-split] { display: block; }

/* The one place the accent touches type: on the deep blue it measures
   11.9:1, well past AA. */
.c-hero__display .fx-accent { color: var(--mint-200); }

/* Search, frosted, sitting on the panel. */
.c-hero--angled .c-searchbar {
  background: hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: var(--stroke) solid hsl(0 0% 100% / 0.26);
  box-shadow: none;
}
.c-hero--angled .c-searchbar input { color: #fff; }
.c-hero--angled .c-searchbar input::placeholder { color: hsl(0 0% 100% / 0.62); }
.c-hero--angled .c-searchbar__field > .icon { color: var(--mint-200); }
.c-hero--angled .c-searchbar__field + .c-searchbar__field::before { background: hsl(0 0% 100% / 0.26); }
.c-hero--angled .c-tag { border-color: hsl(0 0% 100% / 0.28); color: hsl(0 0% 100% / 0.78); }
.c-hero--angled a.c-tag:hover { border-color: #fff; color: #fff; }

.c-hero__lead--big { margin-block-end: var(--sp-3) !important; }
  .c-hero--angled    { --overhang: 1rem; }
}

/* The search stacks on a phone, so two fields cost ~160px where the two
   buttons cost ~48. On a short screen it drops to one field; region is a
   filter on the results page, not a precondition for searching. */
@media (max-width: 999px) and (max-height: 700px) {
  .c-hero__grid .c-searchbar__field + .c-searchbar__field { display: none; }
}

/* The logo band is social proof, not a task, so it is the next thing to go
   after the scroll cue when the fold gets tight. */
@media (max-width: 999px) and (max-height: 780px) {
  .c-hero__logos { display: none; }
}

/* The cue is a hint; on a short screen it costs more than it gives.
   (It sits inside a wrapper, so hide the wrapper — an :only-child
   exception here matches the cue itself and silently un-hides it.) */
@media (max-height: 820px) {
  .c-hero__grid .c-cue { display: none; }
  .c-hero__grid .c-cue-wrap { display: none; }
}

/* Logo band under the search, inside the panel. */
.c-hero__logos { margin-block-start: var(--sp-7, 28px); }
.c-hero__logos-label {
  font-size: var(--fs-2xs-raw);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.5);
  margin-block-end: var(--sp-3);
}
[lang="ar"] .c-hero__logos-label, [dir="rtl"] .c-hero__logos-label {
  text-transform: none; letter-spacing: 0;
}
/* The fade is a mask, so it has to follow the reading direction. */
[dir="rtl"] .c-marquee {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

/* Overlapping avatar stack — real organisation logos. */
.c-stack { display: flex; align-items: center; flex: none; }
.c-stack > * {
  inline-size: 30px;
  block-size: 30px;
  border-radius: var(--radius-pill);
  border: 2px solid hsl(225 85% 11%);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-inline-start: -10px;
}
.c-stack > *:first-child { margin-inline-start: 0; }
.c-stack img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 2px; }
.c-stack__more {
  font-size: var(--fs-2xs-raw);
  font-weight: var(--fw-bold);
  background: var(--surface-accent) !important;
  color: var(--text-on-accent);
}

@media (prefers-reduced-motion: reduce) {
  .c-hero__pill, .c-hero__photo { transform: none !important; }
}