/* Version 3 · the textured paper of Paper and Ink, the hero and project stage of Quiet and Bold,
   the drawings of the current site, and a few things to play with. */
:root {
  --paper: #ECE8E1;
  --ink: #17150F;
  --ink-soft: rgba(23, 21, 15, .6);
  --ghost: rgba(23, 21, 15, .2);
  --rule: rgba(23, 21, 15, .16);
  --peach: #F4D6BB;
  --coral: #FF8260;
  --g: max(var(--gutter), env(safe-area-inset-left, 0px));
}
body, .menu { background: var(--paper) url('img/paper.jpg') repeat; background-size: 600px; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-desk { display: none; } }

/* ---------- header: the wordmark on every page, the menu on the right ---------- */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) { .hd__nav { margin-left: auto; } }

/* ---------- home: the wordmark starts large and settles into the header as you scroll (home-c.js) ---------- */
.has-bigmark .page--home .hd__mark { transform-origin: 0 0; will-change: transform; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
.hero__frame { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__cap { position: absolute; z-index: 2; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--copy); font-size: 11.5px; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); pointer-events: none; }
.hero__title { position: relative; z-index: 3; margin-top: 22px; font-weight: 500; font-size: clamp(54px, 16vw, 260px); line-height: .9; letter-spacing: -.058em; pointer-events: none; }
.hero__title br { display: none; }
.hero__aside { display: grid; gap: 14px; margin-top: 22px; }
.hero__intro { font-family: var(--copy); font-size: 15px; line-height: 1.5; letter-spacing: -.01em; max-width: 34ch; text-align: justify; text-align-last: left; }
.hero__down { text-decoration: none; justify-self: start; padding: 6px 0; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .hero { --hero-edge: 36px; height: 100vh; min-height: 660px; max-height: 1300px; padding: 0; }
  @supports (height: 100svh) { .hero { height: 100svh; } }
  .hero__frame { position: absolute; aspect-ratio: auto; left: 60.3%; right: var(--g); top: calc(96px + env(safe-area-inset-top, 0px)); bottom: 40%; }
  .hero__cap { top: auto; bottom: 12px; }
  /* the headline, the intro and "Scroll" all stand on one line, as far from the bottom as the menu is from the top */
  .hero__title { position: absolute; margin: 0; left: var(--g); bottom: calc(var(--hero-edge) - .1em); font-size: min(11vw, 250px); white-space: nowrap; }
  .hero__title br { display: inline; }
  .hero__aside { position: absolute; margin: 0; left: 60.3%; right: var(--g); bottom: calc(var(--hero-edge) - 12px); grid-template-columns: minmax(0, 1fr) auto; align-items: last baseline; gap: 28px; }
}

/* ---------- home: the project stage (drawing stays, projects pass) ---------- */
.projects { position: relative; }
.stage { display: none; }
.pjs { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--g)); padding: 6px 14vw 6px var(--g); scroll-padding-left: var(--g); }
.pjs::-webkit-scrollbar { display: none; }
.pj { flex: 0 0 76vw; scroll-snap-align: start; transform-origin: 50% 60%; will-change: transform; }
.pj__card { display: grid; gap: 10px; text-decoration: none; }
.pj__art { display: grid; place-items: center; aspect-ratio: 1; padding: 6%; margin-bottom: 18px; }
.pj__art svg { width: 100%; }
.pj__more { display: grid; gap: 10px; margin-top: 12px; }
.pj .n { transition: color .4s var(--ease); }
.pj.is-active .n { color: var(--accent); }
.pjs__dots { display: flex; gap: 6px; justify-content: center; padding-top: 22px; }
.pjs__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); transition: background .3s, transform .3s; }
.pjs__dots i.on { background: var(--ink); transform: scale(1.2); }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .stage { display: block; grid-column: 1 / span 6; grid-row: 1; position: sticky; top: 14vh; height: 72vh; perspective: 1100px; }
  .stage__tilt { position: absolute; inset: 0; transition: transform .6s var(--ease); }
  .stage__art { position: absolute; inset: 14%; display: grid; place-items: center; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
  .stage__art.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .stage__art svg { width: 100%; max-height: 100%; }
  .stage__art.art--dial svg { max-width: 60%; }
  .stage__art.art--opus { inset: 6% 4%; }   /* the Opus drawing has the most detail: it gets more of the stage */
  .stage__art.art--opus svg { max-width: 100%; height: 100%; }
  .stage__hint { position: absolute; left: 18px; bottom: 16px; }
  .pjs { grid-column: 8 / span 5; grid-row: 1; display: grid; gap: 0; overflow: visible; margin: 0; padding: 30vh 0 26vh; scroll-snap-type: none; }
  .pj { padding: 0 0 46vh; transform: none !important; }
  .pj:last-child { padding-bottom: 0; }
  .pj__art { display: none; }
  .pjs__dots { display: none; }
}
[data-parallax] { position: relative; overflow: hidden; }
[data-parallax] { will-change: transform; }

