:root{
  /* Layout: warm white drawing paper, with a sheet of kraft paper under Who runs the board. Copy is left aligned in clean type; photo cut-outs sit just in front; crayon (on white) and chalk pastel (on kraft) are drawn by scroll. Single theme by choice. */
  --surface:#f8f4ec; --ink:#2a2521; --muted:#6d645a; --line:rgba(42,37,33,.22);
  --draw:#3b332e;
  --yellow:#eeae00; --coral:#e0522f; --sky:#2b7cc6; --mint:#3a9850;
  --btn:#c9401f; --btn-fg:#fffaf2;
  --display:"Sofia Sans Extra Condensed","Arial Narrow","Helvetica Neue",sans-serif;
  --body:"Sofia Sans","Segoe UI",system-ui,sans-serif;
  --hand:"Edu NSW ACT Foundation","Segoe Print","Bradley Hand",cursive;
  --gut:clamp(20px,4.4vw,64px);
  --day:0; --dim:0;
  color-scheme:light;
}
/* kraft sheets: same layout, chalk pastel instead of crayon */
.kraft{
  --surface:#c79f70; --ink:#2a1c10; --muted:#4e3826; --line:rgba(42,28,16,.3);
  --draw:#fffaf0;
  --yellow:#ffd75a; --coral:#ff8466; --sky:#86cef5; --mint:#97e2ad;
  /* deeper versions of the accents, for words set on kraft */
  --coral-text:#9e3215; --sky-text:#1d5a94; --mint-text:#245f33;
  color:var(--ink);background-color:var(--surface);background-image:var(--tex-kraft,none);background-size:1400px 1100px}
/* the footer is the classroom chalkboard at home time: matte slate green, white chalk and chalk-pastel accents.
   The one dark section, on purpose: it closes the day. A timber rail on top, the chalk ledge at the foot of the page */
.board{
  --surface:#2f463a; --ink:#f2efe4; --muted:rgba(242,239,228,.7); --line:rgba(242,239,228,.3);
  --draw:#f4f1e7;
  --yellow:#ffe07a; --coral:#ff9f86; --sky:#a3d8f5; --mint:#a9e5b9;
  --coral-text:#ff9f86; --sky-text:#a3d8f5; --mint-text:#a9e5b9;
  --wood:linear-gradient(rgba(255,222,176,.32),rgba(255,222,176,0) 28%,rgba(0,0,0,0) 62%,rgba(28,14,4,.5)),
    repeating-linear-gradient(179deg,rgba(58,32,12,0) 0 3px,rgba(58,32,12,.24) 3px 4px,rgba(58,32,12,0) 4px 9px),#7b4e2a;
  color:var(--ink);background-color:var(--surface);background-size:100% 100%,1400px 1100px;
  background-image:radial-gradient(110% 80% at 8% 0%,rgba(236,244,230,.07),transparent 65%),var(--tex-board,none);
  color-scheme:dark}
.board::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;z-index:3;pointer-events:none;background:var(--wood);box-shadow:0 4px 9px rgba(8,18,12,.5)}
.ledge{position:absolute;left:0;right:0;bottom:0;height:22px;z-index:3;pointer-events:none;background:var(--wood);
  box-shadow:0 -1px 0 rgba(255,255,255,.07),0 -14px 18px -10px rgba(226,236,226,.14)}
