/* Museum Innovation, the shared base. Every page loads this file first.
   1 tokens   2 ground rules   3 type   4 bar and menu   5 buttons, links, forms   6 rooms and objects   7 sign up and footer   8 other screens   9 no motion, print
   Every colour, type size and radius lives in part 1. Page files use the names, never a new value. check.mjs fails a raw colour anywhere else. */

/* 1 TOKENS ------------------------------------------------------------------ */
@font-face{font-family:"Familjen Grotesk";src:url(fonts/FamiljenGrotesk.woff2);font-weight:400 700;font-display:swap}
:root{
 /* colours */
 --maroon:#24070d;--red:#ea3a1f;--steel:#dfe6ea;--blue:#1b36c8;--yellow:#f3c94c;--green:#0d4a3a;
 --peach:#f9b49a;--purple:#4b2352;--navy:#0a2350;--mint:#2cc690;--sky:#8fd3f0;--wood:#5a1607;
 /* type: 700 for headlines, 500 for text. The second value, for phones, is in part 8 */
 --t-giant:10.8vw;   /* lead story */
 --t-wide:10.1vw;    /* a headline that runs the full width */
 --t-page:9.6vw;     /* page title, as in Tracker */
 --t-h1:8.2vw;
 --t-h2:7.1vw;
 --t-row:5.4vw;      /* museum names in a list */
 --t-h3:5.2vw;
 --t-h4:4.5vw;
 --t-name:3.5vw;     /* section names */
 --t-deck:clamp(22px,2.2vw,40px);   /* the paragraph under a headline */
 --t-sign:clamp(20px,1.95vw,36px);
 --t-read:clamp(19px,1.5vw,28px);   /* long reading text. New, not on the approved homepage */
 --t-facts:clamp(18px,1.4vw,28px);
 --t-info:clamp(17px,1.55vw,30px);  /* the line under a museum name in a list */
 --t-menu:18px;
 --t-cover:clamp(34px,2.7vw,60px);  /* headline under the cover */
 --t-tab:clamp(15px,1.12vw,18px);   /* cover names at the bottom of the first screen */
 --t-tab-credit:clamp(14.5px,1.04vw,16.5px);
 --t-credit:clamp(14px,.97vw,18px);
 --tight:-.035em;    /* letter spacing of headlines */
 /* space */
 --edge:10px;        /* drawn letters and bar to the edge of the screen */
 --side:40px;        /* text to the edge of the screen */
 --block:3.4vw;      /* space inside a headline block */
 --room:58vw;        /* height of one section: 58vw to 62vw */
 --bar:56px;
 /* corners: round only where a field bites into something. Everything else is square */
 --bite-s:30px;--bite:5vw;--bite-name:2.6vw;
 /* motion */
 --arrive:1.1s cubic-bezier(.2,.9,.25,1.04);   /* objects that arrive on scroll */
 --open:.6s cubic-bezier(.3,.9,.3,1);          /* a row that opens */
 --slide:.25s;                                 /* bar up and down */
 /* shadows, under cut-out objects only */
 --shadow:drop-shadow(0 26px 18px rgb(0 0 0/.32));--shadow-s:drop-shadow(0 16px 10px rgb(0 0 0/.3));--shadow-cover:brightness(1.05) drop-shadow(0 18px 12px rgb(0 0 0/.42));
 --g:var(--maroon);--l:var(--red)}
