/* Pekan site relief layer (owner, 29 October 2026: the carved PD-and-Bots wall on all white space).
   site-relief.js marks every white Elementor section or container `.pk-relief` and mounts a WebGL wall behind its
   content (sections/motion-immersive-relief/assets/relief-scene.js). The wall is drawn against white and multiplied onto
   the section, so a tinted ground (the lavender sections, the glass sections' gradient) keeps its tint under the plaster.
   The canvas is viewport high and sticks while the
   section scrolls; it fades in once the first frame is drawn, so nothing shifts and nothing flashes. Phones, tablets,
   reduced motion and failed WebGL show the still plaster image instead. The Elementor editor shows nothing.
   Lane relief-dark-20261030 (owner, 30 October 2026: "make all black background have the pd field effect, but black
   version of it"): a black or near-black section is marked `.pk-relief--dark` and gets the dark wall (deep ink plaster,
   lighter ink figures, the same grain and light) screened onto its own black, so the carvings read as light on dark and
   the section's own glows and tints stay. The light rules below keep their selectors' specificity and order; each
   `::after` rule gets `:where(:not(.pk-relief--dark))` (zero specificity) so it leaves the dark sections' own `::after`
   glows alone. The dark rules are at the end.
   Lane relief-white-20261101 (owner, 1 November 2026: "all white sections to have the hover effect and they dont
   clearly, and also needs to be more white"): the light wall now rests near white (plaster #fcfbfe, figures white,
   exposure 4, so a relief section reads within a few points of its own white) and the pointer's light reads by
   contrast: while the pointer is over a live section the renderer eases its ambient light down by
   --pk-relief-light-dim and keeps the pool under the spot white (relief-scene.js). Short bands (under 220 px, a facts
   strip, an intro row) and any section without a live renderer show the still at --pk-relief-static-opacity and
   answer the pointer with a soft radial field drawn here on the layer's ::after, white at the pointer and plaster
   away from it (site-relief.js writes --pk-relief-px and --pk-relief-py). A short band's still is placed by the
   band's page offset (--pk-relief-still-y), so neighbouring bands continue one wall instead of each showing the
   still's centre. The dark version keeps the values it had. */
.pk-relief {
  --pk-relief-opacity: .85;        /* the wall's weight over the section's own white (was .92; the near-white wall needs less) */
  --pk-relief-static-opacity: .25; /* the still image shown on phones, tablets, reduced motion, failed WebGL and short bands (was .5; whiter) */
  --pk-relief-wall: 1;             /* multiplies the wall colour; below 1 darkens the plaster */
  --pk-relief-rest: .45;           /* how much of a figure shows before the light reaches it (0 flat, 1 full relief) */
  --pk-relief-light-power: 240;    /* the pointer's spotlight (was 150) */
  --pk-relief-light-radius: .8;    /* the spot's cone (was .62): a wider pool at 1366 */
  --pk-relief-light-ease: 7.7;
  --pk-relief-light-dim: .82;      /* how far the room and ambient lights ease down around the pointer while it is over the section (0 = never) */
  --pk-relief-exposure: 4;         /* tone mapping exposure; the study's .9 left the white plaster at 237 of 255 */
  --pk-relief-max-pixels: 3600000; /* device pixels per renderer (up to 2 device pixels per CSS pixel); two may be live */
  --pk-relief-fps: 30;
  --pk-relief-wall-color: #fcfbfe;   /* the plaster, read by relief-scene.js (was #e9e6ee) */
  --pk-relief-figure-color: #ffffff; /* the figures' stone, a touch lighter than the wall (was #efecf3) */
  --pk-relief-field: rgba(226, 223, 233, .42); /* the plaster tone the static pointer field fades to, away from the pointer */
  position: relative;
  isolation: isolate;
}

.pk-relief:where(:not(.pk-relief--dark))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: multiply; /* the still plaster takes the section's own tint */
  pointer-events: none;
  border-radius: inherit;
  background: url("../brand/white-sculptural-field.webp?v=2") center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s ease;
}

.pk-relief[data-pk-relief-state="static"]:where(:not(.pk-relief--dark))::after,
.pk-relief[data-pk-relief-state="fallback"]:where(:not(.pk-relief--dark))::after,
.pk-relief[data-pk-relief-state="queued"]:where(:not(.pk-relief--dark))::after { /* waiting for one of the two renderer slots: the still, not a bare white (lane relief-white-20261101, as the dark wall already did) */
  opacity: var(--pk-relief-static-opacity);
}

.pk-relief > .pk-relief__layer {
  position: absolute;
  inset: 0;
  z-index: -1; /* with the section's own z-index -1 tints (a glass section's fixed gradient): the layer is the first
                  child, so it paints above them, and multiply blending lets their tint through the plaster */
  border-radius: inherit;
  overflow: clip;
  pointer-events: none;
}

/* The pointer field for a section without a live renderer (a short band, a section waiting for or queued behind the two
   renderer slots, a failed context): white at the pointer, the plaster tone away from it, over the still. It fades out
   as soon as the renderer's first frame arrives (state "ready"), so a live section never shows both. */
