/* ==========================================================================
   LGnet Hero Slider — "aspect box"
   --------------------------------------------------------------------------
   WHY THIS LAYOUT EXISTS (the bug the previous version could not fix)

   The artwork is a purpose-composed banner — 1816x866 (2.097:1) on every
   supplied plate — whose left ~38% is deliberately near-empty dark ground.
   Measured mean luminance per vertical strip (0-255) across all five plates:

        0-10%  17-19     38-50%  41-71
       10-25%  20-23     50-65%  76-107
       25-38%  28-38     65-100% 86-119

   ...and the leftmost pixel column is #08111F-#0C1122 top to bottom on every
   plate, i.e. within ~4 RGB steps of the page background #0A0E1A.

   Two consequences drive the whole design:

     1. The image's LEFT edge already IS the page background. It can bleed,
        gutter or stack against the hero background with no visible seam.
     2. The image's RIGHT edge is bright (wall light). It must never be
        pillarboxed against the background. So when the frame is capped on
        short viewports it is anchored RIGHT and the slack is given to the
        left, where the art is already flat.

   THE RULE: the frame is ALWAYS exactly the artwork's own aspect ratio, read
   per slide from the attachment's real pixel dimensions (--lgnet-hero-arw /
   --lgnet-hero-arh). Never cropped, never stretched, at any width. The box
   never fights the art; the LAYOUT absorbs the difference.

   This is why there is no crop / object-position / zoom control any more. A
   full-height hero forced a 2.097:1 plate into a ~1.6:1 box, so `cover`
   discarded 20-25% of the width — the composed negative space and the
   subject's edge — and no amount of repositioning could put back what the
   crop had already thrown away.
   ========================================================================== */

/* Tokens live on .lgnet-hero, not :root, so one page can hold two heroes with
   different Style-tab settings. Every Elementor selector in the widget targets
   `{{WRAPPER}} .lgnet-hero`, i.e. THIS SAME ELEMENT — a generated selector of
   (0,4,0) then out-specifies the (0,1,0) below and the override lands. Setting
   these on an ancestor instead would lose to this rule every time. */
.lgnet-hero{
  --lgnet-hero-bg:#0A0E1A;
  --lgnet-hero-accent:#F2C94C;
  --lgnet-hero-heading:#ffffff;
  --lgnet-hero-body:#C9D3E6;
  --lgnet-hero-label:#8D9AB4;
  --lgnet-hero-unit:#B9C7E2;

  /* Headings ship with a stack; body text is left to inherit from the theme so
     the hero matches the site out of the box. Both are overridable by the
     Typography controls, which emit font-family directly onto the element. */
  --lgnet-hero-font-head:"Archivo","Archivo Fallback","Helvetica Neue",Helvetica,Arial,"Liberation Sans",sans-serif;

  --lgnet-hero-gutter:clamp(22px,4.6vw,104px);

  /* The site's content container. The copy and the navigation line up with it
     (and therefore with the header) while the picture stays full-bleed behind
     them — "content 1400, image covered". max() means the gutter still wins on
     any viewport narrower than the container, so this never creates a negative
     inset. The percentage resolves against the slide, i.e. the viewport. */
  --lgnet-hero-content-max:1400px;
  --lgnet-hero-pad-inline:max(var(--lgnet-hero-gutter), calc((100% - var(--lgnet-hero-content-max)) / 2));

  --lgnet-hero-text-col:46%;
  --lgnet-hero-text-max:680px;

  /* The hero's floor. Applied to the slide, not to .lgnet-hero itself: on
     desktop the nav is absolutely positioned and adds no height, so a slide of
     100vh IS a hero of 100vh, and the copy stays vertically centred in the
     whole of it. Putting it on the section instead would leave the stage at its
     content height with dead space underneath. */
  --lgnet-hero-height:100vh;

  /* Room kept clear at the bottom of the text column for the nav row. Also the
     lever that makes the hero grow instead of colliding — see §CRUX. */
  --lgnet-hero-nav-reserve:clamp(84px,7.4vw,124px);

  /* Height ceiling. A 2.097:1 frame is taller than the viewport whenever the
     viewport is wider than about 2:1 — which, once browser chrome is taken off
     the screen height, includes plenty of ordinary laptops (1920x800 is 2.4:1).
     So this engages far more often than "ultra-wide only", and the layout has
     to stay correct when it does. */
  --lgnet-hero-cap:96vh;

  --lgnet-hero-scrim-strength:1;

  /* Room kept clear at the top for a header that floats over the page.
     --lgnet-hero-header-h is measured by the script; --lgnet-hero-offset-top is
     what the layout actually uses, so the Style control can override the
     measurement at (0,4,0) without the script fighting it (the script never
     writes an inline style on the hero, which would outrank everything).
     Zero on desktop by design: there the hero is a full screen and a header
     floating over the top of a 1080px picture hides nothing that matters. */
  --lgnet-hero-header-h:0px;
  --lgnet-hero-offset-top:0px;

  padding-top:var(--lgnet-hero-offset-top);

  /* Fallback ratio, used only for a slide whose image has no attachment record
     (an external URL) and therefore no known pixel dimensions. */
  --lgnet-hero-arw:1816;
  --lgnet-hero-arh:866;

  position:relative;
  background:var(--lgnet-hero-bg);
  color:var(--lgnet-hero-heading);
  overflow-x:clip;
  isolation:isolate;
}