/* colour pairs: ground first, then letters. One pair for each section. The number is the contrast */
.maroon-red{--g:var(--maroon);--l:var(--red)}      /*  4.61 the main pair, Queen's face */
.red-maroon{--g:var(--red);--l:var(--maroon)}      /*  4.61 */
.steel-blue{--g:var(--steel);--l:var(--blue)}      /*  6.91 Helmet */
.blue-steel{--g:var(--blue);--l:var(--steel)}      /*  6.91 */
.yellow-green{--g:var(--yellow);--l:var(--green)}  /*  6.45 Saxophone */
.green-yellow{--g:var(--green);--l:var(--yellow)}  /*  6.45 */
.peach-purple{--g:var(--peach);--l:var(--purple)}  /*  7.24 footer */
.purple-peach{--g:var(--purple);--l:var(--peach)}  /*  7.24 Mansfield */
.navy-mint{--g:var(--navy);--l:var(--mint)}        /*  7.00 Museum Signal */
.mint-navy{--g:var(--mint);--l:var(--navy)}        /*  7.00 The number 10 */
.sky-wood{--g:var(--sky);--l:var(--wood)}          /*  8.21 Camera obscura */
.wood-sky{--g:var(--wood);--l:var(--sky)}          /*  8.21 */
.steel-navy{--g:var(--steel);--l:var(--navy)}      /* 12.16 Tracker */
.peach-maroon{--g:var(--peach);--l:var(--maroon)}  /* 10.82 the light in the guide */

/* 2 GROUND RULES ------------------------------------------------------------ */
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;background:var(--maroon);scroll-padding-top:var(--bar)}
body{color:var(--steel);font:500 17px/1.25 "Familjen Grotesk",sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}ul{list-style:none;padding:0}
:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip{position:absolute;left:10px;top:-60px;z-index:30;background:var(--l);color:var(--g);padding:14px 18px;font-weight:700}.skip:focus{top:6px}

/* 3 TYPE -------------------------------------------------------------------- */
h1,h2,h3{font-weight:700;letter-spacing:var(--tight);line-height:.94;text-wrap:balance}
h1 a:hover,h2 a:hover,h3 a:hover{text-decoration:underline;text-decoration-thickness:.07em;text-underline-offset:.1em}
.deck{font-size:var(--t-deck);line-height:1.16;letter-spacing:-.015em;max-width:44ch;text-wrap:pretty}
.read{font-size:var(--t-read);line-height:1.42;max-width:62ch;text-wrap:pretty}
.facts{font-size:var(--t-facts);line-height:1.3}
.credit{text-wrap:pretty;font-size:var(--t-credit);line-height:1.3;font-weight:500;letter-spacing:0}
/* section name: a tab that takes the top left corner. It needs a parent with position:relative. It wears the opposite of the room, unless you give it a pair */
.name{position:absolute;z-index:3;left:0;top:0;font-size:var(--t-name);line-height:1;padding:1.3vw 2.4vw 1.6vw var(--side);border-radius:0 0 var(--bite-name) 0;background:var(--l);color:var(--g)}
.name[class*="-"]{background:var(--g);color:var(--l)}
/* status: <span class="state open">Open</span>. Five words, five classes: announced, trial, open, ended, removed. The mark is never without its word.
   Ring = announced or in trial, filled = open, flat bar = ended, ring with a line through it = removed. All are .76em wide, drawn .17em thick */
