/* THE HORIZON — how the home page's sections meet (approved by him 2026-11-30, after five trials; he chose the first).
   A low curved brass edge with a reflection that rides along it. Home page only: no other page has a join between its
   sections. The script is js/joins.js. Style guide section 16 has the rulings.

   WHERE ONE SITS (his correction: a join belongs on the real meeting line, never below it):
   - .hzn            the section above ends in loose content over the open sky: the curve stands on the top of the next
                     section's word slide; the sky darkens toward it and lets go below it.
   - .hzn--panel     the section above ends in its OWN DARK PANEL (clay, music, videos): the curve's two ends sit on that
                     panel's bottom corners and its crest rises into the panel, so the curve IS the panel's lower edge.
                     The panel's own colour carries on a short way below (--hz-foot), then lets go.
   - .hzn--edge      the section below already has a curved top (the Inner Circle): only the brass edge and reflection
                     are laid on that curve. The piece hangs from the foot of the section above.

   BUILT SO THE OLD WAVES' FLICKER CANNOT RETURN: nothing is cut out of or re-shaped on a slide; each horizon is one small
   separate piece; only position and opacity change, and the browser's own animation engine does the moving. */
:root{--hz-crest:clamp(30px,3.2vw,44px);--hz-up:clamp(80px,13vw,180px);--hz-dn:clamp(54px,8.6vw,120px);--hz-pad:clamp(36px,5vw,70px);--hz-foot:clamp(30px,4.2vw,58px)}
.view > section:has(+ section > .hzn){padding-bottom:calc(var(--hz-up) + 44px)}
.view > section:has(+ section > .hzn--panel){padding-bottom:var(--hz-foot)}
.hzn{position:absolute;left:0;width:100%;top:calc(-1 * var(--hz-up));height:calc(var(--hz-up) + var(--hz-dn));pointer-events:none;z-index:6;overflow:hidden;contain:layout paint}   /* 6: above a word slide's own scarf (3) and "up next" block (4); it never sits over words */
.hzn > *{position:absolute}
/* the night: the same sky turning darker toward the edge, and letting go below it */
.hzn__up{left:0;top:0;width:100%;height:calc(var(--hz-up) + 1px);background:linear-gradient(180deg,rgb(var(--sky-ink) / 0) 0%,rgb(var(--sky-ink) / .22) 34%,rgb(var(--sky-ink) / .62) 66%,rgb(var(--sky-ink) / .92) 90%,rgb(var(--sky-ink)) 100%)}
.hzn__dn{left:0;top:var(--hz-up);width:100%;height:var(--hz-dn);background:linear-gradient(180deg,rgb(var(--sky-ink)) 0%,rgb(var(--sky-ink) / .86) 18%,rgb(var(--sky-ink) / .5) 48%,rgb(var(--sky-ink) / .16) 78%,rgb(var(--sky-ink) / 0) 100%)}
/* the curve lives in its own small box, --hz-crest tall: its two ends on the meeting line, its crest that far above */
.hzn__arc{left:0;width:100%;top:calc(var(--hz-up) - var(--hz-crest));height:var(--hz-crest);overflow:visible}
/* THE BRASS EDGE. 1.4 px on a computer: thicker than the outline of the big word letters, thinner than the highlight
   video's 2 px border. NO soft band round it: a band made it read thicker than the video's border (measured on the
   glass). It is drawn from the crest outward, both ways at once, the moment the crest first shows. */
.hzn__rim{fill:none;stroke:rgb(var(--accent));stroke-width:3.2;stroke-linecap:round;stroke-dasharray:0 1;stroke-dashoffset:-.5;transition:stroke-dasharray 1.15s cubic-bezier(.2,.7,.2,1),stroke-dashoffset 1.15s cubic-bezier(.2,.7,.2,1)}
.hzn.is-lit .hzn__rim{stroke-dasharray:1 0;stroke-dashoffset:0}
/* a faint glow in the sky just above the crest */
.hzn__dawn{left:14%;width:72%;top:calc(var(--hz-up) - var(--hz-crest) * 3.4);height:calc(var(--hz-crest) * 3);background:radial-gradient(ellipse 50% 90% at 50% 100%,rgb(var(--accent) / .15) 0%,rgb(var(--glow-purple) / .11) 46%,rgb(var(--glow-purple) / 0) 100%);opacity:0;transition:opacity 1s ease-out}
.hzn.is-lit .hzn__dawn{opacity:1}
/* THE REFLECTION: a point that rides the curve. .hzn__gleam marks the curve box's top-left corner; the lit piece inside
   it is carried along by the browser's own animation (js/joins.js) */
