/* =====================================================================
   C · MUSTE (ink on paper)
   Drawing paper, black ink, one sumi stroke in brand yellow. Athletic
   italic condensed type against gestural brushwork; small asides in
   Space Grotesk.
   Shape rule: ink is organic (#ink-edge filter, scanned strokes);
   anything you can press is a skewed ink block. No radii.
   Theme is fixed light by art direction (ink needs paper).
   ===================================================================== */

:root {
  --paper: #ecece7;
  --card: #f6f6f2;
  --ink: #151514;
  --ink-2: #3b3b38;
  --yellow: #fff264;
  --chalk: #edece7;
  --chalk-2: #c4c3bd;

  --ff-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ff-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --ff-accent: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --hdr: 72px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1328px;
  --section: clamp(80px, 11vw, 160px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ink: cubic-bezier(.6, 0, .2, 1);

  --z-art: -1;
  --z-hdr: 40;
  --z-menu: 39;
  --z-grain: 60;
  --z-skip: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 24px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--ff-body); text-rendering: optimizeLegibility; }
main, .foot { overflow-x: clip; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: var(--paper) url("assets/img/tex-paper.webp") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none;
  background: url("assets/img/grain.png");
  opacity: .04;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alias { position: absolute; top: 0; }
.logo { display: block; height: auto; }
.accent { font-family: var(--ff-accent); font-weight: 500; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.foot :focus-visible { outline-color: var(--yellow); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: var(--z-skip);
  transform: translateY(-160%);
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font: italic 800 1rem/1 var(--ff-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 0 1.5em;
  color: var(--paper);
  font: italic 800 clamp(1.2rem, 1.5vw, 1.4rem)/1 var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: skewX(-12deg);
}
/* hover: the label rises out of the block and a yellow copy rises in after it,
   the same rise the logo and the slogan make on the way in. The copy is a
   text-shadow, so screen readers never hear it twice. */
.btn__label { display: block; clip-path: inset(-.25em -.5em); }
.btn__label > span { display: block; text-shadow: 0 1.6em var(--yellow); }
.btn:focus-visible .btn__label > span { transform: translateY(-1.6em); }
@media (hover: hover) { .btn:hover .btn__label > span { transform: translateY(-1.6em); } }
/* ease-out cubic, not the site's expo: expo finishes in ~70ms, too fast to see the rise */
@media (prefers-reduced-motion: no-preference) { .btn__label > span { transition: transform .45s cubic-bezier(.33, 1, .68, 1); } }
/* forced colours drop text shadows: keep the label itself in place */
@media (forced-colors: active) { .btn:is(:hover, :focus-visible) .btn__label > span { transform: none; } }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline-offset: 6px; }
.btn--sm { min-height: 44px; padding: 0 1.15em; font-size: 1.1rem; }

.call {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px;
  font: italic 700 clamp(1.1rem, 1.35vw, 1.3rem)/1 var(--ff-display);
  text-transform: uppercase; letter-spacing: .05em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px;
}
.call:hover { text-decoration-color: var(--yellow); }
.link-out {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px;
  font: italic 700 1.1rem/1 var(--ff-display); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-out:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }

/* ------------------------------------------------------------ header */
.hdr {
  position: sticky; top: 0; z-index: var(--z-hdr);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  height: var(--hdr);
  padding: 0 var(--gut);
  background: var(--paper) url("assets/img/tex-paper.webp") center / cover fixed;
}
.hdr__home .logo { width: 76px; }
/* the hero opens with the big logo, so the header leaves its own out until that has scrolled away (main.js) */
.js .hdr__home { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.js .hdr--logo .hdr__home { opacity: 1; visibility: visible; transition: opacity .25s; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.hdr__nav a {
  padding: 10px 0;
  font: italic 700 1.08rem/1 var(--ff-display); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  background: url("assets/img/paint-brush-yellow.webp") 0 85% / 0 10px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.hdr__nav a:hover { background-size: 100% 10px; }
.hdr__menu {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink);
  font: italic 700 1.05rem/1 var(--ff-display); text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}

/* ------------------------------------------------------------ type */
.h-display {
  font: italic 800 clamp(3.2rem, 7.6vw, 7.6rem)/.88 var(--ff-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.lede { max-width: 38ch; font: 500 clamp(1.2rem, 1.75vw, 1.55rem)/1.42 var(--ff-body); }
.lede + .lede { margin-top: 1em; }
/* the brush image is solid only across ~4-70% of its width: scaled and shifted so that part spans the words */
.hl {
  background: url("assets/img/paint-brush-yellow.webp") 12% 62% / 150% 78% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .1em;
  font-weight: 600;
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--hdr));
  max-width: calc(var(--max) + 2 * var(--gut));
  margin: 0 auto;
  padding: clamp(20px, 4vh, 48px) var(--gut) clamp(40px, 7vh, 80px);
}
.hero__copy { max-width: 48%; }
/* the logo is the headline; capped by viewport height so the button stays above the fold */
.hero__title { width: min(100%, 600px, calc((100svh - var(--hdr)) * .62)); }
.hero__logo { width: 100%; }
.hero__lede { max-width: 31ch; margin-top: clamp(20px, 3.2vh, 32px); font: 500 clamp(1.15rem, 1.45vw, 1.35rem)/1.45 var(--ff-body); }
.hero__lede a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.hero__lede a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; margin-top: clamp(24px, 3.8vh, 40px); }
/* The room, the full width of the window and height of the hero. The photo is clean; the original
   site's coat is a mask (coat-keep.png), so the page's paper shows where the paint was. Zoomed in
   from the bottom right so Joonas is bigger; the masks scale with it. --brush-from starts the brush
   just off the visible left edge for that zoom: 1 - 1/zoom of the photo is cut off on the left. */
.hero__photo { position: absolute; z-index: var(--z-art); top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); overflow: hidden; }
.hero__photo picture { display: contents; }
.hero__photo img {
  --coat-pos: 100% 30%;
  --zoom: 1.4;
  --brush-from: 78%;
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--coat-pos);
  -webkit-mask: url("assets/img/coat-keep.png") var(--coat-pos) / cover no-repeat;
  mask: url("assets/img/coat-keep.png") var(--coat-pos) / cover no-repeat;
  transform: scale(var(--zoom)); transform-origin: 100% 85%;
}
/* squarer windows crop the room harder; zoom less so Joonas stays clear of the logo */
@media (max-aspect-ratio: 3/2) {
  .hero__photo img { --zoom: 1.2; --brush-from: 91%; }
}

/* ------------------------------------------------------------ services */
.services { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: var(--section) var(--gut); }
.services__kicker { margin-top: 12px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
/* Services as paper cards: one common region for the two massages and the price ruler they share,
   and a card of its own for each extra service. Equal gaps make them one set. */
.services__card, .extra {
  padding: clamp(24px, 3.6vw, 52px) clamp(20px, 3.6vw, 52px) clamp(28px, 3.8vw, 52px);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(21, 21, 20, .08), 0 26px 44px -26px rgba(21, 21, 20, .5);
}
.services__card { margin-top: clamp(36px, 5vw, 64px); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 6vw, 96px); max-width: 1040px; }
.duo h3, .extra__name { font: italic 800 clamp(1.9rem, 3vw, 2.7rem)/1 var(--ff-display); text-transform: uppercase; }
.duo p { max-width: 42ch; margin-top: .45em; }

.ruler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(36px, 4.4vw, 60px);
  padding-top: 30px;
}
.ruler::before {
  content: "";
  position: absolute; left: -1%; right: -3%; top: 0; height: 20px;
  background: url("assets/img/paint-brush-ink.webp") 0 50% / 100% 100% no-repeat;
  transform-origin: 0 50%;
}
.ruler li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 8px 0 0; }
.ruler li::before { content: ""; position: absolute; left: 4px; top: -36px; width: 5px; height: 44px; background: var(--ink); transform: skewX(-12deg); }
.ruler__min { font: italic 700 clamp(.95rem, 1.4vw, 1.2rem)/1 var(--ff-display); text-transform: uppercase; letter-spacing: .08em; }
.ruler__eur, .extra__eur { font: italic 800 clamp(1.9rem, 3vw, 2.7rem)/1 var(--ff-display); letter-spacing: -.01em; }

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(20px, 2.4vw, 32px); }
/* each price sits right after its name; at the far edge it read as the next column's */
.extra__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: .5em; }
.extra p:last-child { max-width: 46ch; }

