/* Halyard Dance Studio: the studio after dark, one sidelight, five colours of spike tape. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --floor: #0b0a0c;
  --floor-2: #141215;
  --bone: #efe8dc;
  --dim: #a39a8c;
  --amber: #f2b36b;
  --ballet: #d4ff2a; --tap: #4ff0ff; --jazz: #ff6fc8; --hiphop: #ffcf3a; --adult: #c58bff;
  --tape: var(--ballet);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --tall: "Big Shoulders", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(body.home) { scroll-snap-type: y mandatory; }
.home main > section { scroll-snap-align: start; scroll-snap-stop: always; }
.home .foot { scroll-snap-align: end; }
body { margin: 0; background: var(--floor); color: var(--bone); font: 400 17px/1.5 var(--serif); font-optical-sizing: auto; overflow-x: hidden; }
/* film grain over everything, still */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--tape); }
:focus-visible { outline: 2px solid var(--tape); outline-offset: 3px; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 80; background: var(--bone); color: var(--floor); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---- the bar: a soft shade over every photograph, solid only over a page's plain ground ---- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter) 22px; background: linear-gradient(rgba(11, 10, 12, .8), rgba(11, 10, 12, .45) 60%, rgba(11, 10, 12, 0)); text-shadow: 0 1px 10px rgba(11, 10, 12, .7); }
.bar.is-solid, .bar:focus-within { background: var(--floor); padding-bottom: 12px; }
.bar__mark { font: italic 600 22px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.bar__nav { display: flex; gap: clamp(12px, 3vw, 32px); font: 600 15px/1 var(--tall); letter-spacing: .08em; text-transform: uppercase; }
.bar__nav a { text-decoration: none; padding: 8px 0; }
.bar__nav a[aria-current] { color: var(--tape); }
.bar__tel { color: var(--ballet); }

/* the label every page carries */
body { position: relative; }
.sample { position: absolute; z-index: 55; left: 50%; top: calc(100svh - 38px); transform: translateX(-50%); margin: 0;
  width: max-content; max-width: calc(100vw - 24px); padding: 6px 12px; border-radius: 99px; background: rgba(11, 10, 12, .86);
  font: 500 12px/1.35 var(--tall); letter-spacing: .04em; color: var(--dim); text-align: center; white-space: nowrap; }
@media (min-width: 761px) { .sample { left: auto; right: 14px; top: calc(100svh - 36px); transform: none; padding: 4px 10px; background: rgba(11, 10, 12, .7); } }
@media (max-width: 760px) { .sample { font-size: 11.5px; letter-spacing: .01em; padding: 5px 10px; } }
/* the phone's week page runs its board past the first screen: the label sits under the bar instead */
@media (max-width: 760px) { .weekpage .sample { top: 60px; } }

/* ---- the first screen ---- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.hero__under { z-index: 1; }
.hero__words { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 9svh; }
.hero__turn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; }
@media (max-width: 760px) { .hero__turn img { object-position: 50% 50%; } }
.hero__over { z-index: 3; }
.name { margin: 0; font-weight: 400; line-height: .8; }
.name__big { display: block; white-space: nowrap; font: 500 min(16.5vw, 30svh)/.8 var(--serif); letter-spacing: -.035em; margin-left: -.04em;
  text-shadow: 0 0 40px rgba(11, 10, 12, .35); }
.name__big span:nth-child(3) { margin: 0 -.04em 0 -.035em; }
.name__big span { display: inline-block; transition: opacity .5s, color .9s, text-shadow .9s; }
.name__big span.lit { color: #fff8e9; text-shadow: 0 0 22px rgba(212, 255, 42, .55), 0 0 2px rgba(212, 255, 42, .9); }
.name__big span.cool { color: var(--bone); text-shadow: 0 0 40px rgba(11, 10, 12, .35); }
/* the subtitle and the line under it on solid dark strips, in one colour: never lost in the lit floor */
.name__rest { position: relative; display: table; margin: 1.1em 0 0 .2em; padding: .5em .2em .5em .62em; background: var(--floor); font: 600 clamp(15px, 1.5vw, 21px)/1 var(--tall); letter-spacing: .42em; text-transform: uppercase; color: var(--bone); }
.hero__line { display: table; margin: 14px 0 0 .15em; padding: .45em .65em .5em; background: var(--floor); max-width: 30ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; }
.hero__line em { display: block; }
@media (min-width: 761px) { .hero__line { max-width: none; } .hero__line em { white-space: nowrap; } }
.hero__call { display: inline-block; margin: 18px 0 0 .15em; font: 600 16px/1 var(--tall); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 12px 16px; border: 1px solid rgba(239, 232, 220, .45); border-radius: 2px; background: rgba(11, 10, 12, .72); white-space: nowrap; }
.hero__call b { color: var(--ballet); font-weight: 700; letter-spacing: .08em; }
.hero__call:hover { border-color: var(--ballet); color: var(--bone); }

@media (max-width: 760px) {
  .hero__photo img { object-position: 50% 50%; }
  .hero__words { bottom: calc(19svh + env(safe-area-inset-bottom)); }
  .name__big { font-size: 24vw; }
  .hero__line { max-width: 24ch; }
  .hero__line { font-size: 18px; }
}


/* ---- the thread: one line of light from the first screen to the phone number ---- */
.thread { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(transparent 56px, #000 96px); mask-image: linear-gradient(transparent 56px, #000 96px); } /* never under the bar */

/* ---- a class: one photograph, edge to edge, and its words set into it ---- */
.cl { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.cl__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl__words { position: absolute; z-index: 2; left: var(--x, var(--gutter)); right: auto; top: var(--y, auto); bottom: var(--b, auto); max-width: calc(100vw - 2 * var(--gutter)); }
/* a soft pool of shade under the words, never a veil over the picture */
.cl__words::before { content: ""; position: absolute; z-index: -1; inset: -18% -22%; background: radial-gradient(closest-side, rgba(11, 10, 12, .62), rgba(11, 10, 12, .3) 60%, transparent); pointer-events: none; }
.cl__when { margin: 0; font: 600 clamp(15px, 1.25vw, 19px)/1.2 var(--tall); letter-spacing: .2em; text-transform: uppercase; }
.cl__when b { color: var(--tape); font-weight: 700; letter-spacing: .1em; margin-left: .5em; }
.cl__when small { font-size: 1em; }
.cl__name { margin: .08em 0 0 -.04em; font: italic 500 clamp(96px, 14vw, 230px)/.86 var(--serif); letter-spacing: -.035em; }
.cl__ages { margin: .5em 0 0; font: 700 clamp(26px, 2.5vw, 38px)/1 var(--tall); letter-spacing: .08em; text-transform: uppercase; color: var(--tape); }
.cl__lead { margin: 16px 0 0; max-width: 24ch; font: italic 400 clamp(19px, 1.6vw, 24px)/1.3 var(--serif); }
.cl__more { display: inline-block; margin-top: 18px; font-size: 18px; }
.cl__more::after { content: " \2192"; }
/* who is in the picture, just above the class's time */
.cl__cap { margin: 0 0 12px; font: 600 13px/1 var(--tall); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); opacity: .8; }
.cl__more:hover { color: var(--tape); }

/* each class composed on its own photograph */
.cl--ballet { --x: 13vw; --y: 15svh; }
.cl--ballet .cl__photo img { object-position: 50% 50%; }
.cl--tap { --x: auto; --b: 10svh; }
.cl--tap .cl__words { right: var(--gutter); left: auto; text-align: right; }
/* tap is the class you hear: its time is the loudest thing on the screen */
.cl--tap .cl__when { font-size: clamp(16px, 1.3vw, 20px); }
.cl--tap .cl__when b { display: block; margin: .05em 0 0; font: 800 clamp(120px, 15vw, 250px)/.8 var(--tall); letter-spacing: -.01em; }
.cl--tap .cl__when b small { font-size: .3em; }
.cl--tap .cl__name { font-size: clamp(56px, 6vw, 96px); }
.cl__hear { display: block; margin: 16px 0 0 auto; background: none; border: 1px solid var(--tape); color: var(--tape); padding: 10px 14px; cursor: pointer; font: 700 15px/1 var(--tall); letter-spacing: .14em; text-transform: uppercase; }
.cl__hear[aria-pressed="true"] { background: var(--tape); color: var(--floor); }
.cl--tap .cl__photo img { object-position: 40% 50%; }
.cl--jazz { --x: auto; --y: 13svh; }
.cl--jazz .cl__words { right: var(--gutter); left: auto; text-align: right; }
.cl--jazz .cl__photo img { object-position: 50% 40%; }
.cl--hip-hop .cl__photo img { object-position: 60% 50%; }
/* the class page's hip hop: its name level, and short enough to end before his foot */
.cl--hip-hop .cl__name { font-size: clamp(80px, 9vw, 150px); }
.cl--adult-ballet .cl__name { font-size: clamp(72px, 9vw, 150px); }
.cl--adult-ballet .cl__photo img { object-position: 50% 30%; }
@media (max-width: 760px) {
  .cl:not(.cl--quiet) > .cl__photo img { object-position: 50% 0 !important; }
  .cl__words { left: var(--gutter) !important; right: var(--gutter) !important; top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); text-align: left !important; }
  .cl__words { bottom: calc(19svh + env(safe-area-inset-bottom)); }
  .cl__name { font-size: 25vw; }
  .cl--tap .cl__name { font-size: 34vw; }
  .cl--tap .cl__when b { font-size: 30vw; }
  .cl--tap .cl__ages { margin-top: .9em; }
  .cl__hear { margin-left: 0; }
  .cl__cap { font-size: 11.5px; margin-bottom: 10px; }
  .cl--adult-ballet .cl__name { font-size: 18vw; }
}

/* jazz and hip hop: two halves of one screen (one above the other on a phone), each its own photograph */
.cl--pair { display: grid; grid-template-columns: 42fr 58fr; }
.half { position: relative; overflow: hidden; isolation: isolate; }
.half .cl__words { max-width: calc(100% - 2 * var(--gutter)); }
.half .cl__name { font-size: clamp(72px, 7vw, 120px); }
/* jazz's words on the dark wall under her kick, clear of her */
.half--jazz { --y: 45svh; }
.half--jazz .cl__words { left: auto; right: var(--gutter); text-align: right; }
.half--jazz .cl__photo img { object-position: 50% 30%; }
/* hip hop's words on the floor at the bottom right, under his hand; his squares chalked at the left */
.half--hip-hop { --b: 2.5svh; }
.half--hip-hop .cl__words { left: auto; right: var(--gutter); text-align: right; }
.half--hip-hop .cl__photo img { object-position: 86% 50%; }
/* adult ballet, the quiet beat: the Saturday photograph inset at its own size on the dark ground, the words beside it */
.cl--quiet { display: grid; grid-template-columns: 62vw 1fr; align-items: center; gap: 0 4vw; padding: 0 var(--gutter); }
.cl--quiet .cl__photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cl--quiet .cl__photo img { object-position: 38% 50%; }
.cl--quiet .cl__words { position: static; max-width: none; }
.cl--quiet .cl__words::before { display: none; }
.cl--quiet .cl__name { font-size: clamp(64px, 6.6vw, 112px); }
@media (max-width: 760px) {
  .cl--pair { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  /* the jazz photograph under the bar, both teen classes' words on the dark between, the hip hop photograph last */
  .cl--pair { height: auto; min-height: 100svh; padding-top: 54px; }
  .half { display: flex; flex-direction: column; justify-content: flex-start; }
  .half--hip-hop { justify-content: flex-end; }
  .half .cl__words { position: static; margin: 18px var(--gutter) 0; }
  .half--hip-hop .cl__words { order: -1; margin: 14px var(--gutter) 18px; }
  .half .cl__words::before { display: none; }
  .half .cl__name { font-size: min(14vw, 64px); }
  .half .cl__more { margin-top: 12px; }
  .half .cl__photo { position: relative; flex: none; height: min(50vw, 26svh); overflow: hidden; }
  .half--jazz .cl__photo img { object-position: 50% 0 !important; }
  .half--hip-hop .cl__photo img { object-position: 50% 30% !important; }
  .cl--quiet { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: 52px; }
  .cl--quiet .cl__photo { aspect-ratio: 4 / 5; max-height: 54svh; }
  .cl--quiet .cl__name { font-size: 18vw; }
}

/* ---- the week at a glance: one board, said once, under a dancer in the air ---- */
.wk { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.wk__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
/* shade where the words sit: the dark wall at the top left and the floor along the bottom */
.wk::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 18% 18%, rgba(11, 10, 12, .55), transparent), linear-gradient(transparent 42%, rgba(11, 10, 12, .62) 66%, rgba(11, 10, 12, .9)); }
.wk__board { flex: 1; display: flex; flex-direction: column; padding: 96px var(--gutter) 64px; }
.wk__h { margin: 0 0 30px; font: 400 clamp(64px, 7vw, 120px)/.85 var(--serif); letter-spacing: -.035em; }
.wk__ages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 22px; }
.wk__ask { font: italic 400 22px/1 var(--serif); margin-right: 4px; }
.wk__ages button { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 700 19px/1 var(--tall); letter-spacing: .12em; text-transform: uppercase; color: rgba(239, 232, 220, .85); border-bottom: 2px solid transparent; }
.wk__ages button:hover { color: var(--bone); }
.wk__ages button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--bone); }
.wk__days { display: grid; gap: 0; width: min(860px, 100%); margin-top: auto; }
.wk__row { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(239, 232, 220, .22); }
.wk__day { margin: 0; font: italic 500 26px/1.05 var(--serif); }
.wk__day span { font-style: normal; font-size: .7em; color: var(--dim); }
.wk__row ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wk__row li { transition: opacity .4s; }
.wk__row li a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: baseline; text-decoration: none; padding-top: 10px; border-top: 4px solid var(--tape); }
.wk__t { grid-row: span 2; font: 800 clamp(48px, 4.6vw, 72px)/.85 var(--tall); color: var(--tape); }
.wk__t small { font-size: .38em; margin-left: .04em; }
.wk__row b { font: italic 500 26px/1 var(--serif); align-self: end; }
.wk__row i { margin-top: 6px; }
.wk__row b, .wk__row i { white-space: nowrap; }
.wk__row i { font: 600 15px/1.3 var(--tall); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); }
.wk__row li a:hover b { color: var(--tape); }
.wk[data-band] .wk__row li:not(.on) { opacity: .16; }
.wk__next { margin: 18px 0 0; min-height: 1.2em; font: 700 22px/1.2 var(--tall); letter-spacing: .1em; text-transform: uppercase; color: var(--ballet); }
@media (max-width: 760px) {
  /* on a phone she leaps across the top of the screen, and the board stands on the floor below her */
  .wk { display: block; }
  .wk__photo img { object-position: 50% 0; }
  .wk::before { background: linear-gradient(transparent 26%, rgba(11, 10, 12, .45) 40%, rgba(11, 10, 12, .62) 70%, rgba(11, 10, 12, .72)); }
  .wk__board { padding: 80vw var(--gutter) 72px; }
  .wk__row li a { grid-template-columns: 1fr; }
  .wk__t { grid-row: auto; }
  .wk__h { font-size: 64px; margin-bottom: 26px; }
  .wk__days { margin-top: 0; }
  .wk__row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .wk__day { font-size: 20px; }
  .wk__row ul { gap: 12px; }
  .wk__t { font-size: 40px; }
  .wk__row b { font-size: 21px; }
  .wk__row i { font-size: 12.5px; letter-spacing: .1em; }
  .wk__ages { gap: 4px 14px; margin-bottom: 14px; }
  .wk__ask { font-size: 19px; width: 100%; }
  .wk__ages button { font-size: 17px; }
}