/* Scoped reset. A plugin cannot touch the global `*`, and a theme that ships
   content-box sizing would otherwise blow the padded text column past its
   column width. */
.lgnet-hero,
.lgnet-hero *,
.lgnet-hero *::before,
.lgnet-hero *::after{box-sizing:border-box}

.lgnet-hero .lgnet-hero__stage{
  display:grid;
  grid-template-columns:minmax(0,1fr);
}

/* --------------------------------------------------------------- slides -- */
.lgnet-hero .lgnet-hero__slide{
  grid-area:1/1;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto;
  /* The offset is part of the hero, not extra on top of it: a 100vh hero with a
     64px header gap is still 100vh overall, not 100vh + 64. */
  min-height:calc(var(--lgnet-hero-height) - var(--lgnet-hero-offset-top));
  margin:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 700ms cubic-bezier(.4,0,.2,1),visibility 0s linear 700ms;
}
.lgnet-hero .lgnet-hero__slide.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity 700ms cubic-bezier(.4,0,.2,1),visibility 0s linear 0s;
  z-index:1;
}

/* Before the script runs there is no .is-active anywhere, so every slide would
   be invisible and the hero would be a blank band until JS boots. The first
   slide is shown unconditionally until the script marks the root ready. */
.lgnet-hero:not([data-hs-ready]) .lgnet-hero__slide:first-child{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  z-index:1;
}

/* ------------------------------------------------------- the aspect box -- */
/* The frame is the artwork's footprint and nothing else. It carries ONLY the
   photo. The text column is deliberately NOT inside it: see §DRIFT. */
.lgnet-hero .lgnet-hero__frame{
  grid-area:1/1;
  justify-self:end;              /* slack goes left, where the art is already
                                    flat and the seam is invisible */
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:min(100%, calc(var(--lgnet-hero-cap) * (var(--lgnet-hero-arw) / var(--lgnet-hero-arh))));
}
.lgnet-hero .lgnet-hero__media{
  grid-area:1/1;
  align-self:start;              /* pinned to the top: when the text column is
                                    taller than the photo the row grows DOWN
                                    and the photo keeps its exact ratio */
  position:relative;
  width:100%;
  aspect-ratio:var(--lgnet-hero-arw) / var(--lgnet-hero-arh);
  z-index:0;
}
.lgnet-hero .lgnet-hero__media img{
  display:block;
  width:100%;
  height:100%;
  /* The box already IS the image's ratio, so `cover` crops nothing — it is
     here only to absorb sub-pixel rounding. Never `fill`: that stretches, and
     a stretched plate is exactly what this rebuild replaced. */
  object-fit:cover;
}

/* Scrim. Lives inside the media box so its percentages track the ARTWORK, not
   the viewport — where the text sits left of the photo on bare background it
   needs no scrim at all. Tuned against the measured strip luminances above:
   heavy to 26%, released by 62%, which is still left of every subject (the
   nearest, the laptop, starts at 52%). */