/* ------------------------------------------------------------ about */
.about { position: relative; isolation: isolate; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: var(--section) var(--gut); }
/* the slogan heads the section: a small aside above the athletic italic */
.slogan__aside { margin-bottom: clamp(14px, 2.4vh, 26px); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.2; }
.slogan { font: italic 800 clamp(3.7rem, 8.3vw, 8.4rem)/.86 var(--ff-display); text-transform: uppercase; letter-spacing: -.006em; }
/* while its words rise into place, each line clips at its bottom edge (motion block) */
.line { display: block; padding-right: .12em; }
.line > span { display: block; }
.line--big { font-size: 1.34em; }
/* The full stop is an ink splatter. The "." stays in the text for copy and screen readers, invisible;
   the splatter's blot (37% / 50% of the image) sits on the dot's ink, .105em in and .92em down. */
.slogan__dot { position: relative; color: transparent; }
.slogan__dot::before {
  content: ""; position: absolute; left: .105em; top: .92em;
  width: .8em; aspect-ratio: 1;
  translate: -37% -50%; rotate: 20deg; transform-origin: 37% 50%;
  background: url("assets/img/ink-splatter-ink.webp") center / contain no-repeat;
  pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); }
.about__note { max-width: 52ch; margin-top: 2em; color: var(--ink-2); text-wrap: pretty; }
/* the rest of Joonas's words: plain paragraphs, spaced like the ledes */
.about__text p { max-width: 52ch; text-wrap: pretty; }
.about__text p + p { margin-top: 1em; }