@media (min-width: 1100px) {
  /* the week stands on the floor under her as three lines */
  .wk__photo img { object-position: 70% 0; }
  .wk__board { padding-top: 110px; }
  .wk__days { width: min(1080px, 100%); }
  .wk__row { grid-template-columns: 260px 1fr; padding: 14px 0; }
  .wk__day { font-size: 30px; }
  .wk__row ul { gap: 28px; }
  .wk__t { font-size: clamp(64px, 5.6vw, 92px); }
  .wk__row b { font-size: 30px; }
}

/* ---- your turn on the floor ---- */
.draw { position: relative; height: 100svh; min-height: 560px; overflow: hidden; -webkit-user-select: none; user-select: none; }
.draw__floor { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
/* the morning floor dimmed, so the chalk glows on it */
.draw__floor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) contrast(1.15) saturate(.8); }
.draw__floor canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.draw__words { position: absolute; z-index: 2; left: var(--gutter); top: 13svh; width: min(560px, calc(100% - 2 * var(--gutter))); pointer-events: none; }
.draw__words > * { pointer-events: auto; }
.draw__words::before { content: ""; position: absolute; z-index: -1; inset: -20% -25%; background: radial-gradient(closest-side, rgba(11, 10, 12, .75), transparent); pointer-events: none; }
.draw__h { margin: 0; font: 400 clamp(56px, 6.4vw, 108px)/.88 var(--serif); letter-spacing: -.035em; }
.draw__how { margin: 20px 0 0; max-width: 34ch; font-size: 19px; }
.draw__classes { margin: 18px 0 0; font: italic 400 18px/2 var(--serif); }
.draw__classes button { background: none; border: 0; padding: 4px 0; margin-right: 12px; cursor: pointer; font: 700 16px/1 var(--tall); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); border-bottom: 3px solid var(--tape); }
.draw__classes button:hover, .draw__classes button[aria-pressed="true"] { color: var(--tape); }
.draw__verdict { margin: 18px 0 0; max-width: 34ch; font: 400 21px/1.35 var(--serif); }
.draw__verdict b { font-style: italic; font-weight: 500; }
.draw__verdict a { display: inline-block; margin-left: 4px; }
.draw__keep { margin: 16px 0 0; font: 700 17px/1 var(--tall); letter-spacing: .12em; text-transform: uppercase; }
.draw__keep a { color: var(--ballet); }
@media (max-width: 760px) { .draw__words { top: 84px; } .draw__how { font-size: 17px; } }