.hzn__gleam{left:0;top:calc(var(--hz-up) - var(--hz-crest));width:0;height:0;opacity:0;transition:opacity .7s ease-out .1s}
.hzn.is-lit .hzn__gleam{opacity:1}
.hzn__gleam b{position:absolute;left:0;top:0;width:clamp(120px,17vw,240px);height:clamp(48px,6.4vw,90px);margin:calc(clamp(48px,6.4vw,90px) / -2) 0 0 calc(clamp(120px,17vw,240px) / -2);background:radial-gradient(ellipse 50% 50% at 50% 50%,rgb(255 244 214 / .62) 0%,rgb(var(--accent) / .34) 26%,rgb(var(--accent) / 0) 70%);opacity:0;will-change:transform,opacity}

/* on a panel. --hz-pad is clear room kept above the crest so the reflection is not trimmed (nothing is painted in it) */
.hzn--panel{top:calc(-1 * (var(--hz-foot) + var(--hz-crest) + var(--hz-pad)));height:calc(var(--hz-pad) + var(--hz-crest) + var(--hz-foot) + var(--hz-dn))}
.hzn--panel .hzn__arc,.hzn--panel .hzn__gleam{top:var(--hz-pad)}
.hzn__ink0{left:0;top:calc(var(--hz-pad) + var(--hz-crest) - 1px);width:100%;height:calc(var(--hz-foot) + 1px);background:rgb(var(--sky-ink))}
.hzn--panel .hzn__dn{top:calc(var(--hz-pad) + var(--hz-crest) + var(--hz-foot))}
.hzn--panel .hzn__dawn{top:calc(var(--hz-pad) - var(--hz-crest) * 2.4)}

/* on the Inner Circle's own curved top */
.hzn--edge{top:auto;bottom:calc(-1 * var(--hz-crest));height:calc(var(--hz-pad) + var(--hz-crest))}
.hzn--edge .hzn__arc,.hzn--edge .hzn__gleam{top:var(--hz-pad)}
.hzn--edge .hzn__dawn{top:calc(var(--hz-pad) - var(--hz-crest) * 2.4)}
/* the Inner Circle's curved top, cut to the same low curve as every horizon so the brass edge lies exactly on it (it
   was an ellipse, about a quarter taller). Home page only: the join page's Inner Circle has no curve.
   (2026-12-02) Whichever section comes before it, now that the sections can be put in any order: the one that carries the edge piece. */
.view > section:has(> .hzn--edge) + .ic-ch{clip-path:polygon(0.000% calc(var(--hz-crest) * 1.0000), 4.167% calc(var(--hz-crest) * 0.8531), 8.333% calc(var(--hz-crest) * 0.7189), 12.500% calc(var(--hz-crest) * 0.5975), 16.667% calc(var(--hz-crest) * 0.4889), 20.833% calc(var(--hz-crest) * 0.3931), 25.000% calc(var(--hz-crest) * 0.3100), 29.167% calc(var(--hz-crest) * 0.2397), 33.333% calc(var(--hz-crest) * 0.1822), 37.500% calc(var(--hz-crest) * 0.1375), 41.667% calc(var(--hz-crest) * 0.1056), 45.833% calc(var(--hz-crest) * 0.0864), 50.000% calc(var(--hz-crest) * 0.0800), 54.167% calc(var(--hz-crest) * 0.0864), 58.333% calc(var(--hz-crest) * 0.1056), 62.500% calc(var(--hz-crest) * 0.1375), 66.667% calc(var(--hz-crest) * 0.1822), 70.833% calc(var(--hz-crest) * 0.2397), 75.000% calc(var(--hz-crest) * 0.3100), 79.167% calc(var(--hz-crest) * 0.3931), 83.333% calc(var(--hz-crest) * 0.4889), 87.500% calc(var(--hz-crest) * 0.5975), 91.667% calc(var(--hz-crest) * 0.7189), 95.833% calc(var(--hz-crest) * 0.8531), 100.000% calc(var(--hz-crest) * 1.0000), 100% 100%, 0% 100%)}

/* less motion asked for: each horizon's finished still, the reflection resting a third of the way along */
.hzn.is-still,.hzn.is-still *{transition:none !important;animation:none !important}
.hzn.is-still .hzn__gleam b{opacity:1}
@media (prefers-reduced-motion:reduce){ .hzn *{transition:none !important} }
/* phones: the curve box is lower, so the same stroke would come out thinner than the word outlines */
@media (max-width:700px){ .hzn__rim{stroke-width:3.8} }

/* ROOM FOR THE CREST (his asks, 2026-11-30; computers only, on a phone both are already well clear) */
@media (min-width:900px){
  /* the row of past albums sits a touch higher; the line above the row moves with it, so their spacing is unchanged */
  .mbin{bottom:68px}
  .fly--mbin .fly__after{bottom:calc(68px + var(--binh) + 56px)}
  /* the highlight video and the lines beside it sit a little higher on their slide */
  .vidhl__grid{bottom:62px}
}