.pk-relief:where(:not(.pk-relief--dark)) > .pk-relief__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 520px at var(--pk-relief-px, 50%) var(--pk-relief-py, 50%), rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 22%, var(--pk-relief-field) 100%);
  opacity: 0;
  transition: opacity .55s ease;
}

.pk-relief[data-pk-relief-pointer="in"]:where(:not(.pk-relief--dark)):not([data-pk-relief-state="ready"]) > .pk-relief__layer::after {
  opacity: 1;
}

/* A short band shows the slice of the still that its page offset selects (site-relief.js sets --pk-relief-still-y), the
   still scaled to the band's width and repeated, so stacked bands continue one wall. */
.pk-relief[data-pk-relief-short]:where(:not(.pk-relief--dark))::after {
  background-size: 100% auto;
  background-repeat: repeat;
  background-position: 0 var(--pk-relief-still-y, 0px);
}

.pk-relief__sculptures {
  position: sticky;
  top: 0;
  width: 100%;
  opacity: 0;
  mix-blend-mode: multiply; /* the wall is rendered against white; the section's ground and tints show through it */
  transition: opacity .9s ease;
  pointer-events: none;
}

.pk-relief[data-pk-relief-state="ready"] .pk-relief__sculptures {
  opacity: var(--pk-relief-opacity);
}

.pk-relief__sculptures canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pk-relief__sculptures { display: none; }
  .pk-relief:where(:not(.pk-relief--dark))::after { opacity: var(--pk-relief-static-opacity); transition: none; }
  .pk-relief:where(:not(.pk-relief--dark)) > .pk-relief__layer::after { display: none; } /* no moving light under reduced motion */
}

@media (hover: none), (pointer: coarse) {
  .pk-relief__sculptures { display: none; }
  .pk-relief:where(:not(.pk-relief--dark))::after { opacity: var(--pk-relief-static-opacity); }
  .pk-relief:where(:not(.pk-relief--dark)) > .pk-relief__layer::after { display: none; } /* no pointer, no field */
}

body.elementor-editor-active .pk-relief:where(:not(.pk-relief--dark))::after,
body.elementor-editor-active .pk-relief > .pk-relief__layer {
  display: none;
}

/* ---- The dark version (lane relief-dark-20261030). The wall is drawn in ink and the whole layer is screened onto the
   section, so the lit carvings show on black and the section's own ground and z-index -1 tints come through; the
   section's own glows and fades (its z-index 0 pseudo elements) stay above it and are not touched by this sheet. The
   weight is lower than the light wall's so white text keeps its contrast: the composited wall stays under about 18
   percent luminance behind text (measured about 3 percent on the plain wall and 10 percent on the brightest lit figure).
   The still image for phones, tablets, reduced motion and failed WebGL lives on the layer's ::before, not on the
   section's ::after, because the dark sections (the hire card, the close) use their own ::after for glows and fades. */
.pk-relief--dark {
  --pk-relief-opacity: .7;
  --pk-relief-static-opacity: .64;
  --pk-relief-rest: .5;              /* the ink figures need more of their relief at rest to read on black */
  --pk-relief-wall-color: #1c1859;
  --pk-relief-figure-color: #2d2779;
  --pk-relief-light-power: 150;      /* the dark wall keeps the light it was approved with (lane relief-white-20261101 changed the light values above) */
  --pk-relief-light-radius: .62;
  --pk-relief-light-dim: 0;
  --pk-relief-exposure: .9;
}

.pk-relief--dark > .pk-relief__layer { mix-blend-mode: screen; }
.pk-relief--dark .pk-relief__sculptures { mix-blend-mode: normal; }

/* An inset dark ground (a boxed review layout, a row narrower than the window): the wall fades out at its own edges
   instead of standing on the black as a hard-edged lighter panel. Full-width dark sections keep their full wall. */
.pk-relief--dark[data-pk-relief-inset] > .pk-relief__layer {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}

.pk-relief--dark > .pk-relief__layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../brand/dark-sculptural-field.webp?v=2") center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s ease;
}

.pk-relief--dark[data-pk-relief-state="static"] > .pk-relief__layer::before,
.pk-relief--dark[data-pk-relief-state="fallback"] > .pk-relief__layer::before,
.pk-relief--dark[data-pk-relief-state="queued"] > .pk-relief__layer::before { /* waiting for one of the two renderer slots (three short dark rows in view): the still, not a bare black */
  opacity: var(--pk-relief-static-opacity);
}

@media (prefers-reduced-motion: reduce) {
  .pk-relief--dark > .pk-relief__layer::before { opacity: var(--pk-relief-static-opacity); transition: none; }
}

@media (hover: none), (pointer: coarse) {
  .pk-relief--dark > .pk-relief__layer::before { opacity: var(--pk-relief-static-opacity); }
}

/* relief-light-crisp-20261105:start */
.pk-relief:not(.pk-relief--dark){--pk-relief-rest:.3;--pk-relief-light-power:300;--pk-relief-light-radius:.62;--pk-relief-light-dim:.95}
/* relief-light-crisp-20261105:end */
