/* ==========================================================================================
   Frame studio — the EXPERIMENTAL product page /artwork-detail-experiment (v3, 2026-11-04).
   Behaviour: JS/studio.js. Loaded by the page's own loader embed (NOT the storefront bundle), so a
   stale bundle in the browser cache can never leave this page half-styled.

   What lives here vs. in the Designer (owner's rule: elements and CSS in Webflow wherever Webflow can
   express them; code only for what it cannot):
   - Every element is a Designer element, including the preview layers (frame sides, cast shadow, gap
     shade, lights, lip shadow, surface, plaster). Their classes (studio-*) own the look: position,
     colour, opacity, blur, blend, shape, spacing, type.
   - Every property that is not a state is on the element's class, in the style panel or, where the
     panel has no field (container-type, mask, counter-*, touch-action...), in its Custom properties.
     Where a value must follow the light or the size, this file computes it under a name (e.g.
     --fl-glow, --light-x) and the class property reads var(--that-name).
   - A class keeps PLAIN values in the fields its owner will tune (opacity, colour, blend). The Designer's
     style panel garbles a formula (calc/var in a blur, clip-path, gradient or shadow) when anything on
     that class is edited (2026-11-13: editing .studio-cast's opacity lost its blur or the whole shadow).
     So a shape that follows the light or the size is drawn here (the shadows' box-shadow), and the class
     holds what is safe to edit.
   - Tunable numbers (shadow length, depths, light strengths, surface opacities, size curve) are Webflow
     Variables in the "Studio" collection (--_studio---*), read here with the old value as fallback.
   - This file owns only: those computed custom properties (Webflow rejects --x declarations on classes
     and breaks atan2()), @property/keyframes, attribute-driven STATES (frame type, substrate, light
     on, selected, done, active tab, attention, zoom), html-level scroll padding, media queries Webflow
     has no breakpoint for, -webkit- properties, and text generated by CSS (step numbers, placeholders).
   Everything here is keyed by data-studio-* attributes, never class names, so a Designer rename
   cannot break it, and it does nothing on a page without [data-studio-root].

   THE FRAME IS FOUR SIDES. [data-studio-piece] is sized in inches x pixels-per-inch (--ppi), and --ppi
   comes from container query units on the stage, so the print, the moulding and the sofa all resize
   with the viewport in pure CSS:
       close up:  every size a small step bigger: the largest size offered fills the scene and the
                  smallest shows at "Smallest size" of it (Studio variable), never past what fits
       in a room: --ppi = min(scene width / wall inches wide, scene height / wall inches tall)
   The moulding is a Designer element (.studio-moulding: four .studio-side bands). Each band
   is the frame's strip image (frames.strip_url: 12in of moulding, height = width in inches x 100; a
   floater's strip includes its gap and backing) repeated along its length at true scale. Left and right
   lie underneath; top and bottom are cut at 45 degrees and lie on top, so the mitre joints show no
   hairline. The inputs (--art-w/--art-h/--fw/--lip) are registered and eased, so a new size or frame
   glides; a new frame also fades in.

   SHADOWS. The piece casts a real 3D shadow ([data-studio-cast]): its outline swept along the light's
   direction by its depth off the wall, as stacked shadows that get softer and lighter along the sweep
   (dark where the piece meets the wall, fading outward). A floater's print casts the same way onto the
   gap, clipped to the gap ([data-studio-gap-shade]) so it never reaches the moulding.

   THE LIGHT. One light, two coordinate systems, both written by studio.js and eased here:
       --mx/--my  where the light is over the WALL (0-1)       -> cast shadows fall away from it
       --ax/--ay  the same point over the PRINT (0-1 = on it)  -> light and sheen on the print and frame
   The light follows the pointer over the wall and rests high on the right otherwise. "Gallery light"
   is not interactive: it is room light, one still layer over the whole wall (a warm glow in the top
   right corner, shade toward the far corner) that pulls the wall toward the print's tones.
   Pinch (trackpad or touch) zooms the preview; drag looks around; double-click resets.
   ========================================================================================== */