.state{white-space:nowrap;font-weight:700}
.state::before{content:"";display:inline-block;width:.76em;height:.76em;border-radius:50%;margin-right:.45em;vertical-align:-.05em}
.state.open::before{background:currentColor}
.state.announced::before,.state.trial::before{box-shadow:inset 0 0 0 .17em}
.state.ended::before{border-radius:0;background:linear-gradient(currentColor,currentColor) center/100% .17em no-repeat}
.state.removed::before{width:1em;height:1em;margin:-.12em .33em -.12em -.12em;vertical-align:-.05em;border-radius:0;background:currentColor;--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='17'%3E%3Ccircle cx='50' cy='50' r='29.5'/%3E%3Cpath stroke-width='13' d='M6 94L94 6'/%3E%3C/svg%3E");-webkit-mask:var(--m) center/100% 100%;mask:var(--m) center/100% 100%}

/* 4 BAR AND MENU ------------------------------------------------------------ */
.top-bar,.bar{display:flex;align-items:center;gap:30px;padding:0 var(--edge);font-size:var(--t-menu);height:var(--bar)}
.sym{width:34px;height:44px;display:flex;align-items:center;flex:none}.sym svg{width:34px;height:auto;display:block;flex:none}
.top-bar nav,.bar nav{display:flex;gap:28px}.top-bar nav a,.bar nav a,.still{padding:11px 0}
.top-bar nav a:hover,.bar nav a:hover,.still:hover,.links a:hover,nav [aria-current]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.still{margin-left:auto;background:none;border:0;cursor:pointer}
.menu{display:none;margin-left:auto;background:none;border:0;font-size:20px;font-weight:700;padding:10px 4px;min-height:44px;cursor:pointer}
/* the bar that returns when you scroll up. site.js gives it the pair of the room under it */
.bar{position:fixed;z-index:25;left:0;right:0;top:0;background:var(--g);color:var(--l);visibility:hidden;transform:translateY(-100%);transition:transform var(--slide),visibility 0s var(--slide)}
.bar.show{visibility:visible;transform:none;transition:transform var(--slide)}
.bar .get{white-space:nowrap;margin-left:auto;background:var(--l);color:var(--g);font-weight:700;font-size:17px;height:44px;display:flex;align-items:center;padding:0 18px}
.bar .get:focus-visible{outline:2px solid var(--g);outline-offset:-6px}.bar .menu{margin:0}
/* phone menu: one full page in the current pair */
dialog:focus-visible{outline:0}
dialog{border:0;padding:0;max-width:none;max-height:none;width:100%;height:100%;background:var(--l);color:var(--g)}
dialog .head{display:flex;justify-content:space-between;align-items:center;height:52px;padding:0 8px}
dialog .head button{background:none;border:0;font-size:20px;font-weight:700;min-height:44px;padding:0 4px;cursor:pointer}
dialog ul{padding:10px 12px}dialog li a{display:block;font-size:min(16vw,9.4svh);font-weight:700;letter-spacing:-.045em;line-height:1.08}
/* the "not built yet" message */
.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,160%);visibility:hidden;background:var(--maroon);color:var(--steel);padding:16px 22px;font-weight:700;z-index:30;transition:transform .35s,visibility 0s .35s;width:max-content;max-width:calc(100vw - 24px)}
.toast.up{transform:translate(-50%,0);visibility:visible;transition:transform .35s}

/* 5 BUTTONS, LINKS, FORMS ---------------------------------------------------- */
/* a filled button, and a large underlined link */
.btn{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border:0;background:var(--l);color:var(--g);font-weight:700;cursor:pointer}
.btn:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}.btn:focus-visible{outline:2px solid var(--g);outline-offset:-6px}
.go{display:inline-block;font-size:clamp(18px,1.9vw,34px);font-weight:700;border-bottom:3px solid;padding:13px 0 4px}
/* a link inside running text */
.text-link{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:.08em}
/* email form: field and button in one frame */
.sign p{text-wrap:balance}
.row{display:flex;border:2px solid;height:46px}
.row input{flex:1;width:100%;min-width:0;border:0;background:none;padding:0 12px;border-radius:0}
input::placeholder{color:inherit;opacity:1}
.row button{border:0;background:var(--g);color:var(--l);padding:0 16px;font-weight:700;cursor:pointer}
.row input:focus-visible{outline-offset:-5px;outline-width:2px}.row button:focus-visible{outline-color:var(--l);outline-offset:-6px;outline-width:2px}
form.done .row{display:none}form .ok{display:none;font-weight:700}form.done .ok{display:block}
form .fine{margin-top:12px;font-size:max(15px,1vw)}form .fine a{text-decoration:underline;text-underline-offset:.18em}
/* a large search field with its label */
.find label{display:block;font-size:clamp(17px,1.4vw,26px);margin-bottom:10px}
.find input{width:100%;height:max(64px,5vw);border:3px solid;border-radius:0;background:none;padding:0 20px;font-size:max(24px,2.1vw);font-weight:700;letter-spacing:-.02em;-webkit-appearance:none}