.ledge i{position:absolute;bottom:19px;height:9px;border-radius:3px 4px 4px 3px;background:linear-gradient(#fffdf6,#efebdf 55%,#c9c4b6);box-shadow:1px 2px 2px rgba(10,6,2,.4)}
.ledge i:first-child{right:calc(var(--gut) + 84px);width:46px;transform:rotate(-1.5deg)}
.ledge i:last-child{right:var(--gut);width:27px;background:linear-gradient(#fff3b8,#ffe07a 55%,#d4b14a);transform:rotate(2deg)}
*{box-sizing:border-box}
html{background:var(--surface)}
body{margin:0;background:var(--surface);color:var(--ink);font:400 1.125rem/1.5 var(--body);-webkit-font-smoothing:antialiased}
main{position:relative;overflow-x:clip;background-color:var(--surface);background-image:var(--tex,none);background-size:1400px 1100px;
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cg transform='rotate(-38 17 17)'%3E%3Crect x='13' y='3' width='8' height='27' rx='2' fill='%23e0522f' stroke='%232a2521' stroke-width='1.5'/%3E%3Cpath d='M13 7 L21 7' stroke='%232a2521' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") 7 29,auto}
a{color:inherit}
a,button,label,input{cursor:pointer}
input[type=text]{cursor:text}
:focus-visible{outline:3px solid var(--sky);outline-offset:4px}
h1,h2,h3{font-family:var(--display);font-weight:300;line-height:.9;letter-spacing:-.005em;margin:0;text-wrap:balance}
h2{font-size:clamp(2.8rem,min(7.4vw,12svh),7.6rem)}
h3{font-size:clamp(2.2rem,3.6vw,3.4rem);font-weight:400;line-height:1}
p{margin:0;max-width:31em;text-wrap:pretty}
.lede{font-size:1.08rem;color:var(--ink)}
.wrap{position:relative;z-index:1;max-width:1220px;margin:0 auto;padding:0 var(--gut)}
/* every section after the hero fills one screen: at least 100svh with its content centred. Each section sizes its
   drawings, type and gaps from the screen height (svh) so the content fits; on a very small phone a section may grow
   a little rather than cut anything off. Rooms and agenda have their own fixed-height versions of this. */
.screen{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:100vh;min-height:100svh;padding:max(24px,5svh) 0}
.screen>.wrap{width:100%}
.intro{display:grid;gap:max(10px,1.8svh);max-width:44rem}
@media (min-width:821px){.lede{font-size:1.25rem}}
.hand{font-family:var(--hand);font-weight:500}
.grainy{-webkit-mask-image:var(--grain,none);mask-image:var(--grain,none);-webkit-mask-size:220px 220px;mask-size:220px 220px}

/* window light from the top left, warm by day and a little bluer by home time */
.light{position:fixed;inset:0;z-index:5;pointer-events:none;background:
  radial-gradient(125% 100% at 6% -14%,rgba(255,236,200,calc(.38*(1 - var(--day)))) 0,transparent 62%),
  radial-gradient(125% 100% at 6% -14%,rgba(170,190,255,calc(.12*var(--day))) 0,transparent 60%),
  radial-gradient(150% 125% at 38% 38%,transparent 62%,rgba(90,68,40,.16) 100%),
  linear-gradient(rgba(40,32,24,calc(.18*var(--dim))),rgba(40,32,24,calc(.18*var(--dim))))}
#dust{position:fixed;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}

/* drawings: crayon on white, chalk pastel on kraft (same strokes, different colour) */
.chalk{filter:url(#ck0)}
html[data-b="1"] .chalk.live{filter:url(#ck1)}
html[data-b="2"] .chalk.live{filter:url(#ck2)}
.chalk .d,.chalk .s{fill:none;stroke:var(--c,var(--draw));stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.chalk text,.chalk text.d{font-family:var(--hand);font-weight:500;fill:var(--c,var(--draw));stroke:none}
.comp{position:relative;width:min(100%,calc(var(--mh,300vh)*var(--arn,1)));aspect-ratio:var(--arn,1)}
.comp>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cuts{filter:drop-shadow(3px 7px 6px rgba(60,45,30,.22))}
.cuts.photo{filter:drop-shadow(10px 16px 16px rgba(60,45,30,.3))}
.cuts.fade{-webkit-mask-image:linear-gradient(#000 80%,transparent 99%);mask-image:linear-gradient(#000 80%,transparent 99%)}
.tag{position:absolute;transform:translate(-50%,-30%) rotate(-3deg);z-index:2;border:0;border-radius:2px;padding:.2em .6em;background:#e9dcc0;color:#33291c;font:600 .72rem/1.3 var(--body);box-shadow:1px 2px 3px rgba(60,45,30,.4);white-space:nowrap}
.tag:hover{background:#ffd75a}

/* torn paper: a white sheet lying over the kraft, drawn once on canvas (see texture() in site.js) */
.tear-top::before,.tear-bottom::after{content:"";position:absolute;left:0;right:0;height:48px;z-index:3;pointer-events:none;background-repeat:repeat-x;background-size:1400px 48px}
.tear-top::before{top:0;background-image:var(--tear-top,none)}
.tear-bottom::after{bottom:0;background-image:var(--tear-bottom,none)}

/* buttons: one tomato call to action on both papers */
.btn{display:inline-block;font:600 1.05rem/1 var(--body);padding:.85em 1.3em;text-decoration:none;border:2px solid var(--ink);color:var(--ink);background:none;border-radius:255px 14px 225px 14px/14px 225px 14px 255px;transition:transform .15s}
.btn:hover{transform:rotate(-1.2deg)}
.btn.solid{background:var(--btn);border-color:var(--btn);color:var(--btn-fg)}

/* scene 1: hero */
.pin .sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.hero{height:210vh}
.nav{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px var(--gut)}
.brand{font:600 1.7rem/1 var(--display);letter-spacing:.01em;text-decoration:none}
.nav nav{display:flex;align-items:center;gap:clamp(14px,2.4vw,34px)}
.nav nav a:not(.btn){text-decoration:none;font-size:1rem}
.nav nav a:not(.btn):hover{text-decoration:underline wavy var(--coral);text-underline-offset:6px}
.nav .btn{font-size:.95rem;padding:.7em 1.1em}
.hero{height:200vh}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* the hero is a locked poster: one fixed composition per screen shape, scaled as a whole */
.hstage{position:absolute;left:0;top:0;transform-origin:0 0;display:none}
.hero[data-mode="d"] #hsD,.hero[data-mode="m"] #hsM{display:block}
.hero[data-mode="m"] .hm-copy{display:grid}
.hstage>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.htxt span{position:absolute;white-space:nowrap;font-family:var(--display);color:var(--ink);line-height:1}
.htxt .t1,.htxt .t3{font-weight:300}
.htxt .t2{font-weight:200;letter-spacing:-.012em}
.bl{display:inline-block;width:0;height:0}
.hlede{position:absolute;font-size:19px;line-height:1.5;max-width:none}
.hcta{position:absolute;display:flex;gap:14px}
.hm-copy{display:none;position:absolute;left:var(--gut);right:var(--gut);bottom:max(26px,env(safe-area-inset-bottom));z-index:4;gap:14px}
.hm-copy p{font-size:1rem}
.hm-copy .row{display:flex;flex-wrap:wrap;gap:10px}
.hm-copy .btn{font-size:.95rem;padding:.8em .95em}
.hstage .lift{transform:translateY(calc(var(--lift,0)*var(--lp,70)*-1px))}
/* crayon drawn over the photo needs no halo; chalk pastel on kraft gets a soft dark one, repeated for each boil seed
   (the html[data-b] boil rules are more specific and would otherwise drop it two frames out of three, so it flickered) */
.chalk.front{filter:url(#ck0)}
html[data-b="1"] .chalk.front.live{filter:url(#ck1)}
html[data-b="2"] .chalk.front.live{filter:url(#ck2)}
.kraft .chalk.front{filter:url(#ck0) drop-shadow(0 0 1.4px rgba(50,32,16,.55))}
html[data-b="1"] .kraft .chalk.front.live{filter:url(#ck1) drop-shadow(0 0 1.4px rgba(50,32,16,.55))}
html[data-b="2"] .kraft .chalk.front.live{filter:url(#ck2) drop-shadow(0 0 1.4px rgba(50,32,16,.55))}

/* scene 2: Learning, "One line of thought, followed all the way." One pinned screen on its own sheet of exercise-book paper,
   drawn by site/js/learning.js on one canvas (the story, the camera and the timings are described at the top of that file).
   Everything is named learn- so nothing clashes with Rooms (which has its own .stage). The section's edges are canvas strips
   (--edge-top: a torn-out spiral edge; --edge-bottom: a cut edge) whose edge line sits exactly on the section's boundary:
   they reach only 10px (top) and 8px (bottom) into the hero and Rooms, so they cover neither the drawing nor their text. The closing lede and the stamp are HTML inside the poster, placed in poster units by learning.js. */
.learn{position:relative;height:calc(100svh + 360svh);--surf:#fbfaf7}
.learn::before,.learn::after{content:"";position:absolute;left:0;right:0;height:60px;z-index:4;pointer-events:none;background-repeat:repeat-x;background-size:1400px 60px}
.learn::before{top:-10px;background-image:var(--edge-top,none)}
.learn::after{bottom:-8px;background-image:var(--edge-bottom,none)}
.learn-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:var(--surf)}
.learn-ink{position:absolute;inset:0;width:100%;height:100%;display:block}
.learn-poster{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}
.learn-moral{position:absolute;display:grid;gap:.45em;opacity:0}
.learn-moral .kick{color:var(--muted)}
.learn-moral .ml{max-width:none;color:var(--ink);line-height:1.38}
.learn-stamp{position:absolute;padding:.24em .45em .2em;border:.085em solid currentColor;outline:.035em solid currentColor;outline-offset:.09em;border-radius:.16em;opacity:0;
  color:#c23a1d;font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.05em;line-height:.9;text-align:center;white-space:nowrap;
  -webkit-mask-image:var(--grain,none);mask-image:var(--grain,none);-webkit-mask-size:150px 150px;mask-size:150px 150px}
/* captions: bottom left on desktop, along the bottom on phones, with a soft glow of the page behind them */
.learn-subs{position:absolute;left:var(--gut);right:var(--gut);bottom:max(20px,4svh);display:grid;isolation:isolate}
.learn-subs::before{content:"";position:absolute;inset:-60px -90px -50px -120px;z-index:-1;pointer-events:none;opacity:var(--scrim,0);
  background:radial-gradient(closest-side,rgba(251,250,247,.9) 55%,rgba(251,250,247,0))}
.learn-sub{grid-area:1/1;display:grid;gap:8px;align-content:end;opacity:0}
.learn-sub h3{font-size:2.3rem;font-weight:400;line-height:1}
.learn-sub p{font-size:.98rem;max-width:22em}
@media (min-width:821px){
  .learn-subs{right:auto;bottom:max(28px,8svh);max-width:27rem}
  .learn-sub{gap:12px}
  .learn-sub h3{font-size:clamp(2.4rem,4.4vw,4rem)}
  .learn-sub p{font-size:1.06rem;max-width:25em}
}
/* reduced motion: no pin; the finished page, then the three captions under it */
@media (prefers-reduced-motion:reduce){
  .learn{height:auto;background:linear-gradient(rgba(72,128,196,.24) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(72,128,196,.24) 1px,transparent 1px) 0 0/22px 22px,var(--surf)}
  .learn-stage{position:relative}
  .learn>.learn-subs{position:static;gap:28px;max-width:1220px;margin:0 auto;padding:6svh var(--gut) 8svh;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
  .learn>.learn-subs .learn-sub{grid-area:auto;opacity:1;align-content:start}
}

/* scene 3: rooms. One screen tall at every size (100svh, so it still fits while Safari's bars are showing).
   Written mobile first. Phone and tablet (the base rules): the growth chart (the three phrases on one baseline, each
   bigger than the last, with a crayon height mark and the ages over each, like a door frame), then the rooms as cards
   you swipe sideways; swiping lights up that room's phrase. Tapping a card grows it to fill the section (.full);
   the x or Escape closes it.
   Desktop (821px+): three giant words, one over each panel, the small words tucked against each word's first tall
   letter (the hero's "We take" rule), then three tall panels that fill the rest of the screen; hover opens one.
   Both headlines are built by roomsType() in site.js from measured glyphs; the h2 shows until then.
   Panel colours are taken from the renders' flat backdrops (site/img/rooms/rooms.json), so the images
   sit on the panels with no visible edge. Crayon: ROOMS in site.js. */
.rooms{--roww:min(1360px,calc(100vw - 2 * var(--gut)));--gap:12px;--pad:22px;position:relative;display:flex;flex-direction:column;height:100vh;height:100svh;min-height:540px;padding:max(20px,3svh) 0 max(14px,2svh)}
.rooms-head{flex:none;width:var(--roww);margin:0 auto max(12px,1.8svh)}
.rooms-top{display:grid;gap:4px;margin-bottom:max(8px,1.4svh)}
.rooms-top .hint{display:none;color:var(--muted)}
.rooms-head h2{font-size:clamp(2.6rem,5.4vw,5.4rem);max-width:15ch}
.rooms-head em{font-style:normal;font-weight:500}
.rooms-head em.r{color:#b93424} .rooms-head em.b{color:#2061b0} .rooms-head em.y{color:#a46d00}
.rooms-head.typeset h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rooms-type svg{display:block;max-width:100%;height:auto;overflow:visible}
.rooms-type text{font-family:var(--display);white-space:pre}
.rooms-type .chalk text{font-family:var(--hand);font-weight:500}
.rooms-type .w{transition:fill .45s}
.rooms-type .wr{transition:opacity .45s}
.rooms[data-on="1"] .w:not(.w1),.rooms[data-on="2"] .w:not(.w2),.rooms[data-on="3"] .w:not(.w3){fill:#cdc5b8}
.rooms[data-on="1"] .wr:not(.w1),.rooms[data-on="2"] .wr:not(.w2),.rooms[data-on="3"] .wr:not(.w3){opacity:.3}
.rooms-row{flex:1 1 0;min-height:0;display:flex;gap:var(--gap);padding:0 0 0 var(--gut);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);scrollbar-width:none}
.rooms-row::-webkit-scrollbar{display:none}
.rooms-row::after{content:"";flex:0 0 calc(var(--gut) - var(--gap))}
.room.red{--sheet:#b93424;--ink:#fffaf2;--muted:rgba(255,250,242,.86);--draw:#fffaf2;--rc:#ffd75a;--yellow:#ffd75a;--coral:#ffb199;--sky:#bfe3ff;--cta:#fffaf2;--cta-fg:#8f2c12}
.room.blue{--sheet:#2061b0;--ink:#fffaf2;--muted:rgba(255,250,242,.86);--draw:#fffaf2;--rc:#ffd75a;--yellow:#ffd75a;--coral:#ff9c80;--sky:#9fd8ff;--cta:#fffaf2;--cta-fg:#174a8a}
.room.yellow{--sheet:#f6aa18;--ink:#2a1c10;--muted:#4e3826;--draw:#3b332e;--rc:#8f2c12;--yellow:#c4432b;--coral:#c4432b;--sky:#1f5f9e;--cta:#2a1c10;--cta-fg:#fffaf2}
.room,.room-ph{flex:0 0 min(82%,560px);scroll-snap-align:start}
.room{position:relative;isolation:isolate;border-radius:18px;overflow:hidden;background:var(--sheet);color:var(--ink)}
.room.full{position:absolute;z-index:2;inset:max(10px,1.2svh) 10px}
.room{transition:opacity .35s}
.rooms.sheeted .room:not(.full){opacity:0}
.room::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;background-image:var(--tex,none);background-size:1400px 1100px;mix-blend-mode:multiply;opacity:.55}
.room .face{position:absolute;top:0;left:0;z-index:1;width:100%;max-width:none;height:100%;object-fit:cover;object-position:50% 42%;transition:opacity .5s,transform 1s cubic-bezier(.22,1,.36,1)}
.room.on .face{opacity:0}
.room .tab{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:4px;padding:var(--pad);background:none;border:0;border-radius:18px;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.tab-name{font-family:var(--display);font-weight:300;font-size:clamp(2.4rem,3.6vw,3.6rem);line-height:.9}
.tab-age{font-size:clamp(1.05rem,1.3vw,1.25rem);white-space:nowrap}
.tab-name,.tab-age{transition:opacity .3s}
.room .tab::before{content:"";position:absolute;left:0;right:0;bottom:0;z-index:-1;height:44%;border-radius:0 0 18px 18px;background:linear-gradient(to bottom,transparent,var(--sheet) 80%);transition:opacity .3s}
.room.on .tab::before{opacity:0}
.room .plus{position:absolute;top:18px;right:18px;width:44px;height:44px;border:2px solid currentColor;border-radius:50%;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.room .plus::before,.room .plus::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;margin:-1px 0 0 -8px;background:currentColor}
.room .plus::after{transform:rotate(90deg)}
.room .tab:focus-visible{outline:3px solid var(--ink);outline-offset:-6px}
.room.on .tab{inset:auto;top:18px;right:18px;width:44px;height:44px;padding:0;border-radius:50%}
.room.on .tab-name,.room.on .tab-age{opacity:0;position:absolute;pointer-events:none}
.room.on .plus{top:0;right:0;transform:rotate(45deg)}
.room.on:not(.pinned) .tab{opacity:0;pointer-events:none}
.room-body{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:72px var(--pad) 28px;overflow-y:auto;overscroll-behavior:contain;opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
.room.on .room-body{opacity:1;visibility:visible;transition:opacity .5s .2s}
.room .copy{display:grid;gap:12px}
.room .copy>*{opacity:0;transform:translateY(10px);transition:opacity .4s,transform .6s cubic-bezier(.22,1,.36,1)}
.room.on .copy>*{opacity:1;transform:none}
.room.on .copy>:nth-child(1){transition-delay:.3s} .room.on .copy>:nth-child(2){transition-delay:.36s} .room.on .copy>:nth-child(3){transition-delay:.42s}
.room.on .copy>:nth-child(4){transition-delay:.48s} .room.on .copy>:nth-child(5){transition-delay:.54s} .room.on .copy>:nth-child(6){transition-delay:.6s}
.room h3{font-size:clamp(3rem,5vw,5.4rem);font-weight:300;line-height:.86}
.room .line{font-family:var(--display);font-size:clamp(1.5rem,2.1vw,2.1rem);font-weight:500;line-height:1.04}
.room .age{font-size:clamp(1.2rem,1.6vw,1.5rem);font-weight:700;color:var(--rc)}
.room .copy>p:not(.age):not(.line){font-size:1rem;max-width:34ch}
.facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 26px;font-size:clamp(1.15rem,1.5vw,1.4rem)}
.room .btn.solid{justify-self:start;background:var(--cta);border-color:var(--cta);color:var(--cta-fg);margin-top:4px}
.room .btn.solid:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.stage{position:relative;flex:none;order:-1;align-self:center;width:min(100%,calc(52svh * var(--ar,.56)));aspect-ratio:var(--ar,.56)}
.stage img{position:absolute;inset:0;width:100%;height:100%;max-width:none;-webkit-mask:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(transparent,#000 3%);-webkit-mask-composite:source-in;mask:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(transparent,#000 3%);mask-composite:intersect}
.stage svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.stage .chalk .d{stroke-width:11}
.stage .chalk text{font-size:46px}
.rooms-foot{flex:none;width:var(--roww);margin:max(10px,1.6svh) auto 0;display:flex;align-items:center;justify-content:space-between;gap:18px}
.dots{display:flex;gap:9px;flex:none}
.dots i{width:8px;height:8px;border-radius:50%;background:var(--line);transition:background-color .3s,transform .3s}
.dots i.on{background:var(--ink);transform:scale(1.25)}
.ratio-note{max-width:30ch;font-size:.8rem;line-height:1.3;text-align:right;color:var(--muted)}

@media (min-width:821px){
  .rooms{--pad:clamp(22px,3vw,44px);min-height:600px;padding:clamp(22px,4.6svh,60px) 0 clamp(14px,2.6svh,32px)}
  .rooms-top{display:flex;justify-content:space-between;align-items:baseline;gap:24px}
  .rooms-top .hint{display:block}
  .rooms-row{width:var(--roww);margin:0 auto;padding:0;overflow:visible;scroll-snap-type:none}
  .rooms-row::after{content:none}
  .room{flex:1 1 0;min-width:0;transition:flex-grow .8s cubic-bezier(.22,1,.36,1)}
  .room.on{flex-grow:3.556}
  .room .face{left:50%;width:calc((var(--roww) - 2 * var(--gap)) / 3);transform:translateX(-50%)}
  .room.on .face{transform:translateX(-50%) scale(1.08)}
  .tab-name{display:none} /* the giant words above now name each panel; the ages stay */
  .room-body{right:auto;width:calc((var(--roww) - 2 * var(--gap)) * .64);flex-direction:row;align-items:flex-end;gap:clamp(16px,2vw,32px);padding:var(--pad) 0 0 var(--pad);overflow:visible}
  .room .copy{flex:1;min-width:0;align-self:center;padding:0 8px var(--pad) 0}
  .stage{order:0;align-self:auto;width:min(54%,calc((var(--rowh,600px) - var(--pad)) * var(--ar,.56)))}
  .rooms-foot{justify-content:flex-start}
  .dots{display:none}
  .ratio-note{max-width:none;font-size:.95rem;text-align:left}
}

/* scene 4: agenda. The screen holds still (.agenda-pin, sticky) while scrolling plays one day, 6am to 6pm (setDay()
   in site.js): the sun crosses the arc (6am at the left end, noon at the top) and turns into the moon, which ends the
   day at the right end; each item lights up when the sun reaches its time, with a yellow crayon highlight on the one
   happening now; and the paper takes that hour's light (.agenda-sky). --run is how much scroll the day takes.
   The pinned screen is one screen tall, written mobile first: the arc on top, sized by the screen height, then the
   heading and the list (one column on phones, two from 821px). Type and gaps shrink with the screen height. */
.agenda{--run:150svh;position:relative;height:calc(max(100svh,540px) + var(--run))}
.agenda-pin{position:sticky;top:0;display:flex;flex-direction:column;justify-content:center;height:100vh;height:100svh;min-height:540px;padding:max(18px,3svh) 0 max(16px,2.6svh)}
.agenda-pin>.wrap{width:100%}
/* the hour's light: a pale wash (--wash) multiplied into the paper grain, paler around the sun (--glow at --sx/--sy).
   The edges feather (--fa/--fb) only while the screen arrives or leaves, so it meets the white paper with no band */
.agenda-sky{position:absolute;inset:0;pointer-events:none;background-color:rgb(var(--wash,255,255,255));
  background-image:var(--tex,none),radial-gradient(circle var(--gr,60vw) at var(--sx,50%) var(--sy,20%),rgb(var(--glow,255,255,255)),rgba(var(--glow,255,255,255),0));
  background-size:1400px 1100px,100% 100%;background-blend-mode:multiply,normal;
  -webkit-mask-image:linear-gradient(transparent,#000 var(--fa,0px),#000 calc(100% - var(--fb,0px)),transparent);
  mask-image:linear-gradient(transparent,#000 var(--fa,0px),#000 calc(100% - var(--fb,0px)),transparent)}
.sky{--mh:clamp(60px,13svh,150px);margin:0 auto max(10px,1.8svh)}
.agenda-grid{display:grid;gap:max(14px,2.2svh);align-items:start}
.agenda-grid>div{display:grid;gap:max(8px,1.4svh)}
.agenda-list{list-style:none;margin:0;padding:max(12px,1.8svh) 18px;font-size:clamp(1rem,2.9svh,1.3rem);line-height:1.25;display:grid;gap:max(4px,1.1svh);border:3px solid var(--draw);border-radius:12px 255px 14px 225px/225px 14px 255px 12px}
@media (min-width:821px){
  .agenda{height:calc(max(100svh,600px) + var(--run))}
  .agenda-pin{min-height:600px;padding:clamp(24px,5svh,64px) 0 clamp(20px,4svh,48px)}
  .sky{--mh:min(34svh,330px);margin-bottom:max(8px,1.4svh)}
  .agenda-grid{grid-template-columns:1fr 1.15fr;gap:clamp(24px,6vw,96px)}
  .agenda-grid>div{gap:20px}
  .agenda-list{padding:max(16px,2.4svh) 26px;font-size:clamp(1.15rem,min(2.1vw,3.3svh),1.75rem);gap:clamp(6px,1.3svh,12px)}
}
.agenda-list li{position:relative;padding-left:calc(3.4em + 10px);transition:opacity .35s}
.agenda-list time{position:absolute;left:0;top:0;color:var(--muted)}
.agenda-list li.on time{color:var(--coral)}
/* while the day plays, items still to come are faint; the one happening now gets a yellow crayon highlight that
   wipes on left to right. The text is inline so a wrapped item is highlighted line by line, like a real highlighter */
.agenda[data-live] .agenda-list li:not(.on){opacity:.36}
.agenda-list span{--hl:color-mix(in srgb,var(--yellow) 50%,transparent);padding:0 .32em;margin:0 -.32em;border-radius:.5em .2em .45em .25em/.3em .5em .25em .45em;
  background:linear-gradient(var(--hl),var(--hl)) no-repeat 0 78%/0% 76%;-webkit-box-decoration-break:clone;box-decoration-break:clone;
  transition:background-size .45s cubic-bezier(.25,.8,.3,1)}
.agenda-list li.now span{background-size:100% 76%}
.small{font-size:.95rem;color:var(--muted)}

/* scene 5: lunch. One screen; .two is the drawing-beside-text layout (also used by Save a seat).
   Written mobile first. Phones and tablets, "your seat at the table": the words on top, then the table, which sits on the
   bottom of the screen and runs edge to edge, so the child's arms come up from the phone's bottom edge (ART.lunchM, its own
   composition). Rows: [space] [words] [space] [table]. The table row grows first, up to the table's full-width height
   (100vw at the lunchM view's 470:505), and shrinks on shorter screens (never below 240px: below a 600px screen the section
   grows a little rather than shrink the table to a stamp; min-height:min-content can't do this, as Chrome counts the table
   at full size there). Any height left over is split above and below the words, so they stay with the table.
   From 821px: the drawing beside the words. */
.two{display:grid;align-items:center;gap:max(14px,2.4svh) clamp(24px,6vw,96px)}
.two>div:last-child{display:grid;gap:max(10px,2svh)}
.lunch{padding:0}
.lunch .wrap{height:100vh;height:100svh;min-height:600px;row-gap:0;padding-top:max(20px,4svh);
  grid-template-rows:1fr auto 1fr minmax(240px,calc(100vw * 505 / 470))}
.lunch .wrap>div:last-child{grid-row:2;margin-bottom:max(14px,2.4svh)}
.lunch-d{display:none}
.lunch .lunch-m{grid-row:4;align-self:stretch;width:auto;aspect-ratio:auto;margin:0 calc(-1 * var(--gut))}
.lunch-m .cuts.fade{-webkit-mask-image:linear-gradient(#000 86%,transparent);mask-image:linear-gradient(#000 86%,transparent)}
.lunch .lede,.ticks span{text-wrap:balance}
/* the hands rest on the table, so a short, close shadow (the default photo shadow is for a child standing off the paper) */
.lunch .cuts.photo{filter:drop-shadow(3px 6px 7px rgba(60,45,30,.24))}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:max(6px,1.2svh);font-size:clamp(1.05rem,2.6svh,1.3rem);line-height:1.25}
/* ticks a little smaller on phones, so they weigh the same as the crayon on the plate */
.ticks li{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start}
.ticks svg{width:26px;height:26px;overflow:visible;--c:var(--mint)}
@media (min-width:821px){
  .two{grid-template-columns:1.1fr 1fr}
  .lunch{padding:max(24px,5svh) 0}
  .lunch .wrap{height:auto;min-height:0;grid-template-rows:none;row-gap:max(14px,2.4svh);padding-top:0}
  .lunch .wrap>div:last-child{grid-row:auto;margin-bottom:0}
  .lunch-d{display:block}
  .lunch-m{display:none}
  .lunch .comp{--mh:62svh}
  .ticks{font-size:clamp(1.2rem,min(1.9vw,3svh),1.6rem)}
  .ticks li{grid-template-columns:34px 1fr;gap:12px}
  .ticks svg{width:34px;height:34px}
}
.hop{opacity:0}
.seen .hop{opacity:1;animation:hop 1.5s step-end both;animation-delay:var(--dl,0s)}
@keyframes hop{0%{transform:translate(var(--fx),var(--fy))}14%{transform:translate(calc(var(--fx)*.84),calc(var(--fy) - 34px))}28%{transform:translate(calc(var(--fx)*.66),var(--fy))}42%{transform:translate(calc(var(--fx)*.5),calc(var(--fy)*.6 - 32px))}56%{transform:translate(calc(var(--fx)*.33),calc(var(--fy)*.5))}70%{transform:translate(calc(var(--fx)*.16),-30px)}84%{transform:translate(0,-8px)}100%{transform:none}}

/* scene 6: who runs the board. The kraft sheet, torn white paper above and below; one screen. Written mobile first.
   Phones and tablets: the intro, then the chart drawn for a tall screen (ART.orgM in site.js), so nothing is cut off and
   nothing scrolls sideways. It fills the height the words leave: .org-art is a size container in the 1fr row (at least
   220px; on a very short phone the section grows a little instead), as in Save a seat.
   From 821px: the wide chart (ART.org). */
.who{padding:0}
.who .wrap{display:grid;grid-template-rows:auto minmax(220px,1fr);min-height:100vh;min-height:100svh;padding-top:max(56px,7svh);padding-bottom:max(56px,7svh)}
.who .intro{margin-bottom:max(12px,2.4svh)}
.org-art{container-type:size;display:flex;align-items:center;justify-content:center;min-height:0}
.org-d{display:none}
.org-m{--mh:100cqh}
/* the founders' photos sit in their chalk frames on the paper, so a short, close shadow */
.who .cuts.photo{filter:drop-shadow(2px 4px 5px rgba(50,32,16,.3))}
@media (min-width:821px){
  .who{padding:max(56px,7svh) 0}
  .who .wrap{display:block;min-height:0;padding-top:0;padding-bottom:0}
  .who .intro{margin-bottom:max(16px,4svh)}
  .org-art{container-type:normal;display:block}
  .org-d{display:block;--mh:min(56svh,520px);margin:0 auto}
  .org-m{display:none}
}

/* scene 6b: visit head office. White paper. The drone photo is a print taped on the paper (ART.visit), and crayon maps the
   way in. One screen, written mobile first like Save a seat: phones and tablets read heading, lede, the print, then the
   address and buttons. The text column's div is display:contents so `order` can slot the print in; .visit-art is a size
   container in the 1fr row (at least 300px, so the route can still be followed; on a very short phone the section grows a little instead), running to the
   screen's edges, and the print is sized from it. From 821px: the words on the left, the print on the right.
   The crayon on the print gets a faint paper-coloured halo so it reads on the photo; it has to be repeated for each
   boil seed, because the boil rules (html[data-b] .chalk.front.live) would otherwise drop it two frames out of three */
.visit{padding:0}
.visit .wrap{display:grid;align-items:center;min-height:100vh;min-height:100svh;padding-top:max(64px,8svh);padding-bottom:max(20px,3.5svh);grid-template-rows:auto auto minmax(300px,1fr) auto;row-gap:max(10px,1.8svh)}
.visit .wrap>div:first-child{display:contents}
.visit h2{order:1}
.visit .lede{order:2}
.visit-art{order:3;align-self:stretch;container-type:size;display:flex;align-items:center;justify-content:center;min-height:0;margin:0 calc(-1 * var(--gut))}
.visit .go{order:4}
.visit .comp{--mh:100cqh}
.visit .cuts.photo{filter:drop-shadow(2px 5px 6px rgba(60,45,30,.28))}
.visit .chalk.front{filter:url(#ck0) drop-shadow(0 0 1.3px rgba(255,250,240,.9))}
html[data-b="1"] .visit .chalk.front.live{filter:url(#ck1) drop-shadow(0 0 1.3px rgba(255,250,240,.9))}
html[data-b="2"] .visit .chalk.front.live{filter:url(#ck2) drop-shadow(0 0 1.3px rgba(255,250,240,.9))}
.go{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px}
.go .addr{flex-basis:100%;max-width:none;color:var(--muted);font-size:1rem}
.go .dir{font-weight:600;text-decoration-color:var(--coral);text-decoration-thickness:2px;text-underline-offset:5px}
@media (min-width:821px){
  .visit{padding:max(56px,7svh) 0}
  .visit .wrap{min-height:0;padding-top:0;padding-bottom:0;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:none;column-gap:clamp(24px,4vw,64px)}
  .visit .wrap>div:first-child{display:grid;gap:max(12px,2.4svh)}
  .visit h2,.visit .lede,.visit .go{order:0}
  .visit-art{order:0;container-type:normal;display:block;margin:0}
  .visit .comp{--mh:min(80svh,720px);margin:0 auto}
  .go{margin-top:max(4px,1svh)}
}

/* scene 7: save a seat. White paper, the clearest surface for the form; ends on the chalkboard's timber rail; one screen,
   with room at the top for the torn edge above it. Written mobile first.
   Phones and tablets: the heading and lede, then the chair, then the form, so the chair sits just above "Child's first
   name" and stays in view while the name is typed (the keyboard covers the bottom of the screen). The text column's div
   is display:contents, so its children join the section's grid and `order` slots the chair in. The chair takes the
   height the words leave: .seat-art is a size container in the 1fr row (at least 80px; on a very short phone the section
   grows a little instead), and the chair is sized from it (100cqh), up to 40svh so a tablet's chair isn't huge.
   From 821px: the chair beside the words. */
.seat{padding:0}
.seat .wrap{min-height:100vh;min-height:100svh;padding-top:max(56px,7svh);padding-bottom:max(20px,3.5svh);grid-template-rows:auto auto minmax(80px,1fr) auto}
.seat .wrap>div:last-child{display:contents}
.seat h2{order:1}
.seat .lede{order:2}
.seat-art{order:3;align-self:stretch;container-type:size;display:flex;align-items:center;justify-content:center;min-height:0}
.seat form{order:4}
.seat .comp{--mh:min(100cqh,40svh);container-type:inline-size}
@media (min-width:821px){
  .seat{padding:max(56px,7svh) 0 max(20px,3.5svh)}
  .seat .wrap{min-height:0;padding-top:0;padding-bottom:0;grid-template-rows:none}
  .seat .wrap>div:last-child{display:grid}
  .seat-art{order:0;container-type:normal;display:block}
  .seat .comp{--mh:min(64svh,560px);margin:0 auto}
}
/* the tag is yellow crayon; the name is written in the dark crayon (yellow letters are too faint on white paper).
   One span per letter, laid side by side (grid-auto-flow:column) and centred as a group. The writing scales with the
   chair (cqw of the .comp), and --fit (fitName() in site.js) shrinks a long name so it fits on the tag */
.nametag{position:absolute;display:grid;grid-auto-flow:column;place-content:center;align-items:center;overflow:hidden;font-size:calc(clamp(.75rem,7cqw,1.9rem) * var(--fit,1));color:var(--draw);white-space:nowrap;line-height:1}
.nametag em{font-style:normal;opacity:.6;font-size:.72em}
.nametag span{display:inline-block;animation:write .28s linear both}
@keyframes write{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(-20% -10% -20% 0)}}
form{display:grid;gap:max(12px,1.8svh);max-width:26rem}
.field{display:grid;gap:4px}
.field label{font-size:.95rem;color:var(--muted)}
.field input{width:100%;background:none;border:0;border-bottom:2px solid var(--ink);border-radius:0;padding:4px 2px;color:var(--ink);font:500 clamp(1.25rem,3svh,1.6rem)/1.2 var(--hand)}
.field input:focus{outline:none;border-bottom-color:var(--btn)}
form .btn{justify-self:start}
#status{min-height:1.5em;color:var(--ink)}

/* scene 8: home time, on the chalkboard (one screen; the padding clears the timber rail and the chalk ledge) */
.home{padding:calc(max(24px,4.5svh) + 16px) 0 calc(max(20px,3.5svh) + 22px)}
.wipe{position:relative;margin:0 0 max(10px,3svh)}
.wipe .comp{--mh:min(20svh,200px)}
.wipe .gh{opacity:.09;filter:blur(1.4px)}
.wipe svg.chalk:not(.gh){-webkit-mask-image:linear-gradient(90deg,transparent calc(var(--x,0)*112% - 6%),#000 calc(var(--x,0)*112%));mask-image:linear-gradient(90deg,transparent calc(var(--x,0)*112% - 6%),#000 calc(var(--x,0)*112%))}
.duster{position:absolute;top:50%;left:calc(var(--x,0)*112% - 8%);width:132px;height:64px;margin:-32px 0 0 -66px;border-radius:9px 9px 5px 5px;transform:rotate(var(--rot,0deg));
  background:linear-gradient(#a8743f 0 44%,transparent 44%),repeating-linear-gradient(90deg,#ddd8cb 0 13px,#b9b3a4 13px 16px);box-shadow:0 9px 10px rgba(50,32,16,.4)}
.duster i{position:absolute;top:7px;width:17px;height:17px;border-radius:50%;background:#fbf8f0;overflow:hidden}
.duster i:first-child{left:36px}.duster i:last-child{left:78px}
.duster i::before{content:"";position:absolute;left:5px;top:7px;width:8px;height:8px;border-radius:50%;background:#2a1c10}
.duster i::after{content:"";position:absolute;inset:0 0 58% 0;background:#a8743f}
.bye{font-size:clamp(3rem,9vw,7.6rem);line-height:1;max-width:none;color:var(--draw)}
.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:max(10px,2.4svh) 28px;margin-top:max(12px,3.5svh)}
@media (min-width:821px){.details{grid-template-columns:repeat(3,minmax(0,1fr))}}
.details h3{font:600 1rem/1.4 var(--body);color:var(--muted);margin-bottom:6px}
.details p{font-size:1.05rem}
.nw{white-space:nowrap}
.notes{margin-top:max(12px,4svh);padding-top:max(10px,2svh);border-top:2px dashed var(--line);display:grid;gap:8px}
.notes p{max-width:46em}
.notes{font-size:.84rem;line-height:1.45}
@media (min-width:821px){.notes{font-size:.95rem;line-height:1.5}}

@media (max-width:820px){
  .nav nav a:not(.btn){display:none}
}
@media (prefers-reduced-motion:reduce){
  .room,.room .face,.room .copy>*,.room-body,.room .plus{transition:none!important}
  .hero{height:auto}
  .agenda{height:auto}
  .agenda-pin{position:relative}
  .agenda-sky{--fa:16svh;--fb:16svh}
  .agenda-list span{transition:none}
  .seen .hop{animation:none}
  .nametag span{animation:none}
}