/* Where the hero has been padded to clear a header, the picture's top edge
   meets a flat band of background, and on these plates that edge is a lit
   ceiling — bright enough that the join reads as a hard line rather than as
   part of the design. This dissolves the band into the picture.

   Its height is derived from the offset itself, so it is exactly as tall as the
   band it has to blend and it disappears completely when there is no band:
   0px * 1.15 is 0px, and a zero-height box paints nothing. Nothing to switch on
   or off, and no separate desktop rule. */
.lgnet-hero .lgnet-hero__media::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:calc(var(--lgnet-hero-offset-top) * 1.15);
  background:linear-gradient(to bottom,
    var(--lgnet-hero-bg) 0%,
    color-mix(in srgb, var(--lgnet-hero-bg) 58%, transparent) 42%,
    color-mix(in srgb, var(--lgnet-hero-bg) 0%, transparent) 100%);
  pointer-events:none;
  z-index:1;
}
/* Without color-mix the same shape is drawn from the design's own navy. */
@supports not (background: color-mix(in srgb, #000 50%, transparent)){
  .lgnet-hero .lgnet-hero__media::before{
    background:linear-gradient(to bottom,
      rgba(10,14,26,1) 0%,
      rgba(10,14,26,.58) 42%,
      rgba(10,14,26,0) 100%);
  }
}

.lgnet-hero .lgnet-hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(100deg,
      rgba(10,14,26,.95) 0%,
      rgba(10,14,26,.92) 26%,
      rgba(10,14,26,.72) 40%,
      rgba(10,14,26,.30) 50%,
      rgba(10,14,26,0)   62%),
    /* keeps the nav row legible over the floor reflections */
    linear-gradient(to top, rgba(10,14,26,.55) 0%, rgba(10,14,26,0) 22%);
  pointer-events:none;
}

/* The literal gradient above is the FALLBACK and stays byte-for-byte the
   approved design. This re-derives the same stops from the background colour
   so that changing the background in the Style tab moves the scrim with it —
   a scrim that stayed navy over a re-coloured hero would band visibly where it
   meets the page. At strength 1 and the default background, color-mix
   reproduces the literal values exactly. */
@supports (background: color-mix(in srgb, #000 50%, transparent)){
  .lgnet-hero .lgnet-hero__media::after{
    background:
      linear-gradient(100deg,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(95% * var(--lgnet-hero-scrim-strength)), transparent) 0%,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(92% * var(--lgnet-hero-scrim-strength)), transparent) 26%,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(72% * var(--lgnet-hero-scrim-strength)), transparent) 40%,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(30% * var(--lgnet-hero-scrim-strength)), transparent) 50%,
        color-mix(in srgb, var(--lgnet-hero-bg) 0%, transparent)                                            62%),
      linear-gradient(to top,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(55% * var(--lgnet-hero-scrim-strength)), transparent) 0%,
        color-mix(in srgb, var(--lgnet-hero-bg) 0%, transparent)                                           22%);
  }
}

/* ==========================================================================
   §DRIFT — why the text column is a sibling of the frame, not a child.

   It used to live inside .lgnet-hero__frame. The frame is justify-self:end and
   its width depends on --lgnet-hero-cap, i.e. on the viewport HEIGHT. So on a
   1920px-wide window the headline's left edge measured 88px at 1080 tall,
   196px at 900 and 397px at 800: 309px of horizontal movement caused by
   nothing but resizing the window vertically, and on a short laptop the copy
   ended up marooned in the middle of the picture.

   Making it a sibling in the slide's own grid anchors it to the page gutter,
   so its position depends only on viewport WIDTH. Below the height cap the two
   are identical — the frame is full-bleed and 46% of the frame is 46% of the
   page — so this changes nothing in the common case and only removes the
   drift. Above the cap the photo now retreats to the right on its own and the
   copy stays put, which is also the better picture.
   ========================================================================== */