/* ---- register: the line lands on the number ---- */
.reg { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; align-items: end; }
.reg__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11, 10, 12, 0) 30%, rgba(11, 10, 12, .78) 78%); pointer-events: none; }
.reg__words { padding: 0 var(--gutter) 14svh; }
.reg__h { margin: 0 0 .2em; font: 400 clamp(34px, 3.8vw, 60px)/1 var(--serif); letter-spacing: -.02em; }
.reg__num { display: inline-block; margin-top: .04em; font: 800 clamp(110px, 17vw, 280px)/.84 var(--tall); color: var(--ballet); text-decoration: none; letter-spacing: -.005em; white-space: nowrap; }
.reg__num:hover { color: #fff; }
.reg__more { margin: 40px 0 0; display: block; font-size: 19px; max-width: 40ch; }
.reg__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.reg__list li { border-top: 3px solid var(--tape); padding-top: 8px; }
.reg__list b { font: italic 500 22px/1 var(--serif); }
.reg__list span { display: block; color: var(--bone); font-size: 15px; }
@media (max-width: 760px) { .reg__num { font-size: 23vw; } .reg__words { padding-bottom: 72px; } }
/* the home page's register screen: the words at the top, the hands and slippers clear below them */
.reg--bench { align-items: start; }
.reg--bench::before { background: radial-gradient(ellipse 62% 52% at 26% 26%, rgba(11, 10, 12, .62), transparent); }
.reg--bench .reg__words { padding: 15svh var(--gutter) 0; }
.reg--bench .reg__photo img { object-position: 60% 70%; }
/* on a desktop the words stand on the dark floor at the bottom left, the number ending before the bench */
@media (min-width: 761px) {
  .reg--bench { align-items: end; }
  .reg--bench::before { background: radial-gradient(ellipse 50% 50% at 18% 78%, rgba(11, 10, 12, .62), transparent); }
  .reg--bench .reg__words { padding: 0 var(--gutter) 10svh; }
  .reg--bench .reg__h { max-width: 9.5em; }
  .reg--bench .reg__num { font-size: clamp(96px, 9.6vw, 170px); }
}
@media (max-width: 760px) { .reg--bench .reg__words { padding: 72px var(--gutter) 0; } .reg--bench .reg__more { margin-top: 14px; } .reg--bench .reg__photo img { object-position: 50% 100%; } }

/* ---- footer: the last photograph, the room on a Saturday morning ---- */
.foot { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; padding: 0 var(--gutter) 84px; display: grid; grid-template-columns: 1fr auto; align-content: end; align-items: end; gap: 18px 40px; }
.foot__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent 38%, rgba(11, 10, 12, .5) 64%, rgba(11, 10, 12, .86)); }
.foot__name { grid-column: 1 / -1; margin: 0 0 .16em; font: italic 500 clamp(56px, 8.4vw, 150px)/.92 var(--serif); letter-spacing: -.03em; } /* room for the y's tail */
.foot__lines { margin: 0; font-size: 18px; }
.foot__made { margin: 0; font-size: 14px; color: var(--bone); opacity: .8; text-align: right; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot__name { font-size: 17vw; } .foot__made { text-align: left; } }

