/* Five openings on the standing drawings (js/open-options.js). Nothing here applies without ?open=. */
/* the veil that sends the drawings into the background once they're drawn: dark, a little blurred */
.op-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--a, 0); -webkit-backdrop-filter: blur(var(--b, 0px)); backdrop-filter: blur(var(--b, 0px)); }
.op-left .op-veil { background: linear-gradient(90deg, rgba(20, 19, 18, .88) 0%, rgba(20, 19, 18, .74) 30%, rgba(20, 19, 18, .3) 56%, rgba(20, 19, 18, .06) 78%, rgba(20, 19, 18, 0));
  -webkit-mask-image: linear-gradient(90deg, #000 34%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .1)); mask-image: linear-gradient(90deg, #000 34%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .1)); }
.op-center .op-veil { background: radial-gradient(ellipse 62% 56% at 50% 52%, rgba(20, 19, 18, .8), rgba(20, 19, 18, .58) 58%, rgba(20, 19, 18, .42)); }

/* the headline: light on the veil, the accent a warmer red */
.op .hero h1, .op .hero .sub { color: var(--paper); }
.op .hero h1 em { color: #e8574a; font-style: normal; }
.op .hero .kick { color: rgba(244, 241, 233, .78); }
.op .hero .kick i { background: var(--red); }
.op .hero .btn.ghost { color: var(--paper); border-color: rgba(244, 241, 233, .55); }
.op .hero h1 .w { display: inline-block; will-change: transform, opacity, filter; }
.op .hero h1 .ln > span { will-change: transform, opacity; }
/* room under each line for the descenders (the p of places, the comma): more padding, the same spacing */
.op .hero h1 .ln { padding-bottom: .2em; margin-bottom: -.12em; }

/* left: a wider column than the old opening, the type a little bigger */
.op-left .hero { left: calc(var(--pad) + 1.5vw); width: min(42vw, 680px); }
.op-left .hero h1 { font-size: clamp(46px, 4.9vw, 90px); margin: 22px 0 26px; }
.op-left .hero .sub { max-width: 27em; }

/* centred */
.op-center .hero { left: 50%; width: min(84vw, 1120px); text-align: center; }
.op-center .hero h1 { font-size: clamp(50px, 6vw, 112px); margin: 24px 0 28px; }
.op-center .hero .kick, .op-center .hero .btns, .op-center .hero .hint { justify-content: center; }
.op-center .hero .sub { margin-left: auto; margin-right: auto; max-width: 31em; }
.op-center .hero .hint { margin-top: 36px; }

/* Orbit: a red rule grows from the middle under the headline */
.op-rule { display: block; position: relative; left: 50%; width: 120px; height: 2px; margin: -8px 0 26px; background: var(--red); transform: translateX(-50%) scaleX(0); transform-origin: center; }
/* Dolly: the scan line that writes each line */
.op .hero h1 { position: relative; }
.op-scan { position: absolute; left: 0; top: 0; width: 2px; height: 1em; background: #e8574a; box-shadow: 0 0 14px rgba(232, 87, 74, .7); opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .op .hero, .op-left .hero, .op-center .hero { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: calc(var(--pad) + 58px); text-align: left; }
  .op-center .hero .kick, .op-center .hero .btns, .op-center .hero .hint { justify-content: flex-start; }
  .op-center .hero .sub { margin-left: 0; }
  .op .hero h1, .op-left .hero h1, .op-center .hero h1 { font-size: clamp(36px, 10.5vw, 50px); margin: 16px 0 16px; }
  .op-rule { left: 0; transform-origin: left; }
  .op .op-veil, .op-left .op-veil, .op-center .op-veil { background: linear-gradient(to top, rgba(20, 19, 18, .9) 0%, rgba(20, 19, 18, .7) 38%, rgba(20, 19, 18, .2) 66%, rgba(20, 19, 18, 0) 82%); -webkit-mask-image: none; mask-image: none; }
}

/* ---- ?glass=: contrast for the headline without the heavy dark veil ---------------------------------------------- */
/* Glass: a light veil, the words on a frosted pane */
.gl-glass.op-center .op-veil { background: radial-gradient(ellipse 70% 60% at 50% 52%, rgba(20, 19, 18, .38), rgba(20, 19, 18, .22) 60%, rgba(20, 19, 18, .12)); }
.gl-glass.op-left .op-veil { background: linear-gradient(90deg, rgba(20, 19, 18, .4), rgba(20, 19, 18, .1) 60%, rgba(20, 19, 18, 0)); }
.gl-glass .hero::before { content: ""; position: absolute; z-index: -1; inset: -44px -60px -36px; border-radius: 4px; opacity: var(--ga, 0);
  background: linear-gradient(160deg, rgba(36, 34, 31, .5), rgba(24, 23, 21, .4) 50%, rgba(18, 17, 16, .52));   /* smoked glass: the white words need a dark pane under them */
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px -30px rgba(10, 9, 8, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
/* Paper (the default since round seventeen): a soft pale area only right behind the words, a little blurred inside it, and
   the rest of the drawings and the mat as they are; the headline in ink */
.gl-paper .op-veil { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: radial-gradient(ellipse 31% 37% at 50% 53%, rgba(246, 243, 236, .93), rgba(246, 243, 236, .85) 55%, rgba(246, 243, 236, .26) 80%, rgba(246, 243, 236, 0) 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 32% 32% at 50% 49%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 32% 32% at 50% 49%, #000 58%, transparent 100%); }
/* the paper reaches up under the header here, so the header takes its ink look while the words are up */
@media (min-width: 761px) {
  .gl-paper.gl-lit .top { color: var(--ink); }
  .gl-paper.gl-lit .top::before { opacity: 0; }
  .gl-paper.gl-lit .top::after { opacity: .9; }
}
.gl-paper.op-left .op-veil { background: radial-gradient(ellipse 34% 40% at 26% 50%, rgba(246, 243, 236, .9), rgba(246, 243, 236, .8) 48%, rgba(246, 243, 236, 0) 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 36% 42% at 26% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 36% 42% at 26% 50%, #000 52%, transparent 100%); }
.gl-paper .hero h1, .gl-paper .hero .sub { color: var(--ink); }
.gl-paper .hero h1 em { color: var(--red); }
.gl-paper .hero .kick, .gl-paper .hero .hint { color: rgba(23, 22, 21, .66); }
.gl-paper .hero .btn.ghost { color: var(--ink); border-color: rgba(23, 22, 21, .5); }
/* the words, one mask each, with room for the descenders; "wild places." in one piece for its slow ink */
.op-words .hero h1 .ln { overflow: visible; }
.op-words .hero h1 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.op-words .hero h1 .wm .w { display: inline-block; }
.op-words .hero h1 em { display: inline-block; padding-bottom: .2em; margin-bottom: -.2em; will-change: filter; }
/* Spot: no veil over the whole scene, a soft shadow only behind the words */
.gl-spot .op-veil { background: radial-gradient(ellipse 50% 44% at 50% 47%, rgba(18, 17, 16, .86), rgba(18, 17, 16, .66) 45%, rgba(18, 17, 16, .18) 85%, rgba(18, 17, 16, 0) 100%) !important; }
.gl-spot.op-left .op-veil { background: radial-gradient(ellipse 42% 46% at 24% 50%, rgba(18, 17, 16, .72), rgba(18, 17, 16, 0) 100%) !important; }
.gl-spot .hero h1, .gl-spot .hero .sub { text-shadow: 0 2px 26px rgba(15, 14, 13, .6), 0 0 2px rgba(15, 14, 13, .35); }
@media (max-width: 760px) {
  /* on a phone the words sit on the dark mat under the drawings, so they stay light, over a soft shade at the foot */
  .gl-paper .op-veil { background: linear-gradient(to top, rgba(18, 17, 16, .78), rgba(18, 17, 16, .42) 42%, rgba(18, 17, 16, 0) 64%) !important; -webkit-mask-image: none; mask-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gl-paper .hero h1, .gl-paper .hero .sub { color: var(--paper); }
  .gl-paper .hero h1 em { color: #e8574a; }
  .gl-paper .hero .kick, .gl-paper .hero .hint { color: rgba(244, 241, 233, .78); }
  .gl-paper .hero .btn.ghost { color: var(--paper); border-color: rgba(244, 241, 233, .55); }
  /* the hint sat over the buttons (the hero's transform makes its fixed position relative to the hero): after them now */
  .op .hero .hint { position: static; margin-top: 18px; }
  .op .hero .hint i { display: none; }
  .gl-glass .hero::before { inset: -22px -16px -18px; }
  .gl-spot .op-veil { background: linear-gradient(to top, rgba(18, 17, 16, .78), rgba(18, 17, 16, 0) 62%) !important; }
}
