/* The home page's shaded diagonal cuts, and the glass echo in the steps band
   (round 8, October 2026; previewed on branch claude/frost-preview. The steps band held the founder's painting
   until November 15, 2026, when the glass echo took its place.)
   On top of Lamplight (look-lamplight.css). Only index.html loads this file, and its <html> tag carries the switch:
     data-cuts    the steps band and the footer get slanted edges: a lit seam on top, a real shadow below
   The founder's calls: "Diagonal are fine", "the cuts, painting ... good"; no glass, no shapes, no pins, no lamp
   round the cursor. Every text on the page measured 5.2:1 or more on the real pixels (phone and computer; the steps
   on tablets at 768 and 820 since October 20, 2026: 6.3:1 or more).
   Windows high contrast: the slab's shading becomes plain edges. */

/* ============================== diagonal cuts ============================== */
/* The steps band becomes a slab tilted toward the light: its top edge rises to the right (where the light is) and
   catches it, and its bottom edge throws a soft shadow down and to the left onto the section below. The slant
   comes from skewing the band's own surface (::before) and its light layer (.fx), never the words. */
html[data-cuts]{--cut-a:-3.4deg; --cut-rise:calc(100vw * 0.0594);}   /* tan(3.4deg) */
@media (max-width:720px){ html[data-cuts]{--cut-a:-4.5deg; --cut-rise:calc(100vw * 0.0787);} }   /* tan(4.5deg) */
/* the slant reaches above and below the band (overflow-y visible); nothing may poke out sideways (overflow-x clip) */
html[data-cuts] section[aria-labelledby="steps-h"]{background:transparent; box-shadow:none; overflow-x:clip; overflow-y:visible;
  margin-block:calc(var(--cut-rise) * .5); padding-bottom:calc(clamp(64px, 8vw, 112px) + var(--cut-rise) * .25);}
html[data-cuts] section[aria-labelledby="steps-h"]::before{content:""; position:absolute; inset:0; z-index:-3; pointer-events:none; transform:skewY(var(--cut-a));
  background:radial-gradient(60% 100% at 92% 0%, rgba(255,186,116,.08), rgba(255,186,116,0) 70%), linear-gradient(180deg, #24100F 0%, #2C1311 52%, #200D0D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,226,182,.7),             /* the top edge catches the lamp */
    inset 0 4px 0 -2px rgba(255,214,166,.16),        /* a bevel: it rounds over */
    inset 0 3px 14px -6px rgba(255,200,140,.2),
    inset 0 -46px 56px -40px rgba(4,1,2,.78),        /* the slab darkens toward its foot */
    inset 0 -12px 0 #160708,                         /* its front face: the slab's thickness, in shade */
    inset 0 -13px 0 rgba(255,214,166,.22),           /* the face's top corner catches the light */
    inset 0 -24px 22px -14px rgba(4,1,2,.6),         /* and the slab rounds down into it */
    -18px 34px 30px -16px rgba(3,1,1,.95),           /* its shadow on the desk below: dark right under the edge */
    -10px 80px 100px -40px rgba(3,1,1,.8);}           /* and soft further out, cast down and left (light from the top right) */
html[data-cuts] section[aria-labelledby="steps-h"] > .fx{transform:skewY(var(--cut-a));}
/* the lit seam already on the band's top (look-lamplight.css) now runs along the slant with the .fx layer; brighter
   toward the light on the right */
html[data-cuts] section[aria-labelledby="steps-h"] > .fx::after{background:linear-gradient(90deg, rgba(255,214,160,.08), rgba(255,214,160,.32) 40%, rgba(255,224,176,.8) 88%, rgba(255,214,160,.3));}
/* room for the slant above and below, so no words sit on an edge (whichever sections sit next to the band: since
   November 14, 2026 our tutors above it and the prices below it) */
html[data-cuts] main > section:has(+ section[aria-labelledby="steps-h"]){padding-bottom:calc(clamp(64px, 8vw, 112px) + var(--cut-rise) * .5);}
html[data-cuts] section[aria-labelledby="steps-h"] + section,
html[data-cuts] section[aria-labelledby="steps-h"] + #pricing{padding-top:calc(clamp(64px, 8vw, 112px) + var(--cut-rise) * .5);}

/* The footer: the desk's front edge runs at the same slant, the dark under the desk below it */
html[data-cuts] .site-footer{-webkit-clip-path:polygon(0 var(--cut-rise), 100% 0, 100% 100%, 0 100%); clip-path:polygon(0 var(--cut-rise), 100% 0, 100% 100%, 0 100%);
  margin-top:calc(var(--cut-rise) * -1); padding-top:calc(clamp(64px, 8vw, 112px) + var(--cut-rise));}
html[data-cuts] .site-footer > .fx{transform-origin:100% 0; transform:skewY(var(--cut-a)); height:30px;}
html[data-cuts] section[aria-labelledby="ask-h"]{padding-bottom:calc(clamp(64px, 8vw, 120px) + var(--cut-rise));}

/* ============================== the glass echo ============================== */
/* Since November 15, 2026 the steps band holds a still echo of the hero's lamp band in place of the founder's
   painting (his pick from four, "prob glass echo, just make a bit more high quality"): a few hundred hairline strands
   of lamp light with bright rims and two lamp-yellow threads, drawn once by assets/js/steps-glass.js into
   <canvas class="glass-echo">, clipped to the slab. Light only, nothing moves. The slab is the desk brown a shade
   deeper, so the light reads, with a faint glow from the lamp at its top right; the lamp pool on the left (.fx) is
   left out, the lit seam along the top stays. Every word in the band measured 9:1 or more on the real pixels.
   The slab's deeper brown is set on its ::before, above. */
html[data-cuts][data-look-steps="lamplight"] section[aria-labelledby="steps-h"] > .fx{background:none;}
/* the canvas reaches half the slant's rise above and below the band, like the slab; the script clips to the slab */
section[aria-labelledby="steps-h"] > .glass-echo{position:absolute; left:0; top:calc(var(--cut-rise, 0px) * -.5); z-index:-1; display:block;
  width:100%; height:calc(100% + var(--cut-rise, 0px)); pointer-events:none;}

/* ============================== comfort ============================== */
@media (forced-colors: active){
  html[data-cuts] section[aria-labelledby="steps-h"]::before{box-shadow:none; border-block:1px solid CanvasText; background-image:none;}
}
/* no glass echo in high contrast, with more contrast or less transparency asked for (like the hero's lamp band): the
   canvas is hidden, so nothing is drawn */
@media (forced-colors:active), (prefers-contrast:more), (prefers-reduced-transparency:reduce){
  section[aria-labelledby="steps-h"] > .glass-echo{display:none;}
}