/* 6 ROOMS AND OBJECTS -------------------------------------------------------- */
/* a room is one full-width section in one pair: <section class="room steel-blue"> */
.room{position:relative;background:var(--g);color:var(--l)}
/* a cut-out object. Give it a width and a place in the page file */
.obj{position:absolute;display:block;height:auto;filter:var(--shadow);pointer-events:none}
/* anything that arrives on scroll: class mv, and --from says where it starts. It moves and never fades */
.mv{transition:transform var(--arrive)}.pre.mv{transform:var(--from)}
/* drawn letters round an object. site.js fills it */
.stage{position:relative;min-height:0}
.stage svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.b{fill:var(--l)}.h{fill:var(--g)}
.stage img{position:absolute;left:0;top:0;will-change:transform;transform-origin:50% 50%;user-select:none;-webkit-user-drag:none;filter:var(--shadow-cover)}

/* tracker rows: <ul class="rows">{{rows}}</ul>. The row you are on opens in its own pair and its object arrives. On phones every row is open */
.rows a{position:relative;height:10vw;padding:0 var(--side);display:flex;flex-direction:column;justify-content:center;gap:.7vw;overflow:clip;transition:height var(--open),background .35s,color .35s}
.rows strong{align-self:flex-start;font-size:var(--t-row);letter-spacing:-.04em;line-height:.92;white-space:nowrap;position:relative;z-index:2;transform-origin:0 100%;transition:transform var(--open)}
.rows .info{display:flex;gap:2vw;font-size:var(--t-info);line-height:1.2;position:relative;z-index:2}
.rows .thing{position:absolute;right:5vw;top:50%;width:25vw;height:auto;transform:translate(70%,-50%) rotate(16deg);opacity:0;transition:transform .2s,opacity .15s;filter:var(--shadow-s)}
.rows svg.thing{filter:none;width:20vw}.rows .wide .thing{width:31vw;right:1.5vw}
.rows .word{filter:none;width:auto;right:3vw;font-size:19.6vw;font-weight:700;letter-spacing:-.05em;line-height:.8;white-space:nowrap}
.rows .on a{height:20vw;background:var(--g);color:var(--l)}.rows .on strong{transform:scale(1.1)}.rows .on .thing{transform:translate(0,-50%);opacity:1;transition:transform .75s cubic-bezier(.2,.9,.25,1.08) .08s,opacity .15s .08s}
.rows a:focus-visible{outline-offset:-8px}
@media(min-width:761px) and (max-width:1180px){.rows .on a:has(.word,svg.thing) .info{flex-wrap:wrap;max-width:50vw;row-gap:0}}

/* 7 SIGN UP AND FOOTER ------------------------------------------------------- */
.sig{padding:5vw var(--side) 5vw}
.sig .word svg{display:block;width:100%;height:auto;overflow:visible}
.sig form{display:grid;grid-template-columns:1fr 1.25fr;gap:40px;align-items:end;margin-top:3.6vw}
.sig form>*{min-width:0}.sig form p{font-size:var(--t-sign);line-height:1.16;letter-spacing:-.015em}
.sig .row{height:76px;border-width:3px}.sig .row input{padding:0 20px;font-size:24px}.sig .row button{font-size:22px;padding:0 26px;background:var(--l);color:var(--g)}
.sig .row button:focus-visible{outline-color:var(--g)}
.end{padding-top:var(--edge)}
.end .stage{height:53vw;max-height:calc(100svh - 172px);min-height:420px}.end .stage img{pointer-events:none}
.links{display:flex;flex-wrap:wrap;gap:0 30px;padding:20px var(--edge) 8px;font-size:var(--t-menu)}.links a{padding:12px 0}
.end .credit{padding:0 var(--edge) 18px}