/* ---- a class page ---- */
.chero { --b: 12svh; --y: auto; }
.chero .cl__words { top: auto; bottom: 12svh; left: var(--gutter); right: auto; text-align: left; }
.chero__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.cinfo { display: grid; grid-template-columns: 55fr 45fr; min-height: 90svh; position: relative; }
.cinfo__floor { position: relative; min-height: 70svh; overflow: hidden; }
.cinfo__floor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinfo__floor canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.cinfo__text { padding: 12svh var(--gutter); align-self: center; }
.cinfo__lead { margin: 0; font: 400 clamp(28px, 2.8vw, 42px)/1.12 var(--serif); letter-spacing: -.01em; }
.cinfo__next { margin: 22px 0 0; font: 700 clamp(26px, 2.6vw, 38px)/1 var(--tall); letter-spacing: .04em; text-transform: uppercase; color: var(--tape); }
.cinfo__do { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.btn { display: inline-block; padding: 13px 16px; background: var(--tape); color: var(--floor); text-decoration: none; font: 700 16px/1 var(--tall); letter-spacing: .12em; text-transform: uppercase; }
.btn:hover { background: var(--bone); color: var(--floor); }
.btn--quiet { background: none; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(239, 232, 220, .4); }
.btn--quiet:hover { background: none; color: var(--tape); box-shadow: inset 0 0 0 1px var(--tape); }
.cinfo__note { margin: 16px 0 0; max-width: 40ch; color: var(--dim); font-size: 15px; }
.cinfo__scrub { display: grid; gap: 8px; margin-top: 30px; font: 600 14px/1 var(--tall); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); max-width: 420px; }
.cinfo__scrub input { width: 100%; accent-color: var(--tape); }
.cnext { padding: 72px var(--gutter) 40px; }
.cnext__h { margin: 0 0 22px; font: 600 16px/1 var(--tall); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.cnext ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cnext a { display: block; text-decoration: none; }
.cnext img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: filter .4s; }
.cnext a:hover img { filter: brightness(1.12); }
.cnext b { display: block; margin-top: 10px; font: italic 500 26px/1 var(--serif); border-top: 3px solid var(--tape); padding-top: 10px; }
.cnext span { font: 600 15px/1.4 var(--tall); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 760px) {
  .cinfo { grid-template-columns: 1fr; }
  .cinfo__floor { min-height: 60svh; }
  .cinfo__text { padding: 48px var(--gutter) 24px; }
  .cnext ul { grid-template-columns: 1fr 1fr; }
}