/* ---------- drawings beside words ---------- */
.ill__art--mirror img { transform: scaleX(-1); }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .page--home .ill__art--mirror { grid-column: 2 / span 4; }
  .ill--box .ill__art { grid-column: 8 / span 4; }
  .ill--box .ill__text { grid-column: 1 / span 6; }
}

/* ---------- the music box from the invitation ---------- */
.mbox { position: relative; margin: 0; aspect-ratio: 778 / 748; }
.mbox img, .mbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: brightness(0); opacity: .9; mix-blend-mode: multiply; }
.mbox__crank { position: absolute; left: 66.7%; top: 65.2%; width: 26.6%; height: 27.8%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 50%; }
.mbox__crank.held { cursor: grabbing; }
.mbox__crank::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed var(--ink-soft); opacity: 0; transition: opacity .4s var(--ease); }
.mbox:hover .mbox__crank::after, .mbox.is-new .mbox__crank::after { opacity: .7; }
.mbox.is-new .mbox__crank::after { animation: mbox-ring 2.4s var(--ease) infinite; }
@keyframes mbox-ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.mbox__hint { margin-top: 8px; text-align: right; padding-right: 6%; }

/* ---------- project pages: one picture width, quiet next project ---------- */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .g > .img--col { grid-column: 4 / span 6; }
  .g > .duo { grid-column: 4 / -1; }
  .split--even { align-items: start; }
  .split--even > .img { grid-column: 1 / span 6; }
  .split--even > .stack { grid-column: 8 / span 5; padding-top: 4px; }
  .split--flip > .stack { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
  .split--flip > .img { grid-column: 9 / span 3; grid-row: 1; }
}
.img--col img { aspect-ratio: 16 / 9; object-fit: cover; }
.nextp { padding-top: var(--space); }
.nextp a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0 6px; border-top: 1px solid var(--rule); text-decoration: none; }
.nextp__name { font-weight: 500; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; }
.nextp__name span { display: inline-block; transition: transform .45s var(--ease); }
.nextp a:hover .nextp__name span { transform: translateX(8px); }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .nextp a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .nextp .n { grid-column: 4 / span 4; }
  .nextp__name { grid-column: 8 / -1; justify-self: end; }
}

/* ---------- about: the head with a small photograph ---------- */
/* the headline stays in front; the photo starts clear of it and rises behind it as you scroll */
.page-head--photo .t-xl { position: relative; z-index: 2; }
.ph__row { display: grid; gap: 28px; position: relative; z-index: 1; }
.ph__img { will-change: transform; }
.ph__img img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 899px), (hover: none) and (max-width: 1179px) { .ph__img { width: 62%; justify-self: end; } }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .ph__row { grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .ph__row .t-lead { grid-column: 1 / span 3; }
  .ph__img { grid-column: 5 / span 3; margin-top: 20px; }
}

/* ---------- about: the recipe, with prototypes you can pick up ---------- */
.recipe { position: relative; margin: clamp(48px, 9vw, 200px) 0 clamp(72px, 12vw, 220px); }
.recipe__toys { position: relative; height: 330px; margin-bottom: 36px; }
@media (max-width: 899px), (hover: none) and (max-width: 1179px) { .recipe { padding-bottom: calc(30.8vw + 60px); } .recipe__toys { z-index: 2; } }   /* room below the text for the photo that waits there */
.toy { position: absolute; left: var(--px); top: var(--py); width: 30.8%; margin: 0; z-index: 1; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--r)); transition: box-shadow .35s var(--ease); box-shadow: 0 18px 30px -22px rgba(40, 28, 16, .55); }
.toy img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.toy.is-held { cursor: grabbing; transform: rotate(calc(var(--r) * .4)) scale(1.05); box-shadow: 0 34px 50px -26px rgba(40, 28, 16, .6); }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .recipe { min-height: 860px; }
  .recipe__toys { position: absolute; inset: 0; height: auto; margin: 0; pointer-events: none; }
  .toy { left: var(--x); top: var(--y); width: calc(var(--s) * 1%); pointer-events: auto; }
  .recipe > .g { position: relative; padding-top: 100px; }
  .recipe > .g > .stack { grid-column: 4 / span 6; }
  .recipe > .g .copy, .recipe > .g .note { max-width: 406px; }
}