/* ------------------------------------------------------------ reviews ticker */
/* The heading keeps the page column; the ticker runs edge to edge (see below). */
.voices { padding: var(--section) 0; }
.voices__head, .ticker { max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
/* The heading wraps instead of the button, so the button stays beside its last line. */
.voices__head .h-display { min-width: 0; }
.nav-btn {
  position: relative; isolation: isolate;
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; padding: 0; border: 0;
  background: none; color: var(--paper); cursor: pointer;
  transition: color .2s;
}
.nav-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: skewX(-12deg); }
/* hover: the icon lights up yellow, like the buttons' labels */
.nav-btn:focus-visible { color: var(--yellow); }
@media (hover: hover) { .nav-btn:hover { color: var(--yellow); } }
.nav-btn[hidden] { display: none; }
.nav-btn .i { width: 24px; height: 24px; }
/* Still (no JS, reduced motion): every review in a grid. */
.ticker { --tick-gap: clamp(28px, 3.4vw, 56px); --tick-speed: 40; margin-top: clamp(28px, 4vw, 48px); }
.ticker__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) var(--tick-gap); }
/* Running: one row, edge to edge, that main.js moves --tick-speed px a second
   through copies of the list. No scroll bar: it only moves by itself. */
@media (prefers-reduced-motion: no-preference) {
  .js .ticker { max-width: none; padding-inline: 0; overflow: hidden; }
  .js .ticker__list { display: flex; width: max-content; gap: var(--tick-gap); padding-block: 10px; will-change: transform; }
  .js .ticker .quote { flex: 0 0 clamp(270px, 33vw, 440px); }
}
.quote { padding-left: 24px; border-left: 5px solid var(--ink); }
.quote blockquote { margin: 14px 0 0; }
.quote blockquote p { font: italic 700 clamp(1.5rem, 2.1vw, 1.95rem)/1.16 var(--ff-display); text-wrap: pretty; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--ink); }