.lgnet-hero .lgnet-hero__content{
  grid-area:1/1;
  align-self:center;
  justify-self:start;
  position:relative;
  z-index:2;
  width:100%;
  padding:clamp(24px,3vw,56px) var(--lgnet-hero-pad-inline) var(--lgnet-hero-nav-reserve);
}
/* The text column itself. Its width is a share of the CONTAINER, not of the
   viewport, so widening the window past the container no longer widens the
   copy — the line length stays where it was set. */
.lgnet-hero .lgnet-hero__copy{
  width:var(--lgnet-hero-text-col);
  max-width:var(--lgnet-hero-text-max);
}

.lgnet-hero .lgnet-hero__kicker{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 clamp(14px,1.4vw,22px);
  font-size:clamp(11px,.92vw,15px);
  font-weight:600;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--lgnet-hero-accent);
}
.lgnet-hero .lgnet-hero__kicker::before{
  content:"";
  flex:0 0 auto;
  width:34px;
  height:2px;
  background:var(--lgnet-hero-accent);
}

.lgnet-hero .lgnet-hero__headline{
  margin:0 0 clamp(14px,1.5vw,24px);
  font-family:var(--lgnet-hero-font-head);
  font-size:clamp(27px,2.85vw,56px);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.015em;
  color:var(--lgnet-hero-heading);
  text-wrap:balance;
}
.lgnet-hero .lgnet-hero__headline > span{display:block}
/* Must out-rank `.lgnet-hero .lgnet-hero__headline > span` (0,2,1), which sets
   display:block on the headline's direct children. At (0,2,0) this lost, the
   accent span stretched to the full headline width, and the underline — which
   is sized from it — drew a straight rule right across the column instead of
   hugging the word. Qualified to (0,3,0). */
.lgnet-hero .lgnet-hero__headline .lgnet-hero__accent{
  position:relative;
  display:inline-block;
  padding-bottom:.1em;
}
/* The sweeping underline: a tapered hand-drawn stroke stretched to the word.
   Drawn with currentColor-independent SVG, so the accent colour is applied by
   swapping the mask's fill through a filter-free technique: the stroke colour
   is baked at the default and the element is tinted via background-color +
   mask, which keeps it in step with --lgnet-hero-accent. */