/* ---------- about: what we believe, each line once, drifting at its own pace ---------- */
.mq { overflow: hidden; overflow-x: clip; overflow-y: visible; padding-left: var(--g); padding-right: var(--g); }
.mq ol { padding-block: .1em .28em; }   /* room for descenders: nothing is cut at the bottom edge */
.mq ol { display: grid; gap: clamp(10px, 2vw, 26px); }
.mq__line { white-space: nowrap; }
.mq__text { display: inline-block; }
.mq.is-live { padding-left: 0; padding-right: 0; }
.mq.is-live .mq__text { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .mq__line { white-space: normal; } .mq__line:nth-child(even) { text-align: right; } }

/* ---------- about: the manifesto, plainly ---------- */


/* ---------- visit ---------- */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
}

/* ---------- points of interaction: how we work ---------- */
.t-s2 { font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 10px; }
.ways__grid { display: grid; gap: 44px; margin-top: 48px; }
.ways__art { margin: 0; width: 70%; order: 4; }
.ways__art img { width: 100%; mix-blend-mode: multiply; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .ways__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 72px; margin-top: 64px; }
  .way:nth-of-type(1) { grid-column: 4 / span 4; grid-row: 1; }
  .way:nth-of-type(2) { grid-column: 9 / span 4; grid-row: 1; }
  .way:nth-of-type(3) { grid-column: 9 / span 4; grid-row: 2; }
  .ways__art { grid-column: 2 / span 4; grid-row: 2; width: auto; align-self: end; }
}

/* ---------- points of interaction: smaller posters beside the rows ---------- */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) { .acc__peek { width: 15%; } }

/* ---------- pages open at the top and stay where you put them ---------- */
html { overflow-anchor: none; }

/* ---------- the cursor is the light itself: no dot, no lag ---------- */
.cur-dot { display: none; }
.cur-glow { width: 380px; height: 380px; margin: -190px 0 0 -190px; opacity: .62;
  background: radial-gradient(closest-side, rgba(255, 118, 84, .9), rgba(255, 150, 112, .62) 16%, rgba(244, 214, 187, .5) 46%, rgba(244, 214, 187, 0) 100%);
  transition: opacity .35s var(--ease), width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease); }
html.cur-link .cur-glow { width: 240px; height: 240px; margin: -120px 0 0 -120px; opacity: .8; }
html.cur-act .cur-glow { width: 300px; height: 300px; margin: -150px 0 0 -150px; opacity: .85; }
html.cur-down .cur-glow { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
html.cur-field .cur-glow { opacity: .25; }
.cur-word span { font-size: 16px; }

/* ---------- one clear type scale ----------
   Display   page titles and the home headline
   Title     statements that open a section
   Heading   names of things: rows, projects, people, events, subsections
   Lead      the line under a title (Inter, soft)
   Body      reading text (DM Mono, justified)
   Small     labels, numbers, notes, captions (DM Mono)
   UI        links, buttons, menu (Inter Medium) */
:root {
  --fs-display: clamp(54px, 11vw, 180px);
  --fs-title: clamp(32px, 4.6vw, 64px);
  --fs-heading: clamp(24px, 2.8vw, 40px);
  --fs-lead: clamp(18px, 1.6vw, 22px);
  --fs-body: 16px;
  --fs-small: 12.5px;
  --fs-ui: 15px;
}
@media (max-width: 899px), (hover: none) and (max-width: 1179px) { :root { --fs-body: 15px; } }
.t-xl, .hero__title { font-size: var(--fs-display); line-height: .92; letter-spacing: -.055em; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) { .hero__title { font-size: min(11vw, 180px); } }
.t-l, .acc__name, .proto__name, .mq__line, .spell .stanza:last-child .ln:last-child { font-size: var(--fs-title); line-height: 1.04; letter-spacing: -.045em; }
.mq__line { font-weight: 500; }
.proto__name { line-height: .98; }
.t-m, .t-ill, .t-s2, .rows .row__name, .stanza { font-size: var(--fs-heading); line-height: 1.1; letter-spacing: -.035em; }
.stanza { line-height: 1.22; letter-spacing: -.03em; }
.spell .stanza:last-child .ln:last-child { font-size: var(--fs-title); }
.t-lead, .proto__line, .nextp__name { font-size: var(--fs-lead); line-height: 1.35; }
.proto__line { color: var(--ink-soft); }
.copy, .hero__intro { font-size: var(--fs-body); }
.note, .n, .field label, .hero__cap, .menu__links a .n { font-size: var(--fs-small); }
.go, .more, .hd, .ft__base, .ft__news label, .ft__row button, .send, .check, .links a, .song__go { font-size: var(--fs-ui); }
.ft__col span { color: var(--ink-soft); }

/* ---------- home: each drawing travels with its own project ----------
   The drawings are no longer swapped: each one rises with its text, a little faster than the page, waits in the
   middle while its text passes, then leaves a little faster again. home-c.js sets the movement; this switches
   off the old cross-fade. */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .stage--flow .stage__art { opacity: 0; transform: none; transition: none; will-change: transform, opacity; }
  .stage--flow .stage__art.is-active { pointer-events: auto; }
}