/* ------------------------------------------------------------ location */
.where {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gut));
  margin: 0 auto;
  padding: var(--section) var(--gut);
}
.where .h-display { font-size: clamp(3rem, 6.2vw, 6.2rem); }
.where__area { margin: .3em 0 1em; font: italic 800 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--ff-display); text-transform: uppercase; letter-spacing: .02em; }
.where__text { max-width: 46ch; margin-bottom: 18px; text-wrap: pretty; }

/* ink frame around embeds: an inked slab with bleeding edges behind the iframe */
.frame { position: relative; isolation: isolate; padding: clamp(10px, 1.2vw, 16px); }
.frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); filter: url("#ink-edge"); }
.frame iframe { position: relative; display: block; width: 100%; border: 0; background: var(--card); }
.where__map iframe { aspect-ratio: 4 / 3; min-height: 320px; filter: grayscale(1) contrast(1.12); }
.embed-note { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font: italic 700 1rem/1 var(--ff-display); text-transform: uppercase; letter-spacing: .08em; color: var(--chalk-2); }
.frame iframe { z-index: 1; }
.js .frame iframe { background: transparent; }
[data-embed-wrap].is-loaded .embed-note { visibility: hidden; }

/* ------------------------------------------------------------ booking */
.book { max-width: calc(1120px + 2 * var(--gut)); margin: 0 auto; padding: var(--section) var(--gut) clamp(40px, 5vw, 72px); }
.book__text { display: grid; gap: 6px; max-width: 58ch; margin: 22px 0 clamp(28px, 3.6vw, 44px); font-size: 1.1rem; }
.book__text a { font-weight: 600; }
/* until Timma reports its content height (core.js sets it inline) */
.book__frame iframe { height: clamp(640px, 82vh, 900px); }
.book__out { margin-top: 20px; }