/* 8 OTHER SCREENS ------------------------------------------------------------ */
/* very wide: the small parts grow too. Everything else is a part of the width already */
@media(min-width:2100px){:root{--bar:68px;--t-menu:23px;--t-tab:22px;--t-tab-credit:20px;--t-credit:21px;--t-facts:33px;--t-info:36px;--t-deck:50px;--t-sign:44px;--t-cover:68px;--side:60px;--bite-s:40px}
 body{font-size:22px}.sym,.sym svg{width:42px}.bar .get{font-size:22px;height:52px;padding:0 24px}.go{font-size:44px}.row{height:60px}
 .sig .row{height:112px}.sig .row input{font-size:34px;padding:0 30px}.sig .row button{font-size:32px;padding:0 38px}}
@media(max-width:1180px){:root{--t-facts:17px}}
@media(max-width:1000px){:root{--t-facts:15.5px;--t-cover:30px}.top-bar,.bar{gap:18px}.top-bar nav,.bar nav{gap:16px}.top-bar{font-size:16px}.bar nav{font-size:16px}.bar .get{font-size:16px;padding:0 14px}.sig form{grid-template-columns:1fr}}
@media(max-width:760px){
 :root{--edge:8px;--side:16px;--bar:52px;--bite-s:22px;--bite:12vw;--bite-name:7vw;
  --t-giant:16.6vw;--t-wide:16.2vw;--t-page:17.6vw;--t-h1:14.6vw;--t-h2:15.6vw;--t-row:9.6vw;--t-h3:13.2vw;--t-h4:12.4vw;--t-name:7.4vw;
  --t-deck:22px;--t-sign:21px;--t-read:19px;--t-facts:18px;--t-info:16px;--t-credit:13.5px;--t-cover:31px;--t-tab-credit:13px}
 .name{padding:12px 20px 14px var(--side)}
 .top-bar{gap:0}.top-bar nav,.bar nav,.still{display:none}.menu{display:block}.bar{gap:4px;font-size:16px}
 .sym{width:44px}
 .go{font-size:21px;padding-top:14px}
 .row{height:48px}.row button{padding:0 13px}.row input{font-size:16px}
 .find label{font-size:18px}.find input{height:62px;font-size:22px;padding:0 14px}
 .rows .state span{display:block}.rows a,.rows .on a{height:max(50vw,194px);justify-content:flex-end;gap:11px;padding:0 var(--side) 16px;background:var(--g);color:var(--l)}
 .rows .on strong{transform:none}.rows strong b{display:block}.rows .info{flex-direction:column;gap:0;line-height:1.25}
 .rows .thing,.rows .on .thing{right:-5vw;top:50%;width:41vw;transform:translate(0,-50%);opacity:1}.rows svg.thing{width:36vw}.rows .wide .thing{width:64vw;right:-33vw}
 .rows .word,.rows .on .word{width:min-content;white-space:normal;right:4vw;font-size:26vw;text-align:right}
 .sig{padding:44px var(--side) 44px}.sig form{gap:20px;margin-top:30px}.sig .row{height:auto;flex-direction:column;border:0;gap:10px}.sig .row input{height:62px;flex:none;border:3px solid;padding:0 14px;font-size:20px}.sig .row button{height:62px;font-size:20px}
 .end .stage{height:138vw;max-height:none}.links{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;font-size:17px}
}
@media(max-width:359px){:root{--t-cover:26px}.rows .thing,.rows .on .thing{right:-10vw}.rows .wide .thing{right:-40vw}.rows .word,.rows .on .word{right:4vw}.bar .get{font-size:15px;padding:0 10px}}
/* email button under the field, so a long address can be read while typing */
@media(max-width:389px){.row{height:auto;flex-direction:column}.row input{flex:none;height:46px}.row button{height:46px;font-size:16px}}
@media(min-width:761px) and (max-aspect-ratio:1/1){.end .stage{height:60vw}}

/* 9 NO MOTION, PRINT --------------------------------------------------------- */
/* "Stop motion" sets .nomotion on <html>. The system setting does the same. Both show the finished page */
.nomotion *,.nomotion{transition:none!important;animation:none!important;scroll-behavior:auto!important}.nomotion .mv{transform:none!important}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}.mv{transform:none!important}}
@media print{.bar{display:none}.mv{transform:none!important}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