/* ---- the week page's calendar list ---- */
.cal { padding: 80px var(--gutter) 60px; }
.cal__h { margin: 0 0 26px; font: 400 clamp(40px, 4.4vw, 68px)/1 var(--serif); letter-spacing: -.02em; }
.cal__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cal__list a { display: block; border-top: 4px solid var(--tape); padding-top: 10px; text-decoration: none; }
.cal__list b { font: italic 500 28px/1 var(--serif); display: block; }
.cal__list span { font-size: 16px; color: var(--bone); }
.cal__note { margin: 28px 0 0; max-width: 50ch; font-size: 18px; }

/* ---- motion: the lamp comes on; words arrive with the light ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo img { animation: lamp 1.1s steps(1, end) both, warm 1.6s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__line, .js .hero__call, .js .name__rest { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 1.7s; }
  .js .hero__call { animation-delay: 1.95s; }
  .js .name__rest { animation-delay: 1.4s; }
  /* each screen's lamp comes up as it arrives, and its words follow the light */
  .js .cl .cl__photo img, .js .wk__photo img, .js .reg__photo img { transition: filter .9s cubic-bezier(.2, .7, .2, 1), transform 6s cubic-bezier(.2, .7, .2, 1); filter: brightness(.6) saturate(.7); transform: scale(1.06); }
  .js .in .cl__photo img, .js .in.wk .wk__photo img, .js .in.reg .reg__photo img { filter: none; transform: none; }
  .js .cl__words > *, .js .wk__board > *, .js .reg__words > *, .js .draw__words > * { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .in .cl__words > *, .js .in .wk__board > *, .js .in .reg__words > *, .js .in .draw__words > * { opacity: 1; transform: none; }
  .js .in .cl__words > :nth-child(2), .js .in .wk__board > :nth-child(2), .js .in .reg__words > :nth-child(2), .js .in .draw__words > :nth-child(2) { transition-delay: .15s; }
  .js .in .cl__words > :nth-child(3), .js .in .wk__board > :nth-child(3), .js .in .reg__words > :nth-child(3), .js .in .draw__words > :nth-child(3) { transition-delay: .3s; }
  .js .in .cl__words > :nth-child(n+4), .js .in .draw__words > :nth-child(n+4) { transition-delay: .45s; }
  @keyframes lamp { 0% { opacity: .7; } 8% { opacity: .9; } 12% { opacity: .75; } 18% { opacity: 1; } }
  @keyframes warm { from { filter: brightness(.6) saturate(.6) sepia(.3); } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* a desktop reads at arm's length */
@media (min-width: 1100px) {
  body { font-size: 20px; }
  .hero__line { font-size: 26px; }
  .draw__how, .reg__more, .cinfo__note, .cl__more { font-size: 21px; }
  .sample { font-size: 12px; }
}