@property --mx { syntax: '<number>'; inherits: true; initial-value: 0.82; }
@property --my { syntax: '<number>'; inherits: true; initial-value: 0.1; }
@property --ax { syntax: '<number>'; inherits: true; initial-value: 0.9; }
@property --ay { syntax: '<number>'; inherits: true; initial-value: -0.3; }
/* The inputs glide (a new size, frame or substrate eases instead of jumping). */
@property --art-w { syntax: '<number>'; inherits: true; initial-value: 19.2; }
@property --art-h { syntax: '<number>'; inherits: true; initial-value: 24; }
@property --fw { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --lip { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --depth-in { syntax: '<number>'; inherits: true; initial-value: 1.1; }
/* Fades of the canvas sheen's layers (0 = off, 1 = on). They fade by easing these numbers, never by
   transitioning opacity itself: Safari (and Chrome on some GPUs) hands an opacity transition to the
   graphics card, which drops the sheen's screen blend while it runs, so the mostly-black layer was
   drawn plainly and the whole print went dark for the fade (2026-11-14). */
@property --weave-on { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --glints-on { syntax: '<number>'; inherits: false; initial-value: 0; }
/* Resolved where they are declared (the scene), so container units always mean the wall. */
@property --ppi { syntax: '<length>'; inherits: true; initial-value: 10px; }
@property --piece-bottom { syntax: '<length>'; inherits: true; initial-value: 0px; }

[data-studio-root] {
  /* Palette: the site's Colors variables where they exist, with the same values as fallbacks. */
  --st-ink: var(--_colors---ink, #232219);
  --st-bone: var(--_colors---bone-solid, #f5f5f3);
  --st-moss: var(--_colors---moss, #8e9d59);
  --st-peach: var(--_colors---peach, #ffb691);
  --st-ink-2: color-mix(in srgb, var(--st-ink) 72%, var(--st-bone));
  --st-ink-3: color-mix(in srgb, var(--st-ink) 52%, var(--st-bone));
  --st-line: color-mix(in srgb, var(--st-ink) 13%, transparent);
  --st-line-2: color-mix(in srgb, var(--st-ink) 26%, transparent);
  --st-fill: color-mix(in srgb, var(--st-ink) 6%, transparent);
  --st-shadow: 35 31 24;
  --st-ease: cubic-bezier(0.22, 0.75, 0.2, 1);
}

/* ============================================================== the stage (the wall) */
[data-studio-wall] {
  /* Inputs, in inches. studio.js writes them; these defaults are what shows before a choice. */
  --art-w: 19.2;
  --art-h: 24;
  --fw: 0;           /* frame width incl. a floater's gap */
  --lip: 0;          /* print hidden under the frame's rabbet, each side */
  --mx: 0.82;        /* light over the wall, 0-1 (rest: high on the right) */
  --my: 0.1;
  --ax: 0.9;         /* the same light over the print */
  --ay: -0.3;
  /* Tunable numbers come from Webflow Variables (collection "Studio", edited in the Designer's Variables
     panel); the second value in each var() is only a fallback. */
  --depth: var(--_studio---lip-depth-standard, 1);           /* relative depth (lip shadow) */
  --depth-in: var(--_studio---depth-standard, 1.1);        /* how far the piece stands off the wall, inches (cast shadow) */
  --light-k: var(--_studio---light-no-material, 0.9);     /* how strongly the surface answers the light (per substrate below) */

  /* Derived (numbers, inches) */
  --vis-w: calc(var(--art-w) - 2 * var(--lip));
  --vis-h: calc(var(--art-h) - 2 * var(--lip));
  --tw: calc(var(--vis-w) + 2 * var(--fw));
  --th: calc(var(--vis-h) + 2 * var(--fw));
  --lx: calc(0.5 - var(--mx)); /* shadows fall away from the light */
  --ly: calc(0.5 - var(--my));

  /* Colour, daylight gradient, overflow, container-type, isolation, touch-action: .studio-stage (Designer). */
  --sly: calc(var(--ly) + var(--_studio---shadow-lean-down, 0.12)); /* the light sits a little above: shadows lean down */
  /* No strip until a frame is picked (studio.js then sets an absolute URL here). The old page's default
     in vars.css is a relative url(), which Safari resolves against the stylesheet that USES it: now
     Webflow's (.studio-side), so it 403'd on Webflow's CDN. */
  --frame-image: none;
  --light-x: calc(var(--ax) * 100%); /* where the light is on the print (.studio-print-light reads these) */
  --light-y: calc(var(--ay) * 100%);
  transition:
    --mx 0.7s var(--st-ease), --my 0.7s var(--st-ease), --ax 0.7s var(--st-ease), --ay 0.7s var(--st-ease),
    --art-w 0.55s var(--st-ease), --art-h 0.55s var(--st-ease), --fw 0.55s var(--st-ease), --lip 0.55s var(--st-ease),
    --depth-in 0.55s var(--st-ease), background-color 0.9s ease;
}

[data-studio-root] [data-studio-wall][data-studio-frame='shadowbox'] { --depth: var(--_studio---lip-depth-shadow-box, 1.7); --depth-in: var(--_studio---depth-shadow-box, 1.9); }
[data-studio-root] [data-studio-wall][data-studio-frame='floater'] { --depth-in: var(--_studio---depth-floater, 1.6); }
[data-studio-root] [data-studio-wall][data-studio-frame='none'] { --depth-in: var(--_studio---depth-no-frame, 0.15); }
[data-studio-root] [data-studio-wall][data-studio-substrate='canvas'][data-studio-frame='none'] { --depth-in: var(--_studio---depth-no-frame-canvas, 1.5); }
[data-studio-root] [data-studio-wall][data-studio-substrate='metal'][data-studio-frame='none'] { --depth-in: var(--_studio---depth-no-frame-metal, 0.75); }
/* Light strength per material, 0-1 (.studio-print-light applies it as filter: opacity()). */
[data-studio-root] [data-studio-wall][data-studio-substrate='paper'] { --light-k: var(--_studio---light-paper, 0.72); }
[data-studio-root] [data-studio-wall][data-studio-substrate='canvas'] { --light-k: var(--_studio---light-canvas, 1); }
[data-studio-root] [data-studio-wall][data-studio-substrate='metal'] { --light-k: var(--_studio---light-metal, 1.05); }

/* Plaster texture and gallery light are Designer elements (.studio-plaster, .studio-gallery-light own
   their look). Here only the gallery light's on state. */
[data-studio-root][data-studio-light='on'] [data-studio-gallery-light] {
  opacity: 1;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.15, 1);
}

/* ============================================================== scene: scale + placement */
[data-studio-scene] {
  /* Size, and the zoom transform reading --zoom/--pan-x/--pan-y: .studio-scene (Designer). */
  /* Close up: the largest size offered (studio.js: --max-w/--max-h, inches) fills the scene (the stage
     minus its padding: .studio-stage's padding in the Designer IS the margin); every smaller size is a
     little smaller, and the smallest (--min-w/--min-h) shows at "Smallest size" (Studio variable, 0-1) of
     the largest's size on screen, so it still looks big. The sizes between are spaced evenly by ratio
     (log of the long edge), so each step up grows by about the same small amount however many sizes
     there are. One size offered = full size. Never larger than fits. (2026-11-14; before, every size
     scaled by (size / largest)^0.4, which left a portrait's smallest size at half the wall's height.) */
  --size-min: var(--_studio---smallest-size, 0.84);
  /* framed outside of the largest / smallest size, measured like --tw/--th (the lip hidden under the frame) */
  --max-tw: calc(var(--max-w, var(--art-w)) - 2 * var(--lip) + 2 * var(--fw));
  --max-th: calc(var(--max-h, var(--art-h)) - 2 * var(--lip) + 2 * var(--fw));
  --min-tw: calc(var(--min-w, var(--art-w)) - 2 * var(--lip) + 2 * var(--fw));
  --min-th: calc(var(--min-h, var(--art-h)) - 2 * var(--lip) + 2 * var(--fw));
  --len: max(var(--tw), var(--th));
  --len-max: max(var(--max-tw), var(--max-th));
  --len-min: min(max(var(--min-tw), var(--min-th)), var(--len));
  --size-t: clamp(0, (log(var(--len) / var(--len-min)) + 0.001) / (log(var(--len-max) / var(--len-min)) + 0.001), 1);
  --size-s: calc(var(--size-min) + (1 - var(--size-min)) * var(--size-t));
  --ppi-top: min(100cqw / var(--max-tw), 100cqh / var(--max-th));
  --ppi-fit: min(100cqw / var(--tw), 100cqh / var(--th), var(--ppi-top) * var(--len-max) / var(--len) * var(--size-s));
  /* In a room: a wall section at least 10ft wide and tall enough for the hanging height + piece. */
  --room-w: max(120, calc(var(--tw) * 1.45));
  --room-h: max(98, calc(var(--th) + 52));
  --ppi-room: min(100cqw / var(--room-w), 100cqh / var(--room-h));
  --ppi: var(--ppi-fit);
  --piece-w: calc(var(--tw) * var(--ppi));
  --piece-h: calc(var(--th) * var(--ppi));
  /* Optical centre: hang a touch above the middle, but never above the scene (the stage padding is the
     margin, so a print that fills the height sits exactly in the middle). */
  --piece-bottom: calc((100cqh - var(--piece-h)) / 2 + min(2.5cqh, (100cqh - var(--piece-h)) / 2));
}
/* Switching close up / in a room glides; window resizes do not (they would lag behind the hand). */
[data-studio-root][data-studio-viewing] [data-studio-scene] { transition: --ppi 0.6s var(--st-ease), --piece-bottom 0.6s var(--st-ease); }
/* The stage's padding (.studio-stage, Designer) is the CLOSE-UP margin around the largest size, so the
   owner tunes how big the art shows right there. The room view needs a taller band under the piece for
   the floor and sofa; that is a state, so it lives here (desktop 196px, tablets 184px below; phones keep
   the class value in both views). */
@media screen and (min-width: 992px) {
  [data-studio-root][data-studio-view='room'] [data-studio-wall] { padding-bottom: 196px; }
}
[data-studio-root][data-studio-view='room'] [data-studio-scene] {
  --ppi: var(--ppi-room);
  /* Bottom of the piece 9in above a 33in sofa back = 42in off the floor. */
  --piece-bottom: calc(42 * var(--ppi));
}

/* ============================================================== the framed piece */
/* Placement, size and the contact shadow where it touches the wall: .studio-piece (Designer). On the
   published site it stays hidden until the artwork is shown.
   DESIGNER PREVIEW: every rule in this file that hides something until the script is ready is scoped to
   html.adc-js (the site's head script adds that class on the published site only; scripts don't run in
   the Designer), so the Designer shows everything. The page's "Designer preview" embed supplies the
   example's values and images there, under html:not(.adc-js). */
[data-studio-piece] {
  --ppi: inherit; /* from the scene; also overrides v1's own --ppi if a stale cached bundle still carries it */
  --fwpx: calc(var(--fw) * var(--ppi));
  transition: opacity 0.6s var(--st-ease);
}
html.adc-js [data-studio-root]:not([data-studio-ready]) [data-studio-piece] { opacity: 0; }

/* The layers below are Designer elements; their classes own the look (colour, opacity, blur, blend,
   shape). This file only supplies what Webflow cannot hold: the numbers derived from the light and the
   frame (custom properties), container units, and the state rules (frame type, substrate, light on).
   Inside the piece, bottom to top: .studio-cast (-1), .studio-moulding (1), .studio-gap-shade (2),
   .studio-art (3), .studio-print-light (4), .studio-frame-light (5). */

/* The moulding (.studio-moulding > .studio-side + is-top/is-bottom/is-left/is-right): each side is the
   frame's strip (--frame-image: 12in of moulding, height = width in inches x 100; a floater's strip
   includes its gap) repeated along its length at true scale; left/right lie under top/bottom, whose
   ends are cut at 45 degrees. The sides measure the moulding box in container units (.studio-moulding
   is the size container). */
[data-studio-wall][data-studio-frame='none'] [data-studio-moulding] { visibility: hidden; }
/* A frame just picked fades in (studio.js sets data-studio-frame-in). */
[data-studio-moulding][data-studio-frame-in] { animation: studio-frame-in 0.6s var(--st-ease) both; }
@keyframes studio-frame-in { from { opacity: 0; } to { opacity: 1; } }

/* The cast shadow (.studio-cast: the piece's own box, behind it). The piece's outline swept away from the
   light, longer for deeper pieces, drawn as a stack of shadows of the piece's box: each one a step
   further along the sweep, softer and lighter than the last. So the shadow is darkest and crispest
   where the piece meets the wall and fades to nothing at the far end (a real shadow's edge softens with
   distance), and a faint ring darkens every side where the piece touches the wall.
   The class holds plain values only (opacity = how dark overall). The shape is computed here, because
   the Designer's style panel garbles formulas in a class's fields (blur, clip-path, gradients) when
   anything on that class is edited. Studio variables: Shadow length, Shadow softness, Shadow colour.
   The floater's gap shade below is built the same way. */
[data-studio-cast] {
  --cast: calc(var(--depth-in) * var(--ppi) * var(--_studio---shadow-length, 2.6));
}
[data-studio-cast],
[data-studio-gap-cast] {
  --cx: calc(var(--lx) * var(--cast)); /* the sweep, px */
  --cy: calc(var(--sly) * var(--cast));
  --soft: calc(hypot(var(--cx), var(--cy)) * var(--_studio---shadow-softness, 0.7)); /* blur at the far end */
  --sc: color-mix(in srgb, var(--_studio---shadow-colour, #231f18) 40%, transparent);
  box-shadow:
    0 0 calc(var(--cast) * 0.2 + 1px) color-mix(in srgb, var(--_studio---shadow-colour, #231f18) 60%, transparent),
    calc(var(--cx) * 0.04) calc(var(--cy) * 0.04) calc(var(--soft) * 0.04 + 1px) var(--sc),
    calc(var(--cx) * 0.1) calc(var(--cy) * 0.1) calc(var(--soft) * 0.1 + 1px) var(--sc),
    calc(var(--cx) * 0.2) calc(var(--cy) * 0.2) calc(var(--soft) * 0.2 + 1px) var(--sc),
    calc(var(--cx) * 0.4) calc(var(--cy) * 0.4) calc(var(--soft) * 0.4 + 1px) var(--sc),
    calc(var(--cx) * 0.7) calc(var(--cy) * 0.7) calc(var(--soft) * 0.7 + 1px) var(--sc),
    var(--cx) var(--cy) calc(var(--soft) + 1px) var(--sc);
}

/* A floater's gap shade (.studio-gap-shade > .studio-gap-cast): the print casts onto the 1/4in gap the
   same way. .studio-gap-shade is a window over the gap and the print that clips (overflow hidden), so
   the shadow never reaches the moulding; .studio-gap-cast is the print's box inside it, casting. Their
   classes hold opacity and the clipping; the sizes are computed here. Shown for floaters. */
[data-studio-gap-shade] {
  --gappx: calc(0.25 * var(--ppi));
  inset: calc(var(--fwpx) - var(--gappx));
}
[data-studio-gap-cast] {
  --cast: calc(var(--_studio---gap-shadow-length, 0.45) * var(--ppi));
  inset: var(--gappx);
}
html.adc-js [data-studio-wall]:not([data-studio-frame='floater']) [data-studio-gap-shade] { display: none; }

/* Frame light (.studio-frame-light holds the ring: border, background, mask, blend, opacity): one
   soft-light ring over the moulding (border box minus the opening). Its colours follow the light, so they
   are computed here and the class reads them: --fl-top/-right/-bottom/-left (each side's grey by how
   squarely it faces the light, seams on the mitres; only a sculpted, standard moulding has sides facing
   different ways) and --fl-glow (brighter nearer the light, continuous over the whole frame). */
[data-studio-frame-light] {
  --facing: 0;
  --falloff: 1;
  --fl-top: hsl(0 0% calc(24% + (1 - var(--my)) * 56%) / var(--facing));
  --fl-right: hsl(0 0% calc(24% + var(--mx) * 56%) / var(--facing));
  --fl-bottom: hsl(0 0% calc(24% + var(--my) * 56%) / var(--facing));
  --fl-left: hsl(0 0% calc(24% + (1 - var(--mx)) * 56%) / var(--facing));
  --fl-glow: radial-gradient(circle farthest-corner
      at calc(var(--fwpx) + var(--ax) * (100% - 2 * var(--fwpx))) calc(var(--fwpx) + var(--ay) * (100% - 2 * var(--fwpx))),
      hsl(0 0% 80% / var(--falloff)) 0%, hsl(0 0% 58% / var(--falloff)) 36%, hsl(0 0% 27% / var(--falloff)) 100%);
}
[data-studio-wall][data-studio-frame='standard'] [data-studio-frame-light] { --facing: var(--_studio---frame-light-sides, 0.62); --falloff: var(--_studio---frame-light-falloff, 0.8); }

/* ---------------------------------------------------------------- the print and its surface */
/* Layers in the print (it is its own group), bottom to top: img (0) -> .studio-surface (1) -> sheen (3)
   -> .studio-lip-shadow (4). .studio-print-light lies over the whole print group. .studio-art itself
   (inset by the frame, the paper colour behind the image) and its image (.studio-art-img) are styled in
   the Designer. */

/* The frame's lip shades the print on the side the light comes from (.studio-lip-shadow owns the shadow
   and its opacity). Only standard and shadow-box frames have a lip. */
html.adc-js [data-studio-wall]:not([data-studio-frame='standard'], [data-studio-frame='shadowbox']) [data-studio-lip-shadow] { opacity: 0; }
/* Unframed canvas: a deep block with a soft edge. */
html[data-c-wrap='1'] [data-studio-wall][data-studio-frame='none'] [data-studio-art] {
  box-shadow: inset calc(var(--lx) * -3px) calc(var(--ly) * -3px) 2px rgb(var(--st-shadow) / 0.16);
}

/* Surface texture: one Designer element per material (.studio-surface + is-canvas / is-paper / is-metal,
   data-studio-surface="canvas|paper|metal"). Each class holds its texture, blend and strength (opacity).
   Only the picked material's layer is shown, so a texture file downloads only once its material is
   picked. Here: which one shows, and the values that follow the size or the light.
   Canvas weave: scales with the print like real canvas (a bigger print shows more threads), but
   coarser than life. The texture image covers --weave inches (Studio variable "Canvas weave size",
   20; bigger = coarser). At true size (6in) a thread was under half a screen pixel, and shrinking it
   that far drew bands (moire), worst on large prints. The highlight weave (the sheen below) uses the
   same --weave, so its threads lie exactly on the texture's. */
html.adc-js [data-studio-wall]:not([data-studio-substrate='canvas']) [data-studio-surface='canvas'],
html.adc-js [data-studio-wall]:not([data-studio-substrate='paper']) [data-studio-surface='paper'],
html.adc-js [data-studio-wall]:not([data-studio-substrate='metal']) [data-studio-surface='metal'] { display: none; }
[data-studio-wall] { --weave: var(--_studio---canvas-weave-size, 20); }
/* canvas-texture.webp: 1024px for --weave inches */
[data-studio-wall] [data-studio-surface='canvas'] { background-size: calc(var(--ppi) * var(--weave)); }
/* Paper's fibres are soft, so they stay at true size (10in tile). */
[data-studio-surface='paper'] { background-size: calc(var(--ppi) * 10); }
/* Metal: the room, reflected. A sharp photo of a lived-in room (alpha fades at its edges) overlaid on the
   print and sliding with the light, so the sheet reads as a mirror-smooth surface. The finish blurs it:
   gloss 0, semi-gloss 5px, matte 10px (--substrate-blur, frame-substrate-var-updates.js). */
[data-studio-surface='metal'] {
  background-position: clamp(-25%, calc(var(--ax) * 100%), 125%) clamp(0%, calc(var(--ay) * 100%), 100%);
  filter: blur(var(--substrate-blur, 0px));
}

/* Diffuse light on the print: .studio-print-light (Designer) holds the gradient, placed at --light-x /
   --light-y (set on the wall), with filter: opacity(var(--light-k)) for the per-material strength. */

/* The sheen (.studio-sheen, screen blend, hidden by default: Designer): what a surface reflects back.
   Inside it two .studio-sheen-layer elements, data-studio-sheen-layer="reflection" and "glints", filled
   per substrate below. */

/* Metal: vivid colour and deep blacks, and a specular hot spot that follows the light. A flat glossy
   sheet reflects the light at the point between the light and the viewer, so the spot sits a little
   toward the print's centre from the pointer. Gloss is small and bright; matte is broad and dim. */
[data-studio-wall][data-studio-substrate='metal'] [data-studio-art] img { filter: saturate(1.12) contrast(1.06); }
[data-studio-wall][data-studio-substrate='metal'][data-studio-finish='metal-matte'] [data-studio-art] img { filter: saturate(1.05) contrast(1.02); }
[data-studio-wall][data-studio-substrate='metal'] [data-studio-sheen] {
  --spot-r: calc(max(var(--vis-w), var(--vis-h)) * var(--ppi) * var(--_studio---metal-spot-size-gloss, 0.5));
  --spot-a: var(--_studio---metal-spot-gloss, 0.5);
  --sx: calc((0.5 + (var(--ax) - 0.5) * 0.78) * 100%);
  --sy: calc((0.5 + (var(--ay) - 0.5) * 0.78) * 100%);
  display: block;
  background:
    radial-gradient(circle var(--spot-r) at var(--sx) var(--sy),
      rgb(255 255 255 / var(--spot-a)) 0%, rgb(255 255 255 / calc(var(--spot-a) * 0.42)) 14%,
      rgb(255 255 255 / calc(var(--spot-a) * 0.12)) 34%, rgb(255 255 255 / 0) 62%);
}
/* The room's bright shapes (windows, the fireplace) also show on dark passages, where an overlay
   alone barely lifts them: a faint screen copy of the same reflection, moving and blurring with it. */
[data-studio-wall][data-studio-substrate='metal'] [data-studio-sheen-layer='reflection'] {
  inset: -8%;
  background: url(/__release/textures/metal-reflection.webp)
    clamp(-25%, calc(var(--ax) * 100%), 125%) clamp(0%, calc(var(--ay) * 100%), 100%) / 150% auto no-repeat;
  filter: blur(var(--substrate-blur, 0px)) contrast(1.4) brightness(0.9);
  opacity: var(--_studio---metal-room-copy, 0.16);
}
[data-studio-wall][data-studio-finish='metal-matte'] [data-studio-sheen-layer='reflection'] { opacity: var(--_studio---metal-room-copy-matte, 0.08); }
[data-studio-wall][data-studio-finish='metal-semi-gloss'] [data-studio-sheen] { --spot-r: calc(max(var(--vis-w), var(--vis-h)) * var(--ppi) * var(--_studio---metal-spot-size-semi-gloss, 0.7)); --spot-a: var(--_studio---metal-spot-semi-gloss, 0.38); }
[data-studio-wall][data-studio-finish='metal-matte'] [data-studio-sheen] { --spot-r: calc(max(var(--vis-w), var(--vis-h)) * var(--ppi) * var(--_studio---metal-spot-size-matte, 1.05)); --spot-a: var(--_studio---metal-spot-matte, 0.18); }

/* Canvas: two light layers in one screen group (the sheen), so they can only add light.
   1. The weave: thread tops catch the light around the reflection. The weave's highlight map
      (canvas-reflection-mask.jpg) times a falloff around the reflection, contrast pushed until only
      the brightest threads near the light stay lit (the live /artwork-detail page's canvas layer).
      Its threads match the texture's: the map is 512px with the same 7px thread spacing as the
      texture's 1024px, so it tiles at half the texture's size. Shown only while a mouse is over the
      wall (data-studio-over; it fades out when the pointer leaves): resting, the light sits on the
      print's top right corner at large sizes, and a lit corner there read as a stuck highlight.
   2. The shimmer: tiny warm glints that twinkle while the light moves. Two sparse speck fields drift
      opposite ways with the light; only where specks of both meet does a glint show (multiply), so
      glints appear and vanish rather than slide. Only while a hand moves the light: at rest, still
      specks would read as dust on the print.
   Both sit at the reflection point (the same point as metal's hot spot). */
[data-studio-wall][data-studio-substrate='canvas'] [data-studio-sheen] {
  --sx: calc((0.5 + (var(--ax) - 0.5) * 0.78) * 100%);
  --sy: calc((0.5 + (var(--ay) - 0.5) * 0.78) * 100%);
  --reach: calc(max(var(--vis-w), var(--vis-h)) * var(--ppi));
  display: block;
}
[data-studio-wall][data-studio-substrate='canvas'] [data-studio-sheen-layer='reflection'] {
  background:
    radial-gradient(circle calc(var(--reach) * 0.8) at var(--sx) var(--sy), #fff 0%, #000 90%) no-repeat,
    url(/__release/textures/canvas-reflection-mask.jpg) 0 0 / calc(var(--ppi) * var(--weave) / 2) repeat;
  background-blend-mode: multiply, normal;
  filter: brightness(1.35) contrast(5);
  --weave-on: 0;
  opacity: calc(var(--weave-on) * var(--_studio---canvas-weave, 0.55));
  transition: --weave-on 0.6s ease;
}
[data-studio-wall][data-studio-over][data-studio-substrate='canvas'] [data-studio-sheen-layer='reflection'] { --weave-on: 1; }
[data-studio-wall][data-studio-substrate='canvas'] [data-studio-sheen-layer='glints'] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='131' height='131'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='8' intercept='-4.75'/%3E%3CfeFuncG type='linear' slope='8' intercept='-4.75'/%3E%3CfeFuncB type='linear' slope='8' intercept='-4.75'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix values='1 0 0 0 0 0 .95 0 0 0 0 0 .82 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E")
      calc(var(--ax) * 37px) calc(var(--ay) * 29px) / 131px 131px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='97'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='19' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='7' intercept='-3.9'/%3E%3CfeFuncG type='linear' slope='7' intercept='-3.9'/%3E%3CfeFuncB type='linear' slope='7' intercept='-3.9'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E")
      calc(var(--ax) * -23px) calc(var(--ay) * -31px) / 97px 97px;
  background-blend-mode: multiply, normal;
  -webkit-mask-image: radial-gradient(circle calc(var(--reach) * 0.62) at var(--sx) var(--sy), #000 0%, rgb(0 0 0 / 0.6) 22%, rgb(0 0 0 / 0.18) 55%, transparent 100%);
  mask-image: radial-gradient(circle calc(var(--reach) * 0.62) at var(--sx) var(--sy), #000 0%, rgb(0 0 0 / 0.6) 22%, rgb(0 0 0 / 0.18) 55%, transparent 100%);
  mix-blend-mode: lighten;
  --glints-on: 0;
  opacity: var(--glints-on);
  transition: --glints-on 0.6s ease;
}
[data-studio-wall][data-studio-hand][data-studio-substrate='canvas'] [data-studio-sheen-layer='glints'] { --glints-on: 1; }

/* Glints only make sense while the light moves; on a touch screen it rests. */
@media (hover: none) {
  [data-studio-wall][data-studio-substrate='canvas'] [data-studio-sheen-layer='glints'] { display: none; }
}

/* Paper: soft. Fine art paper is matte (diffuse light only, slightly lower contrast); luster paper
   has a faint, very broad sheen. */
[data-studio-wall][data-studio-substrate='paper'] [data-studio-art] img { filter: contrast(0.97) saturate(0.97); }
[data-studio-wall][data-studio-finish='paper-luster'] [data-studio-sheen] {
  display: block;
  background: radial-gradient(circle calc(max(var(--vis-w), var(--vis-h)) * var(--ppi) * 1.1)
      at calc((0.5 + (var(--ax) - 0.5) * 0.78) * 100%) calc((0.5 + (var(--ay) - 0.5) * 0.78) * 100%),
    rgb(255 255 255 / 0.12), rgb(255 255 255 / 0) 70%);
}

/* ---------------------------------------------------------------- in a room: floor, baseboard, sofa */
/* .studio-floor, .studio-baseboard, .studio-sofa (+ .studio-sofa-shadow) are Designer elements sized
   from --ppi-room (true scale: a 4in baseboard, an 84 x 33in sofa). Here only the room view showing them. */
[data-studio-root][data-studio-view='room'] :is([data-studio-floor], [data-studio-baseboard]) { opacity: 1; }
[data-studio-root][data-studio-view='room'] [data-studio-sofa] { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- wall label + tools */
/* The wall label is lettered onto the wall (overlay blend, Designer class): a line shows once it
   has something to say. */
[data-studio-root] [data-studio-placard] [data-studio-sel]:empty { display: none; }
/* Desktop: the label is fixed in the window's bottom left corner (owner, 2026-11-14: its class, position
   fixed; tablets absolute in the wall's corner). It stays inside the stage, so it still blends with the wall.
   Where it would sit on the framed print, or off the wall, studio.js sets data-studio-placard-off and it
   steps aside (no fade: an opacity transition on a blended layer drops the blend in Safari). */
[data-studio-wall][data-studio-placard-off] [data-studio-placard] { opacity: 0; }

/* Transitions and focus outlines of the buttons, tabs and switches: their classes (Designer). */
[data-studio-view-btn][aria-pressed='true'] {
  background-color: #fff;
  color: var(--st-ink);
  box-shadow: 0 1px 2px rgb(var(--st-shadow) / 0.14);
}

/* The light switch: the bulb icon (.studio-light-icon, a mask) is drawn in the Designer; when on, it fills. */
[data-studio-light-toggle][aria-pressed='true'] { background-color: var(--st-ink); color: #fbf3e6; }
[data-studio-light-toggle][aria-pressed='true'] [data-studio-light-icon] {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.7.5 1.1 1.3 1.1 2.2h5c0-.9.4-1.7 1.1-2.2A6 6 0 0 0 12 3zM9 18h6v1.6H9zM10 20.4h4V22h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.7.5 1.1 1.3 1.1 2.2h5c0-.9.4-1.7 1.1-2.2A6 6 0 0 0 12 3zM9 18h6v1.6H9zM10 20.4h4V22h-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #ffd7a8;
}
[data-studio-light-hint] { opacity: 0; translate: 6px 0; transition: opacity 0.4s ease, translate 0.4s ease; pointer-events: none; }
[data-studio-light-hint][data-studio-show] { opacity: 1; translate: 0 0; }

/* No ?id= in the address: say what to do instead of showing an empty frame. */
[data-studio-root][data-studio-empty] [data-studio-empty-msg] { display: flex; }
[data-studio-root][data-studio-empty] :is([data-studio-piece], [data-studio-placard]) { display: none; }

/* ============================================================== the worksheet (panel) */
/* The step counter, scroll margins, outline and transitions of steps: .studio-steps / .studio-step. */
/* Scrolling and focus land clear of what is pinned: the buy bar at the bottom, and on tablets and
   phones the preview at the top (scroll-padding covers keyboard focus too, not only "Select a ..."). */
html:has([data-studio-root]) { scroll-padding-bottom: 128px; }
@media screen and (max-width: 991px) {
  html:has([data-studio-root]) { scroll-padding-top: calc(max(62vh, 420px) + 12px); }
}
@media screen and (max-width: 767px) {
  html:has([data-studio-root]) { scroll-padding-top: calc(max(46vh, 300px) + 12px); }
}
/* Tablets: the room view's floor band (the close-up margin is the class's padding). */
@media screen and (min-width: 768px) and (max-width: 991px) {
  [data-studio-root][data-studio-view='room'] [data-studio-wall] { padding-bottom: 184px; }
}
/* Short screens (landscape phones, zoomed laptops): a pinned preview would leave no room for the
   options or the buy bar, so the preview scrolls away with the page instead. */
@media screen and (max-width: 991px) and (max-height: 700px) {
  [data-studio-root] [data-studio-wall] { position: relative; top: auto; height: min(88svh, 560px); min-height: 280px; }
  html:has([data-studio-root]) { scroll-padding-top: 12px; }
}

/* A step studio.js decided for the shopper (data-studio-auto with one choice): not shown, not counted. */
[data-studio-section][data-studio-auto-hidden] { display: none; }

[data-studio-step-num]::before { content: counter(studio-step); }
/* Done: the number becomes a check. */
[data-studio-section]:has(input:checked:not(:disabled)) [data-studio-step-num] {
  background-color: var(--st-ink);
  border-color: var(--st-ink);
  color: #fff;
}
[data-studio-section]:has(input:checked:not(:disabled)) [data-studio-step-num]::before {
  content: '';
  width: 11px;
  height: 11px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Sent here by the button ("Select a finish"): the step glows softly for a moment, then fades. */
[data-studio-section][data-studio-attention] {
  background-color: color-mix(in srgb, var(--st-peach) 12%, transparent);
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--st-peach) 12%, transparent);
  outline-color: color-mix(in srgb, var(--st-peach) 70%, transparent);
  transition-duration: 0.25s;
}

/* Until the first pass, the Designer's sample values must not read as real choices or prices. */
html.adc-js [data-studio-root]:not([data-studio-synced]) [data-studio-sel],
html.adc-js [data-studio-root]:not([data-studio-loaded]) [data-studio-from] { visibility: hidden; }

/* A choice echoed in a step header or label: a quiet placeholder when nothing is chosen yet. */
[data-studio-sel][data-studio-placeholder]:empty::before { content: attr(data-studio-placeholder); color: var(--st-ink-3); }

/* ---------------------------------------------------------------- options (custom radios) */
/* The whole tile is the radio's <label> (.studio-hit, an invisible hit area over it) with the real input
   inside (.studio-hit-input: kept focusable and validatable, never display:none). Tiles, labels, hover
   borders and transitions are their classes. Webflow rejects -webkit- properties, so this stays here: */
[data-studio-option] { -webkit-tap-highlight-color: transparent; }
[data-studio-option]:has(input:disabled) { opacity: 0.38; pointer-events: none; }
[data-studio-option]:has(input:focus-visible) { outline: 2px solid var(--st-ink); outline-offset: 2px; }

/* Picked = inverted: ink tile, white text. Material cards invert their name band. */
:is([data-studio-kind='choice'], [data-studio-kind='size']):has(input:checked) {
  background-color: var(--st-ink);
  border-color: var(--st-ink);
}
:is([data-studio-kind='choice'], [data-studio-kind='size']):has(input:checked) [data-studio-option-label] { color: #fff; }
[data-studio-kind='card']:has(input:checked) { border-color: var(--st-ink); }
[data-studio-kind='card']:has(input:checked) [data-studio-option-label] { background-color: var(--st-ink); color: #fff; }

/* ---------------------------------------------------------------- frames */
#frame-tabs[data-studio-single] { display: none; }
[data-studio-tab][aria-selected='true'] {
  background-color: #fff;
  color: var(--st-ink);
  box-shadow: 0 1px 2px rgb(var(--st-shadow) / 0.14);
}
/* Panes and their lists join the frame grid (display: contents on .studio-pane / .studio-pane-list), so
   "No frame" and the active type's swatches flow in one grid. An inactive pane is hidden by this rule,
   not inline display, so ui-visibility.js still counts its frames as offerable. */
html.adc-js [data-studio-pane]:not([data-studio-active]) { display: none; }
html.adc-js [data-studio-note]:not([data-studio-active]) { display: none; }
[data-studio-option]:has([data-studio-swatch='none']) { order: -1; }

/* Designer favourites / All frames. Favourites (data-studio-favorites on the frame step, frame codes)
   come first in every view; in the favourites view the rest are hidden, except a frame that is
   picked. A type with no favourites always shows everything (and no switch). */
[data-studio-section][data-studio-frames='favorites'] [data-studio-pane]:not([data-studio-no-favs]) [data-studio-option]:not([data-studio-fav]):not(:has(input:checked)) { display: none; }
[data-studio-frames-toggle][data-studio-hidden] { display: none; }
/* The switch's link style and hover: .studio-frames-btn (Designer). The set you are looking at reads as a caption, the other as the link to it. */
[data-studio-frames-btn][aria-pressed='true'] { color: var(--st-ink-2); text-decoration-color: transparent; cursor: default; }

/* A swatch: the mitred corner of the moulding, at true relative width (strip 1200px long at
   --swatch-len 216px: 1in = 18px), on a quiet neutral, lit like a sample on a table. Its look is in the
   Designer: .studio-swatch (neutral ground), .studio-swatch-img (+ is-side, the turned copy) with the
   moulding's faint shadow, .studio-swatch-side (the mitre cut), .studio-swatch-light (+ is-none: the
   "No frame" hairline). Here only the length both images share. */
[data-studio-swatch] { --swatch-len: 216px; }
/* Picked: a ring around the swatch with a gap, like a colour chip. */
[data-studio-kind='swatch']:hover [data-studio-swatch] { outline-color: var(--st-line-2); }
[data-studio-kind='swatch']:has(input:checked) [data-studio-swatch] { outline: 2px solid var(--st-ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- buy bar */
html.adc-js [data-studio-root]:not([data-studio-priced]) [data-studio-price-hint] { display: block; }
html.adc-js [data-studio-root]:not([data-studio-priced]) [data-studio-price-line] { display: none; }
[data-studio-buy] [data-studio-sel]:empty { display: none; }

/* Add to cart names what is still missing ("Select a finish") and looks unavailable until the print
   is complete. It stays pressable: pressing it takes you to that step. */
html.adc-js [data-studio-root]:not([data-studio-complete]) [data-studio-atc] {
  background-color: color-mix(in srgb, var(--st-ink) 11%, var(--st-bone));
  color: color-mix(in srgb, var(--st-ink) 78%, var(--st-bone));
}
html.adc-js [data-studio-root]:not([data-studio-complete]) [data-studio-atc]:hover {
  background-color: color-mix(in srgb, var(--st-ink) 16%, var(--st-bone));
  color: var(--st-ink);
}

[data-studio-root] :is([data-studio-sel], #product-price, [data-adc-price]) { font-variant-numeric: tabular-nums; }

/* Options still loading (the snapshot is a network fetch): a quiet placeholder band in each list. */
html.adc-js [data-studio-root]:not([data-studio-loaded]) [data-adc-mount]::before {
  content: '';
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 56px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--st-fill) 0%, color-mix(in srgb, var(--st-ink) 10%, transparent) 50%, var(--st-fill) 100%) 0 0 / 200% 100%;
  animation: studio-shimmer 1.3s linear infinite;
}
@keyframes studio-shimmer { to { background-position: -200% 0; } }

/* Price and completion, announced to screen readers (studio.js writes it; visually hidden). */
[data-studio-live] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Windows High Contrast: picked states are colour fills, which forced colours drop. */
@media (forced-colors: active) {
  [data-studio-option]:has(input:checked),
  [data-studio-tab][aria-selected='true'],
  [data-studio-view-btn][aria-pressed='true'],
  [data-studio-frames-btn][aria-pressed='true'],
  [data-studio-light-toggle][aria-pressed='true'] { outline: 3px solid Highlight; outline-offset: -3px; }
  [data-studio-step-num]::before, [data-studio-light-icon] { forced-color-adjust: none; background-color: CanvasText; }
}

/* Zoom (pinch): drag looks around while zoomed in; easing only for resets. */
[data-studio-wall][data-studio-zoomed] { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
/* Dragging the zoomed print looks around; it must not pick up the image file (studio.js also cancels
   dragstart, for browsers without this property). */
[data-studio-wall] img { -webkit-user-drag: none; }
[data-studio-wall][data-studio-dragging] { cursor: grabbing; }
/* The placard sits on the wall; zoomed in, the art covers that spot, so it steps aside. */
[data-studio-wall][data-studio-zoomed] [data-studio-placard] { opacity: 0; }
[data-studio-wall][data-studio-zoom-ease] [data-studio-scene] { transition: transform 0.45s var(--st-ease); }
/* Desktop: the stage lets the wall layers reach the window edges (overflow visible), so while zoomed (and
   while easing back) the scene's wrapper keeps the print inside the art column, side to side; top and
   bottom stay open (.studio clips there). Not when unzoomed: the room view's floor reaches the edges. */
@media screen and (min-width: 992px) {
  [data-studio-wall]:is([data-studio-zoomed], [data-studio-zoom-ease]) [data-studio-scene-clip] { clip-path: inset(-100vh 0); }
}

/* ============================================================== motion preferences */
@media (prefers-reduced-motion: reduce) {
  [data-studio-root] *, [data-studio-root] *::before, [data-studio-root] *::after { transition-duration: 0.01ms !important; animation: none !important; }
  [data-studio-wall] { transition: none; }
}