/* ---------- the cursor light: a soft orange glow, no hard core ---------- */
.cur-glow { width: 400px; height: 400px; margin: -200px 0 0 -200px; opacity: .78;
  background: radial-gradient(closest-side, rgba(255, 138, 28, .5), rgba(255, 146, 40, .36) 30%, rgba(255, 160, 70, .15) 62%, rgba(255, 170, 90, 0) 100%); }
html.cur-link .cur-glow { width: 470px; height: 470px; margin: -235px 0 0 -235px; opacity: .9; }
html.cur-act .cur-glow { width: 470px; height: 470px; margin: -235px 0 0 -235px; opacity: .95; }
html.cur-down .cur-glow { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
html.cur-field .cur-glow { opacity: .3; }

/* ---------- the cursor draws in while it moves (cursor.js) ----------
   At rest the light blooms; on the move it becomes a small warm disc, so you see exactly where you point, and it
   blooms again a second after you stop. The word over things to play with marks the spot itself, so the disc steps aside there. */
.cur-glow { will-change: transform; }
.cur-core { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, #F4A04A, #F39A40 52%, rgba(243, 150, 60, .55) 76%, rgba(243, 150, 60, 0)); }
html.cur-act .cur-core, html.cur-field .cur-core, html.cur-out .cur-core { visibility: hidden; }

/* ---------- phone: a quiet note when sound is switched on (sound.js), once per visit ---------- */
.snd-hint { position: fixed; z-index: 140; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 2 * var(--g)); padding: 9px 14px; border-radius: 18px;
  background: rgba(23, 21, 15, .86); color: var(--paper); font-family: var(--copy); font-size: var(--fs-small); line-height: 1.35;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.snd-hint.is-in { opacity: 1; transform: translate(-50%, 0); }
.snd-hint__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.snd-hint__bars i { width: 2px; border-radius: 1px; background: currentColor; }
.snd-hint__bars i:nth-child(1) { height: 4px; } .snd-hint__bars i:nth-child(2) { height: 7px; } .snd-hint__bars i:nth-child(3) { height: 11px; opacity: .45; }
@media (prefers-reduced-motion: reduce) { .snd-hint { transition: opacity .3s; transform: translate(-50%, 0); } }

/* ---------- artist in residence: a section in Home's footer, the work on Visit ---------- */
.ft__res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; padding: 26px 0 clamp(36px, 5vw, 52px); border-top: 1px solid var(--rule); }
.ft__res-text { display: contents; }   /* its lines sit on the section's own grid, so the photo can line up with the link */
.ft__res-kicker, .ft__res-copy { grid-column: 1 / -1; }
.ft__res-go { grid-column: 1; grid-row: 3; align-self: start; }
.ft__res-kicker { font-size: var(--fs-ui); color: var(--ink-soft); }
.ft__res-kicker b { font-weight: 600; color: var(--ink); }
.ft__res-copy { font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.015em; color: var(--ink-soft); max-width: 34em; }
.ft__res-go { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.ft__res-go span { transition: transform .35s var(--ease); } .ft__res-go:hover span { transform: translateX(5px); }
.ft__res-img { grid-column: 2; grid-row: 3; width: min(42vw, 190px); margin-top: 10px; }   /* 10px: the cap height inside the link's 44px tap row */   /* top level with the top of "Meet the work" */
.ft__res-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .ft__res { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .ft__res-kicker, .ft__res-copy, .ft__res-go { grid-column: 1 / span 6; }
  .ft__res-img { grid-column: 10 / span 3; justify-self: end; width: 60%; }   /* 40% smaller, on the right edge */
}

/* ---------- touch: small links keep a finger-sized target without changing how they look ---------- */
.hd__mark { position: relative; }
.hd__mark::after { content: ''; position: absolute; inset: -14px -6px; }
[data-top] { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- short screens (iPhone SE, phones in landscape): a demo never shrinks under its own readout ----------
   The Dial's stage used to be squeezed to the space left above the project name, so its readout slid over the
   text. Now the stage grows to fit, and the cube also scales with the screen's height, not just its width. */
.proto .pj-band--object .dialspec { height: auto; min-height: var(--stage-h); }
.proto .dialspec { --block: min(300px, 50vw, 34svh); }

/* ---------- narrow desktops and unfolded phones (900–1199px): the intro moves left, beside "sound", so it never
   climbs into the first line of the headline when it wraps to more lines ---------- */
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) and (max-width: 1199px) and (hover: hover) {
  .hero__aside { left: 40%; }
  .hero__intro { max-width: 48ch; }
  .hero__title { font-size: 10vw; }
}
/* touch: real space between links (overlapping invisible tap zones made one link catch the next one's taps) */
@media (pointer: coarse) {
  .ft__col > * { padding: 0; }
  .ft__col a { display: flex; align-items: center; gap: .35em; min-height: 44px; }
  .ft__col > span { padding: 3px 0; }
  .ft__links { gap: 4px; }
  .hero__down { display: inline-flex; align-items: center; min-height: 44px; }
  .hd__tools { gap: 34px; }
  .hd__mark::after { inset: -14px -4px; }
}

/* ---------- navigation: always visible, with no backing, room between the links and more before the sound switch ---------- */
.hd__tools { gap: 28px; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .hd__nav { gap: 44px; }
  .hd__tools { margin-left: 64px; }
}
#projects { scroll-margin-top: 96px; }

/* ---------- phone or desktop: touch screens under 1180px (phones, foldables opened up, small tablets in portrait)
   always get the phone layout, whatever their width. v3.js mirrors this for scripts (window.AML_WIDE). ---------- */

/* ---------- one line weight for every drawing ----------
   The drawings have different viewBoxes and are shown at different sizes, so a stroke set in drawing units came
   out anywhere between ~1px and ~3px. Strokes are now set in screen pixels and don't scale with the drawing:
   2px for outlines, 1.2px for the soft inner lines, wherever a drawing appears and however it is transformed. */
.art svg *, .pj-sketch svg * { vector-effect: non-scaling-stroke; }
.art svg, .pj-sketch svg { stroke-width: 2px; }
.art .la-soft, .pj-sketch .la-soft { stroke-width: 1.2px; }
.art .la-fin, .pj-sketch .la-fin { stroke-width: 1.6px; }

/* ---------- About: a portrait beside each person (desktop: on hover, like Collaboration; phone: in the row) ---------- */
.rows--peek { position: relative; }
.row__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* phone: the portrait on the right, its bottom edge level with the bottom of the name, always behind the text */
@media (max-width: 899px), (hover: none) and (max-width: 1179px) {
  .rows--peek .rows > li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .rows--peek .rows > li > .n { grid-column: 1; grid-row: 1; }
  .rows--peek .row__name { grid-column: 1; grid-row: 2; align-self: end; position: relative; z-index: 1; }
  .rows--peek .row__pic { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: 34vw; max-width: 170px; margin: 0; position: relative; z-index: 0; }
  .rows--peek .row__body { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 1; margin-top: 8px; }
}
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .row__pic { display: none; }
  .rows--peek .acc__peek { width: 15%; }
}

/* ---------- Visit: one 12-column grid, opened up ----------
   The facade fills the left half with the address beside it, on column 9; the residency's text stands on column 4 (the
   title's line) between a small detail of the material and Maja's portrait; the shelves and the programme heading
   start at the page edge. The programme's event names are set like a name under a title: smaller, regular weight. */
.vb { display: grid; gap: 22px; }
.vb img { width: 100%; height: auto; object-fit: cover; }
.vb__hero img { aspect-ratio: 3 / 2; }
.vb__text { align-content: start; }
.vb__by { margin: 4px 0 26px; }
.vb__text > .note:last-child { margin-top: 22px; }
.vb__img img { aspect-ratio: 4 / 5; }
.vb__img { width: 64%; justify-self: end; }
.vb__detail img { aspect-ratio: 4 / 3; }
.vb__detail { width: 44%; order: 3; }
.vis__prog-head { margin-bottom: 28px; }
.vis__prog .row__name { font-size: var(--fs-lead); font-weight: 400; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.vis__prog .row__body .note { max-width: 40ch; }
#residency { scroll-margin-top: 96px; }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) {
  .vb { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .vb__hero { grid-column: 1 / span 6; }
  .vb__side { grid-column: 9 / span 4; }   /* column 9: the same line the programme's notes start on */
  .vb--res .vb__detail { grid-column: 1 / span 2; grid-row: 1; order: 0; width: auto; margin-top: 18%; }
  .vb--res .vb__text { grid-column: 4 / span 5; grid-row: 1; }   /* from the title's line to just before column 9 */
  .vb--res .copy { max-width: none; }
  .vb__img { grid-column: 10 / span 3; grid-row: 1; width: auto; }
  .vb--shelf .vb__text { grid-column: 1 / span 5; grid-row: 1; }
  .vis__prog > li > .row__name { grid-column: 4 / span 5; }
  .vis__prog > li > .row__body { grid-column: 9 / span 4; }
}

/* ---------- the "opens elsewhere" arrow: drawn, so iPhones can't turn it into an emoji ---------- */
.arr-ne { display: inline-block; width: .68em; height: .68em; vertical-align: .02em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* ---------- partner logos, balanced by eye: each is sized so its ink weighs about the same, wherever it appears.
   Wide wordmarks sit low, the square marks taller (measured from each file's ink, not its box). ---------- */
.logos img[src$="dynaudio.svg"], .logos-row img[src$="dynaudio.svg"] { height: 20px; }
.logos img[src$="libratone.png"], .logos-row img[src$="libratone.png"] { height: 17px; }
.logos img[src$="xeo.svg"], .logos-row img[src$="xeo.svg"] { height: 22px; }
.logos img[src$="lindy-studio.svg"], .logos-row img[src$="lindy-studio.svg"] { height: 35px; }
.logos img[src$="ishinomaki-laboratory.svg"], .logos-row img[src$="ishinomaki-laboratory.svg"] { height: 34px; }

/* ---------- phone: the drawings step to the right edge; the listening chair and the armchair face back into the page ---------- */
@media (max-width: 899px), (hover: none) and (max-width: 1179px) {
  .ill__art, .ill--flip .ill__art { justify-self: end; }
  .page--home .ill__art--mirror { width: 62%; }                 /* 30% smaller than before */
  .ill__art--mirror img { transform: none; }                    /* mirrored back on phone */
  .ill--flip .mbox__hint { text-align: right; }
  .ways__art { align-self: end; justify-self: end; }
  .ways__art img { transform: scaleX(-1); }
}

/* ---------- Visit, phone: Maja's portrait sits with the title and her name, the material detail after the text ---------- */
@media (max-width: 899px), (hover: none) and (max-width: 1179px) {
  .vb--res { gap: 0; }
  .vb--res .vb__text { display: contents; }
  .vb--res .vb__title { order: 1; }
  .vb--res .vb__by { order: 2; margin-bottom: 22px; }
  .vb--res .vb__img { order: 3; margin: 12px 0 64px; }   /* room for its drift, so it never meets the text */
  .vb--res .copy, .vb--res .vb__text > .note { order: 4; }
  .vb--res .vb__detail { order: 5; margin-top: 80px; justify-self: start; width: 44%; }
}

.snd.is-waiting .snd__bars i { height: 6px; opacity: .75; }   /* on, waiting for the first tap on this page to resume */

/* ---------- About: the recipe, five steps ---------- */
.recipe__steps { display: grid; gap: 14px; counter-reset: none; }
.recipe__steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; font-size: var(--fs-lead); line-height: 1.35; letter-spacing: -.015em; }
.recipe__steps .n { color: var(--accent); }
@media (min-width: 900px) and (hover: hover), (min-width: 1180px) { .recipe__steps { max-width: 30em; } }

/* ---------- drifting pictures always pass behind the text, never over it ---------- */
[data-drift] { position: relative; z-index: 0; }
.vb__text, .vb__side, .vb .stack, .rows--peek .row__name, .rows--peek .row__body { position: relative; z-index: 1; }
@media (max-width: 899px), (hover: none) and (max-width: 1179px) { .vb--shelf .vb__img { margin-top: 40px; } }