/* ------------------------------------------------------------ footer: an ink flood */
.foot { position: relative; isolation: isolate; margin-top: clamp(48px, 7vw, 110px); padding-top: clamp(80px, 10vw, 150px); color: var(--chalk); }
.foot::before { content: ""; position: absolute; inset: 0 -60px -60px; z-index: -1; background: var(--ink); filter: url("#ink-edge"); }
.foot__inner { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 40px; }
.foot__mail {
  display: inline-block; max-width: 100%;
  font: italic 800 clamp(2rem, 7.2vw, 7.2rem)/.95 var(--ff-display);
  text-transform: uppercase; letter-spacing: -.005em;
  text-decoration: none; overflow-wrap: anywhere;
  background: url("assets/img/paint-brush-yellow.webp") 0 92% / 0 .14em no-repeat;
  transition: background-size .45s var(--ease-out);
  padding-bottom: .06em;
}
.foot__mail:hover { background-size: 100% .14em; }
.foot__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(30px, 4vw, 56px); }
.foot__info { display: grid; gap: 22px; justify-items: start; }
.foot__text { max-width: 46ch; color: var(--chalk-2); font-size: 1.1rem; }
.foot__list { display: flex; flex-wrap: wrap; gap: 6px 40px; font: 500 1.1rem/1.3 var(--ff-body); }
/* on the ink flood the block flips to paper; hover turns it yellow under the rising ink label */
.btn--foot { margin-top: 10px; color: var(--ink); }
.btn--foot::before { background: var(--chalk); transition: background-color .25s; }
.btn--foot .btn__label > span { text-shadow: 0 1.6em var(--ink); }
.btn--foot:focus-visible::before { background: var(--yellow); }
@media (hover: hover) { .btn--foot:hover::before { background: var(--yellow); } }
.foot__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.foot__list a { text-decoration: none; border-bottom: 2px solid rgba(237, 236, 231, .35); }
.foot__list a:hover { border-bottom-color: var(--yellow); }
.foot__list .i { color: var(--yellow); }
.logo--foot { width: clamp(150px, 16vw, 220px); flex: none; }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  /* The wide shot of Joonas in his room, the coat brushed on from the left straight away, then
     the logo and the copy arrive on it. main.js adds .brush-go once the photo and both masks are decoded, or
     .brush-skip if that is slow (the finished hero just appears). If main.js never runs, the
     hero shows after 2s. */
  .js .hero__photo, .js .hero__lede, .js .hero__actions { opacity: 0; animation: show 0s 2s forwards; }
  .js .hero__title { clip-path: inset(-10% -10% 0 -10%); }
  .js .hero__logo { transform: translateY(108%); animation: rise 0s 2s forwards; }
  .brush-skip .hero__photo, .brush-skip .hero__lede, .brush-skip .hero__actions { opacity: 1; animation: none; }
  .brush-skip .hero__logo { transform: none; animation: none; }
  .brush-go .hero__photo { opacity: 1; animation: none; }
  /* a second mask layer, the brush front, keeps the room showing where the brush hasn't been yet */
  .brush-go .hero__photo img {
    -webkit-mask: url("assets/img/coat-keep.png") var(--coat-pos) / cover no-repeat, url("assets/img/brush-wipe.png") var(--brush-from) 0 / 195% 100% no-repeat;
    mask: url("assets/img/coat-keep.png") var(--coat-pos) / cover no-repeat, url("assets/img/brush-wipe.png") var(--brush-from) 0 / 195% 100% no-repeat;
    animation: brush-on 1.2s cubic-bezier(.45, 0, .2, 1) both;
  }
  .brush-go .hero__logo { animation: rise-in .85s var(--ease-out) .5s forwards; }
  .brush-go .hero__lede, .brush-go .hero__actions { animation: fade-in .45s ease-out .7s forwards; }

  .js [data-reveal="up"] { opacity: 0; translate: 0 26px; transition: opacity .5s ease-out, translate .7s var(--ease-out); }
  .js [data-reveal="up"].is-in { opacity: 1; translate: 0 0; }

  /* the slogan's entrance: the words rise, the clip lifts, the full stop lands as a splat; the aside fades in */
  .js [data-reveal="rise"] .line { clip-path: inset(-.4em -.3em 0 -.3em); }
  .js [data-reveal="rise"] .line > span { transform: translateY(108%); transition: transform .85s var(--ease-out); }
  .js [data-reveal="rise"] .line--big > span { transition-delay: .15s; }
  .js [data-reveal="rise"] .slogan__dot::before { opacity: 0; scale: .3; }
  .js [data-reveal="rise"] .slogan__aside { opacity: 0; transition: opacity .5s ease-out .75s; }
  .js [data-reveal="rise"].is-in .line { animation: unclip 0s 1s forwards; }
  .js [data-reveal="rise"].is-in .line > span { transform: none; }
  .js [data-reveal="rise"].is-in .slogan__dot::before { animation: splat .3s cubic-bezier(.2, .9, .3, 1.3) 1.02s forwards; }
  .js [data-reveal="rise"].is-in .slogan__aside { opacity: 1; }

  .js [data-reveal="draw"]::before { transform: scaleX(0); transition: transform 1s var(--ease-ink); }
  .js [data-reveal="draw"].is-in::before { transform: none; }
  .js [data-reveal="draw"] li { opacity: 0; translate: 0 18px; transition: opacity .4s ease-out, translate .6s var(--ease-out); transition-delay: calc(.35s + var(--i) * .09s); }
  .js [data-reveal="draw"].is-in li { opacity: 1; translate: 0 0; }
}
@keyframes rise { to { transform: none; } }
@keyframes rise-in { to { transform: none; } }
@keyframes brush-on { to { -webkit-mask-position: var(--coat-pos), 0 0; mask-position: var(--coat-pos), 0 0; } }
@keyframes land { from { opacity: 0; translate: -50% -18px; rotate: -5deg; } to { opacity: 1; translate: -50% 0; rotate: -1.5deg; } }
@keyframes show { to { opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes unclip { to { clip-path: none; } }
@keyframes splat { to { opacity: 1; scale: 1; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 959px) {
  .hdr__nav {
    position: fixed; inset: var(--hdr) 0 auto 0; z-index: var(--z-menu);
    display: grid; gap: 2px;
    padding: 24px var(--gut) 36px;
    background: var(--ink);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s .4s;
  }
  .menu-open .hdr__nav { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
  .hdr__nav a { color: var(--paper); font: italic 800 2.4rem/1.15 var(--ff-display); padding: 6px 0; background: none; }
  .hdr .btn { margin-left: auto; }
  .hdr__menu { display: inline-flex; }

  .duo, .extras { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
}

/* Tall screens (no wider than 6:5, or 4:3 under 960px: phones, and tablets in portrait at any
   width) can't hold the wide picture, so the hero becomes a cover: the logo across the top,
   Joonas cut out of the room's photo like paper below it (joonas-cut.webp: cut along his outline
   with a paper edge), then the lede and the button, all on the first screen. The cut-out is its
   own sheet on the page, with a shadow like the service cards', laid down by hand at a slight
   angle; it lands after the logo rises. The logo's width is capped by the screen's height so
   short phones keep the button. */
@media (max-aspect-ratio: 6/5), (max-width: 959px) and (max-aspect-ratio: 4/3) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100svh - var(--hdr)); padding: clamp(12px, 2.4svh, 32px) var(--gut) clamp(22px, 4svh, 48px); }
  .hero__copy { display: contents; }
  .hero__title { order: 1; width: min(88%, 600px, calc((100svh - var(--hdr)) * .45)); margin-inline: auto; }
  .hero__photo { order: 2; position: relative; inset: auto; z-index: auto; flex: 1 1 0; min-height: 160px; margin: clamp(8px, 1.6svh, 22px) calc(-1 * var(--gut)) clamp(20px, 3.6svh, 44px); overflow: visible; }
  .hero__photo img {
    position: absolute; top: 0; left: 50%; width: auto; height: 100%; max-width: none;
    translate: -50% 0; rotate: -1.5deg; transform: none; object-fit: fill;
    -webkit-mask: none; mask: none;
    filter: drop-shadow(0 1px 1px rgba(21, 21, 20, .2)) drop-shadow(0 10px 14px rgba(21, 21, 20, .2));
  }
  .hero__lede { order: 3; max-width: none; margin-top: -.2em; text-align: center; }
  .hero__actions { order: 4; justify-content: center; margin-top: clamp(16px, 2.6svh, 28px); }
  @media (min-width: 700px) {
    .hero__lede { font-size: 1.55rem; }
    .hero .btn { min-height: 64px; font-size: 1.6rem; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .brush-go .hero__photo { animation: none; }
    .brush-go .hero__photo img { -webkit-mask: none; mask: none; animation: land .7s cubic-bezier(.2, .8, .3, 1) .35s both; }
  }
  /* On a phone the cover's button is in thumb reach on landing, so the header leaves its own out
     until that one has scrolled under the header, like the logo (main.js) */
  @media (max-width: 959px) {
    .js .hdr .btn { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
    .js .hdr--book .btn { opacity: 1; visibility: visible; transition: opacity .25s; }
  }
}

@media (max-width: 640px) {
  :root { --hdr: 64px; }
  .hdr__home .logo { width: 62px; }
  .hdr__menu [data-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdr__menu .i { width: 28px; height: 28px; }
  .ruler li { padding-right: 2px; }
  .ruler__min { font-size: .78rem; letter-spacing: .03em; }
  .ticker { --tick-speed: 28; }
  .js .ticker .quote { flex-basis: 78vw; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .foot__list { display: grid; }
}