.lgnet-hero .lgnet-hero__headline .lgnet-hero__accent::after{
  content:"";
  position:absolute;
  left:-1.5%;
  right:-1.5%;
  bottom:-.04em;
  height:.20em;
  background-color:var(--lgnet-hero-accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3.5 9.8C44 2.9 120 2.1 196.5 6.2' fill='none' stroke='%23000' stroke-width='5.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3.5 9.8C44 2.9 120 2.1 196.5 6.2' fill='none' stroke='%23000' stroke-width='5.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  pointer-events:none;
}

.lgnet-hero .lgnet-hero__lead{
  margin:0 0 clamp(20px,2.1vw,34px);
  max-width:46ch;
  font-size:clamp(14px,1.1vw,19px);
  line-height:1.62;
  color:var(--lgnet-hero-body);
}

/* ------------------------------------------------------- price block ----- */
.lgnet-hero .lgnet-hero__price{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  column-gap:clamp(14px,1.8vw,32px);
  row-gap:clamp(10px,1.1vw,16px);
  margin:0 0 clamp(22px,2.3vw,36px);
}
.lgnet-hero .lgnet-hero__priceMain{min-width:0}
.lgnet-hero .lgnet-hero__priceLabel{
  margin:0 0 4px;
  font-size:clamp(11px,.82vw,14px);
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--lgnet-hero-label);
}
.lgnet-hero .lgnet-hero__priceValue{
  margin:0;
  font-family:var(--lgnet-hero-font-head);
  font-size:clamp(26px,2.15vw,42px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.015em;
  color:var(--lgnet-hero-heading);
  /* CHF 79.95 must not jitter between slides as the carousel rotates. */
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  white-space:nowrap;
}
.lgnet-hero .lgnet-hero__priceUnit{
  margin:5px 0 0;
  font-size:clamp(12px,.9vw,15px);
  color:var(--lgnet-hero-unit);
}

.lgnet-hero .lgnet-hero__note{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  margin:0;
  padding-bottom:3px;
  font-size:clamp(12px,.9vw,15px);
  line-height:1.45;
  color:var(--lgnet-hero-unit);
}
.lgnet-hero .lgnet-hero__note::before{
  content:"";
  flex:0 0 auto;
  width:7px;
  height:7px;
  margin-top:.5em;
  border-radius:50%;
  background:var(--lgnet-hero-accent);
}

.lgnet-hero .lgnet-hero__figure{
  min-width:0;
  padding-left:clamp(14px,1.7vw,30px);
  border-left:1px solid rgba(255,255,255,.16);
}
.lgnet-hero .lgnet-hero__figureValue{
  margin:0;
  font-family:var(--lgnet-hero-font-head);
  font-size:clamp(18px,1.5vw,29px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.01em;
  color:var(--lgnet-hero-heading);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.lgnet-hero .lgnet-hero__figureLabel{
  margin:5px 0 0;
  font-size:clamp(12px,.9vw,15px);
  line-height:1.4;
  color:var(--lgnet-hero-unit);
}

/* ------------------------------------------------------------ button ----- */
/* Typed as `.lgnet-hero a.lgnet-hero__btn` — (0,2,1) — on purpose. The site's
   Elementor kit ships `.elementor-kit-437 a{color:var(--e-global-color-accent)}`
   at (0,1,1), which beat a plain `.lgnet-hero__btn` (0,1,0) and made the Style
   tab's button-text colour look dead: the value was written, it just lost the
   cascade. Do not lower this. */
.lgnet-hero a.lgnet-hero__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:clamp(12px,1.05vw,18px) clamp(22px,1.9vw,34px);
  border:0;
  border-radius:999px;
  background:var(--lgnet-hero-btn-bg,#ffffff);
  /* dark on white, and dark on yellow — never white on yellow (1.8:1) */
  color:var(--lgnet-hero-btn-fg,#0A0E1A);
  font-size:clamp(14px,1vw,17px);
  font-weight:700;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background-color 200ms ease,color 200ms ease,transform 200ms ease;
}
.lgnet-hero a.lgnet-hero__btn:hover,
.lgnet-hero a.lgnet-hero__btn:focus-visible{
  background:var(--lgnet-hero-btn-bg-hover,var(--lgnet-hero-accent));
  color:var(--lgnet-hero-btn-fg-hover,#0A0E1A);
}
.lgnet-hero a.lgnet-hero__btn:hover{transform:translateY(-1px)}
.lgnet-hero a.lgnet-hero__btn svg{flex:0 0 auto;transition:transform 200ms ease}
.lgnet-hero a.lgnet-hero__btn:hover svg{transform:translateX(3px)}

/* ------------------------------------------------------------- nav ------- */
.lgnet-hero .lgnet-hero__nav{
  position:absolute;
  left:0;
  right:0;
  bottom:clamp(20px,2.6vw,48px);
  z-index:3;
}
/* Full width, both edges on the page gutter. The dots line up with the text
   column's left edge and the arrows with the photo's right edge — which is the
   viewport's right edge, because the frame is always end-aligned. The previous
   version sized this from --cap-h too and inherited the same height-dependent
   drift as the copy. */
.lgnet-hero .lgnet-hero__navInner{
  width:100%;
  padding:0 var(--lgnet-hero-pad-inline);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.lgnet-hero .lgnet-hero__dots{display:flex;align-items:center;gap:9px}
.lgnet-hero .lgnet-hero__dots button.lgnet-hero__dot{
  width:10px;
  height:10px;
  min-width:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:var(--lgnet-hero-dot,rgba(255,255,255,.34));
  cursor:pointer;
  transition:width 320ms cubic-bezier(.4,0,.2,1),background-color 320ms ease;
}
.lgnet-hero .lgnet-hero__dots button.lgnet-hero__dot:hover{
  background:var(--lgnet-hero-dot-hover,rgba(255,255,255,.62));
}
.lgnet-hero .lgnet-hero__dots button.lgnet-hero__dot[aria-selected="true"]{
  width:42px;
  background:var(--lgnet-hero-dot-active,var(--lgnet-hero-accent));
}
.lgnet-hero .lgnet-hero__arrows{display:flex;align-items:center;gap:10px}
.lgnet-hero button.lgnet-hero__arrow{
  display:grid;
  place-items:center;
  width:clamp(40px,3vw,50px);
  aspect-ratio:1;
  padding:0;
  border:1px solid var(--lgnet-hero-arrow-border,rgba(255,255,255,.30));
  border-radius:50%;
  background:var(--lgnet-hero-arrow-bg,rgba(255,255,255,.07));
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:var(--lgnet-hero-arrow-fg,#ffffff);
  cursor:pointer;
  transition:background-color 200ms ease,border-color 200ms ease;
}
.lgnet-hero button.lgnet-hero__arrow:hover{
  background:var(--lgnet-hero-arrow-bg-hover,rgba(255,255,255,.17));
  border-color:var(--lgnet-hero-arrow-border-hover,rgba(255,255,255,.7));
}

.lgnet-hero :where(.lgnet-hero__dot,.lgnet-hero__arrow,.lgnet-hero__btn):focus-visible{
  outline:2px solid var(--lgnet-hero-accent);
  outline-offset:3px;
}

/* Single slide degrades to a static hero: no nav, and the reserve that was
   held clear for it is given back to the copy. */
.lgnet-hero[data-count="1"] .lgnet-hero__nav{display:none}
.lgnet-hero[data-count="1"] .lgnet-hero__content{padding-bottom:clamp(24px,3vw,56px)}

/* ==========================================================================
   COVER MODE

   The aspect box above shows the whole picture and lets the hero's height
   follow the artwork. That is right for a purpose-composed banner, but it has
   a consequence: an image narrower than the viewport's own ratio cannot span
   the full width without making the hero taller than the window. A 16:9 image
   in a 1905px-wide hero needs 1071px of height to reach both edges; capped
   shorter, it has to pull away from one of them.

   Cover mode takes the other trade: the picture fills the hero edge to edge at
   a height you set, and the parts that do not fit are cropped. Use the per-slide
   focal point to say which part must survive that crop. The two modes are the
   whole choice — there is no third option where an image both keeps all of
   itself and fills a box of a different shape.
   ========================================================================== */
.lgnet-hero.is-cover .lgnet-hero__frame{
  justify-self:stretch;
  width:100%;
}
.lgnet-hero.is-cover .lgnet-hero__media{
  aspect-ratio:auto;
  align-self:stretch;              /* grow with the row when the copy is taller */
  min-height:var(--lgnet-hero-height);
}
/* Taken out of flow so the media box's height comes from min-height and the
   row, never from the image's own intrinsic size. */
.lgnet-hero.is-cover .lgnet-hero__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--lgnet-hero-focus-x,50%) var(--lgnet-hero-focus-y,50%);
}

/* ==========================================================================
   §CRUX — what happens when the aspect box gets too short for the text.

   Two mechanisms, in this order:

   (1) SPILL (continuous, no breakpoint). The photo and the text share one grid
       cell. The photo is align-self:start, the text align-self:center. The row
       is as tall as the TALLER of the two. So as the viewport narrows and the
       2.097:1 box shrinks faster than the text does, the text simply becomes
       the taller item: the hero grows past the photo's bottom edge and the last
       line or two continues onto flat background. Because the photo's
       bottom-left is near-black and the page is the same colour, there is no
       visible boundary — the text just runs off the picture. Nothing is ever
       clipped, squeezed or overlapped, and there is no jump at any width.

   (2) STACK (one breakpoint, at 860px). Below that the 46% column is too narrow
       for a headline no matter how the type is scaled, so the layout turns the
       corner: the banner becomes a full-bleed cinematic plate at the top and
       the text becomes a full-width panel beneath it. By the time this fires,
       (1) has already made the hero look like "photo on top, text continuing
       below", so the switch is barely perceptible.
   ========================================================================== */
@media (max-width:860px){
  .lgnet-hero{
    --lgnet-hero-gutter:clamp(18px,5.4vw,34px);
    --lgnet-hero-nav-reserve:0px;
  }
  .lgnet-hero .lgnet-hero__slide{grid-template-rows:auto auto}

  .lgnet-hero .lgnet-hero__frame{justify-self:stretch;width:100%}  /* full bleed: the plate
                                                          uses every pixel */
  /* Off the photo, so the left-to-right scrim has no job. It is replaced by a
     dissolve of the plate's bottom edge into the page, which is what removes
     the seam between picture and panel.

     Measured: the plate's last 2 pixel rows average luminance 47-61 against a
     page at 13, so a hard cut WOULD show a seam — but only the bottom ~16%
     needs covering. An earlier or heavier fade (the first attempt ran from 62%)
     visibly chopped the phone and the TV feet at 360px, which is the very thing
     this approach exists to avoid.

     §KICKER — the last stop reaches full opacity at 94.5%, not 100%. The panel
     below is pulled up by clamp(8px,2.4vw,26px), which is a constant ~5.03% of
     the plate's height at every width in the clamp's linear range (0.024W over
     W/2.097). The kicker therefore sat in the 95-100% band, where the old
     gradient was only ~64% opaque, and over slide 5's bright TV plate it
     measured 5.62:1 — passing AA by a 25% margin and no more. Landing the
     gradient at 94.5% puts the whole overlap on solid background: 12.2:1. No
     extra picture is hidden, because the panel was already covering that band. */
  .lgnet-hero .lgnet-hero__media::after{
    background:linear-gradient(to bottom,
      rgba(10,14,26,0)     82%,
      rgba(10,14,26,.28)   88%,
      rgba(10,14,26,.72)   92%,
      rgba(10,14,26,1)   94.5%);
  }
  @supports (background: color-mix(in srgb, #000 50%, transparent)){
    .lgnet-hero .lgnet-hero__media::after{
      background:linear-gradient(to bottom,
        color-mix(in srgb, var(--lgnet-hero-bg) 0%, transparent)                                            82%,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(28% * var(--lgnet-hero-scrim-strength)), transparent)   88%,
        color-mix(in srgb, var(--lgnet-hero-bg) calc(72% * var(--lgnet-hero-scrim-strength)), transparent)   92%,
        var(--lgnet-hero-bg)                                                                              94.5%);
    }
  }

  .lgnet-hero .lgnet-hero__copy{width:100%;max-width:none}

  /* A mobile plate is a different picture, so it is almost always a different
     shape. The frame reads the mobile ratio when one was given and falls back
     to the desktop plate's otherwise, so a slide with no mobile image behaves
     exactly as before. */
  .lgnet-hero .lgnet-hero__media{
    aspect-ratio:var(--lgnet-hero-arw-m,var(--lgnet-hero-arw)) / var(--lgnet-hero-arh-m,var(--lgnet-hero-arh));
  }

  /* Stacked is where an overlay header actually costs something. The plate is
     only about 186px tall at 390px wide, so a 60px header swallows a third of
     it — measured on the live site, the top of the laptop and the top of the
     handset were both behind it. Desktop keeps the overlay, which is the
     intended look there. */
  .lgnet-hero{--lgnet-hero-offset-top:var(--lgnet-hero-header-h)}

  /* No minimum height once stacked. Here the nav is in normal flow BELOW the
     stage, so a 100vh slide would push it past the bottom of the screen; and
     the plate-plus-panel is already taller than the viewport on most phones, so
     the floor would only ever add dead space. Height comes from the content,
     which is what the approved mobile design shows. */
  .lgnet-hero .lgnet-hero__slide{min-height:0}

  /* Cover mode does not apply once the layout has stacked. Cropping exists to
     let a picture fill a box of a different shape while copy sits on top of it;
     here the picture is a standalone band with the copy BELOW it, so there is
     nothing to fill and nothing to gain — cropping would only throw pixels
     away. Measured: a 16:9 plate in the phone's own box (390 x 56vh = 0.82:1,
     taller than it is wide) keeps just 42% of its width under cover. So the
     plate reverts to the artwork's own ratio, which is also exactly what the
     approved mobile design shows. */
  .lgnet-hero.is-cover .lgnet-hero__media{
    aspect-ratio:var(--lgnet-hero-arw-m,var(--lgnet-hero-arw)) / var(--lgnet-hero-arh-m,var(--lgnet-hero-arh));
    align-self:start;
    min-height:0;
  }
  .lgnet-hero.is-cover .lgnet-hero__media img{
    position:static;
    inset:auto;
  }
  .lgnet-hero .lgnet-hero__content{
    grid-area:2/1;
    align-self:start;
    width:100%;
    max-width:none;
    /* pulled up into the dissolve, so the panel begins inside the picture */
    margin-top:calc(-1 * clamp(8px,2.4vw,26px));
    padding:0 var(--lgnet-hero-pad-inline) clamp(18px,3.2vw,30px);
  }

  .lgnet-hero .lgnet-hero__headline{font-size:clamp(29px,7.6vw,46px)}
  .lgnet-hero .lgnet-hero__lead{font-size:clamp(15px,3.9vw,18px);max-width:58ch}
  .lgnet-hero .lgnet-hero__kicker{font-size:clamp(11px,2.9vw,13px)}
  .lgnet-hero .lgnet-hero__price{column-gap:clamp(16px,4.4vw,28px);row-gap:12px}
  .lgnet-hero .lgnet-hero__priceLabel{font-size:clamp(11px,2.9vw,13px)}
  .lgnet-hero .lgnet-hero__priceValue{font-size:clamp(28px,7.4vw,40px)}
  .lgnet-hero .lgnet-hero__priceUnit,
  .lgnet-hero .lgnet-hero__note,
  .lgnet-hero .lgnet-hero__figureLabel{font-size:clamp(13px,3.4vw,15px)}
  .lgnet-hero .lgnet-hero__figureValue{font-size:clamp(19px,4.8vw,26px)}
  .lgnet-hero a.lgnet-hero__btn{font-size:clamp(15px,3.9vw,17px);padding:15px 26px}

  .lgnet-hero .lgnet-hero__nav{position:static;margin-top:clamp(2px,1vw,10px)}
  .lgnet-hero .lgnet-hero__navInner{width:100%;padding:0 var(--lgnet-hero-gutter) clamp(20px,4.2vw,34px)}
  .lgnet-hero button.lgnet-hero__arrow{width:42px}
}

/* Very small phones: the plate is only ~170px tall, so give the panel all the
   breathing room it can get. */
@media (max-width:400px){
  .lgnet-hero .lgnet-hero__price{column-gap:16px;row-gap:10px}
  .lgnet-hero .lgnet-hero__figure{padding-left:16px}
}

/* --------------------------------------------------- reduced motion ------ */
@media (prefers-reduced-motion:reduce){
  /* .lgnet-hero__slide.is-active carries the transition at (0,2,0), so a bare
     .lgnet-hero__slide reset here would lose to it and the crossfade would keep
     running for someone who asked for no motion. Qualified to (0,3,0) rather
     than reached for !important. */
  .lgnet-hero .lgnet-hero__slide,
  .lgnet-hero .lgnet-hero__slide.is-active,
  .lgnet-hero .lgnet-hero__dots button.lgnet-hero__dot,
  .lgnet-hero button.lgnet-hero__arrow,
  .lgnet-hero a.lgnet-hero__btn,
  .lgnet-hero a.lgnet-hero__btn svg{transition:none}
  .lgnet-hero a.lgnet-hero__btn:hover{transform:none}
}

.lgnet-hero .lgnet-hero__sr{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

/* ------------------------------------------------- Elementor editor ------ */
/* The editor renders the widget inside a scaled preview iframe; without this an
   empty repeater collapses to a zero-height strip that cannot be clicked. */
.elementor-editor-active .lgnet-hero:empty,
.elementor-editor-active .lgnet-hero__stage:empty{min-height:120px}
/* Editor-only: a hero with no slides would otherwise be an invisible strip. */
.lgnet-hero__empty{
  padding:28px 22px;
  background:#0A0E1A;
  color:#C9D3E6;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:14px;
  text-align:center;
}
.lgnet-hero__empty p{margin:0 0 6px}
.lgnet-hero__empty a{color:#F2C94C}
